objc2_accounts/generated/
ACAccountType.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern "C" {
10 #[deprecated = "Use Twitter SDK instead"]
12 pub static ACAccountTypeIdentifierTwitter: Option<&'static NSString>;
13}
14
15extern "C" {
16 #[deprecated = "Use Facebook SDK instead"]
18 pub static ACAccountTypeIdentifierFacebook: Option<&'static NSString>;
19}
20
21extern "C" {
22 #[deprecated = "Use Sina Weibo SDK instead"]
24 pub static ACAccountTypeIdentifierSinaWeibo: Option<&'static NSString>;
25}
26
27extern "C" {
28 #[deprecated = "Use Tencent Weibo SDK instead"]
30 pub static ACAccountTypeIdentifierTencentWeibo: Option<&'static NSString>;
31}
32
33extern "C" {
34 #[deprecated = "Use LinkedIn SDK instead"]
36 pub static ACAccountTypeIdentifierLinkedIn: Option<&'static NSString>;
37}
38
39extern "C" {
40 #[deprecated = "Use Facebook SDK instead"]
42 pub static ACFacebookAppIdKey: Option<&'static NSString>;
43}
44
45extern "C" {
46 #[deprecated = "Use Facebook SDK instead"]
48 pub static ACFacebookPermissionsKey: Option<&'static NSString>;
49}
50
51extern "C" {
52 #[deprecated = "Use Facebook SDK instead"]
54 pub static ACFacebookAudienceKey: Option<&'static NSString>;
55}
56
57extern "C" {
58 #[deprecated = "Use Facebook SDK instead"]
60 pub static ACFacebookAudienceEveryone: Option<&'static NSString>;
61}
62
63extern "C" {
64 #[deprecated = "Use Facebook SDK instead"]
66 pub static ACFacebookAudienceFriends: Option<&'static NSString>;
67}
68
69extern "C" {
70 #[deprecated = "Use Facebook SDK instead"]
72 pub static ACFacebookAudienceOnlyMe: Option<&'static NSString>;
73}
74
75extern "C" {
76 #[deprecated = "Use LinkedIn SDK instead"]
78 pub static ACLinkedInAppIdKey: Option<&'static NSString>;
79}
80
81extern "C" {
82 #[deprecated = "Use LinkedIn SDK instead"]
84 pub static ACLinkedInPermissionsKey: Option<&'static NSString>;
85}
86
87extern "C" {
88 #[deprecated = "Use Tencent Weibo SDK instead"]
90 pub static ACTencentWeiboAppIdKey: Option<&'static NSString>;
91}
92
93extern_class!(
94 #[unsafe(super(NSObject))]
96 #[derive(Debug, PartialEq, Eq, Hash)]
97 #[deprecated = "Use appropriate non-Apple SDK corresponding to the type of account you want to reference instead"]
98 pub struct ACAccountType;
99);
100
101extern_conformance!(
102 unsafe impl NSObjectProtocol for ACAccountType {}
103);
104
105impl ACAccountType {
106 extern_methods!(
107 #[deprecated = "Use appropriate non-Apple SDK corresponding to the type of account you want to reference instead"]
108 #[unsafe(method(accountTypeDescription))]
109 #[unsafe(method_family = none)]
110 pub unsafe fn accountTypeDescription(&self) -> Option<Retained<NSString>>;
111
112 #[deprecated = "Use appropriate non-Apple SDK corresponding to the type of account you want to reference instead"]
113 #[unsafe(method(identifier))]
114 #[unsafe(method_family = none)]
115 pub unsafe fn identifier(&self) -> Option<Retained<NSString>>;
116
117 #[deprecated = "Use appropriate non-Apple SDK corresponding to the type of account you want to reference instead"]
118 #[unsafe(method(accessGranted))]
119 #[unsafe(method_family = none)]
120 pub unsafe fn accessGranted(&self) -> bool;
121 );
122}
123
124impl ACAccountType {
126 extern_methods!(
127 #[unsafe(method(init))]
128 #[unsafe(method_family = init)]
129 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
130
131 #[unsafe(method(new))]
132 #[unsafe(method_family = new)]
133 pub unsafe fn new() -> Retained<Self>;
134 );
135}