You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/AddressBook/ABAddressBook.cs
+28-24Lines changed: 28 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -46,19 +46,19 @@
46
46
#endif
47
47
48
48
namespaceAddressBook{
49
-
#if !NET
50
-
[Deprecated(PlatformName.iOS,9,0,message:"Use the 'Contacts' API instead.")]
51
-
[Introduced(PlatformName.MacCatalyst,14,0)]
52
-
[Deprecated(PlatformName.MacCatalyst,14,0,message:"Use the 'Contacts' API instead.")]
53
-
#else
54
-
[UnsupportedOSPlatform("ios9.0")]
55
-
[UnsupportedOSPlatform("maccatalyst14.0")]
49
+
#if NET
56
50
[SupportedOSPlatform("maccatalyst14.0")]
57
-
#if IOS
58
-
[Obsolete("Starting with ios9.0 use the 'Contacts' API instead.",DiagnosticId="BI1234",UrlFormat="https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
59
-
#elif__MACCATALYST__
51
+
[UnsupportedOSPlatform("maccatalyst14.0")]
52
+
[UnsupportedOSPlatform("ios9.0")]
53
+
#if__MACCATALYST__
60
54
[Obsolete("Starting with maccatalyst14.0 use the 'Contacts' API instead.",DiagnosticId="BI1234",UrlFormat="https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
55
+
#elif IOS
56
+
[Obsolete("Starting with ios9.0 use the 'Contacts' API instead.",DiagnosticId="BI1234",UrlFormat="https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
61
57
#endif
58
+
#else
59
+
[Deprecated(PlatformName.iOS,9,0,message:"Use the 'Contacts' API instead.")]
60
+
[Introduced(PlatformName.MacCatalyst,14,0)]
61
+
[Deprecated(PlatformName.MacCatalyst,14,0,message:"Use the 'Contacts' API instead.")]
[Deprecated(PlatformName.iOS,9,0,message:"Use the 'Contacts' API instead.")]
121
-
[Introduced(PlatformName.MacCatalyst,14,0)]
122
-
[Deprecated(PlatformName.MacCatalyst,14,0,message:"Use the 'Contacts' API instead.")]
123
-
#else
124
-
[UnsupportedOSPlatform("ios9.0")]
125
-
[UnsupportedOSPlatform("maccatalyst14.0")]
119
+
#if NET
126
120
[SupportedOSPlatform("maccatalyst14.0")]
127
-
#if IOS
128
-
[Obsolete("Starting with ios9.0 use the 'Contacts' API instead.",DiagnosticId="BI1234",UrlFormat="https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
129
-
#elif__MACCATALYST__
121
+
[UnsupportedOSPlatform("maccatalyst14.0")]
122
+
[UnsupportedOSPlatform("ios9.0")]
123
+
#if__MACCATALYST__
130
124
[Obsolete("Starting with maccatalyst14.0 use the 'Contacts' API instead.",DiagnosticId="BI1234",UrlFormat="https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
125
+
#elif IOS
126
+
[Obsolete("Starting with ios9.0 use the 'Contacts' API instead.",DiagnosticId="BI1234",UrlFormat="https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
131
127
#endif
128
+
#else
129
+
[Deprecated(PlatformName.iOS,9,0,message:"Use the 'Contacts' API instead.")]
130
+
[Introduced(PlatformName.MacCatalyst,14,0)]
131
+
[Deprecated(PlatformName.MacCatalyst,14,0,message:"Use the 'Contacts' API instead.")]
@@ -139,13 +139,17 @@ public class ABAddressBook : NativeObject, IEnumerable<ABRecord> {
139
139
[DllImport(Constants.AddressBookLibrary)]
140
140
internalexternstaticIntPtrABAddressBookCreate();
141
141
142
-
#if !NET
143
-
[Deprecated(PlatformName.iOS,6,0,message:"Use the static Create method instead")]
144
-
#else
142
+
#if NET
143
+
[SupportedOSPlatform("maccatalyst14.0")]
144
+
[UnsupportedOSPlatform("maccatalyst14.0")]
145
145
[UnsupportedOSPlatform("ios6.0")]
146
-
#if IOS
146
+
#if __MACCATALYST__
147
+
[Obsolete("Starting with maccatalyst14.0 use the 'Contacts' API instead.",DiagnosticId="BI1234",UrlFormat="https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
148
+
#elif IOS
147
149
[Obsolete("Starting with ios6.0 use the static Create method instead.",DiagnosticId="BI1234",UrlFormat="https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
148
150
#endif
151
+
#else
152
+
[Deprecated(PlatformName.iOS,6,0,message:"Use the static Create method instead")]
Copy file name to clipboardExpand all lines: src/AddressBook/ABEnums.cs
+86Lines changed: 86 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,25 +28,48 @@
28
28
#if !MONOMAC
29
29
30
30
usingSystem;
31
+
usingSystem.Runtime.Versioning;
31
32
32
33
usingFoundation;
33
34
usingCoreFoundation;
34
35
usingObjCRuntime;
35
36
36
37
namespaceAddressBook{
38
+
#if NET
39
+
[SupportedOSPlatform("maccatalyst14.0")]
40
+
[UnsupportedOSPlatform("maccatalyst14.0")]
41
+
[UnsupportedOSPlatform("ios9.0")]
42
+
#if __MACCATALYST__
43
+
[Obsolete("Starting with maccatalyst14.0 use the 'Contacts' API instead.",DiagnosticId="BI1234",UrlFormat="https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
44
+
#elif IOS
45
+
[Obsolete("Starting with ios9.0 use the 'Contacts' API instead.",DiagnosticId="BI1234",UrlFormat="https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
46
+
#endif
47
+
#else
37
48
[Deprecated(PlatformName.iOS,9,0,message:"Use the 'Contacts' API instead.")]
38
49
[Introduced(PlatformName.MacCatalyst,14,0)]
39
50
[Deprecated(PlatformName.MacCatalyst,14,0,message:"Use the 'Contacts' API instead.")]
51
+
#endif
40
52
[Native]
41
53
[ErrorDomain("ABAddressBookErrorDomain")]
42
54
publicenumABAddressBookError:long{
43
55
OperationNotPermittedByStore=0,
44
56
OperationNotPermittedByUserError
45
57
}
46
58
59
+
#if NET
60
+
[SupportedOSPlatform("maccatalyst14.0")]
61
+
[UnsupportedOSPlatform("maccatalyst14.0")]
62
+
[UnsupportedOSPlatform("ios9.0")]
63
+
#if __MACCATALYST__
64
+
[Obsolete("Starting with maccatalyst14.0 use the 'Contacts' API instead.",DiagnosticId="BI1234",UrlFormat="https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
65
+
#elif IOS
66
+
[Obsolete("Starting with ios9.0 use the 'Contacts' API instead.",DiagnosticId="BI1234",UrlFormat="https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
67
+
#endif
68
+
#else
47
69
[Deprecated(PlatformName.iOS,9,0,message:"Use the 'Contacts' API instead.")]
48
70
[Introduced(PlatformName.MacCatalyst,14,0)]
49
71
[Deprecated(PlatformName.MacCatalyst,14,0,message:"Use the 'Contacts' API instead.")]
72
+
#endif
50
73
[Native]
51
74
publicenumABAuthorizationStatus:long{
52
75
NotDetermined=0,
@@ -55,19 +78,40 @@ public enum ABAuthorizationStatus : long {
55
78
Authorized
56
79
}
57
80
81
+
#if NET
82
+
[UnsupportedOSPlatform("ios9.0")]
83
+
#if IOS
84
+
[Obsolete("Starting with ios9.0 use the 'Contacts' API instead.",DiagnosticId="BI1234",UrlFormat="https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
85
+
#endif
86
+
#else
58
87
[Deprecated(PlatformName.iOS,9,0,message:"Use the 'Contacts' API instead.")]
88
+
#endif
59
89
publicenumABPersonSortBy:uint/* uint32_t */{
60
90
FirstName=0,
61
91
LastName=1,
62
92
}
63
93
94
+
#if NET
95
+
[UnsupportedOSPlatform("ios9.0")]
96
+
#if IOS
97
+
[Obsolete("Starting with ios9.0 use the 'Contacts' API instead.",DiagnosticId="BI1234",UrlFormat="https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
98
+
#endif
99
+
#else
64
100
[Deprecated(PlatformName.iOS,9,0,message:"Use the 'Contacts' API instead.")]
[Obsolete("Starting with ios9.0 use the 'Contacts' API instead.",DiagnosticId="BI1234",UrlFormat="https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
111
+
#endif
112
+
#else
70
113
[Deprecated(PlatformName.iOS,9,0,message:"Use the 'Contacts' API instead.")]
114
+
#endif
71
115
publicenumABPersonProperty{
72
116
Address,
73
117
Birthday,
@@ -96,28 +140,56 @@ public enum ABPersonProperty {
96
140
SocialProfile,
97
141
}
98
142
143
+
#if NET
144
+
[UnsupportedOSPlatform("ios9.0")]
145
+
#if IOS
146
+
[Obsolete("Starting with ios9.0 use the 'Contacts' API instead.",DiagnosticId="BI1234",UrlFormat="https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
147
+
#endif
148
+
#else
99
149
[Deprecated(PlatformName.iOS,9,0,message:"Use the 'Contacts' API instead.")]
150
+
#endif
100
151
[Native]
101
152
publicenumABPersonImageFormat:long{
102
153
Thumbnail=0,
103
154
OriginalSize=2,
104
155
}
105
156
157
+
#if NET
158
+
[UnsupportedOSPlatform("ios9.0")]
159
+
#if IOS
160
+
[Obsolete("Starting with ios9.0 use the 'Contacts' API instead.",DiagnosticId="BI1234",UrlFormat="https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
161
+
#endif
162
+
#else
106
163
[Deprecated(PlatformName.iOS,9,0,message:"Use the 'Contacts' API instead.")]
164
+
#endif
107
165
publicenumABPersonKind{
108
166
None,
109
167
Organization,
110
168
Person,
111
169
}
112
170
171
+
#if NET
172
+
[UnsupportedOSPlatform("ios9.0")]
173
+
#if IOS
174
+
[Obsolete("Starting with ios9.0 use the 'Contacts' API instead.",DiagnosticId="BI1234",UrlFormat="https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
175
+
#endif
176
+
#else
113
177
[Deprecated(PlatformName.iOS,9,0,message:"Use the 'Contacts' API instead.")]
178
+
#endif
114
179
publicenumABRecordType:uint/* uint32_t */{
115
180
Person=0,
116
181
Group=1,
117
182
Source=2,
118
183
}
119
184
185
+
#if NET
186
+
[UnsupportedOSPlatform("ios9.0")]
187
+
#if IOS
188
+
[Obsolete("Starting with ios9.0 use the 'Contacts' API instead.",DiagnosticId="BI1234",UrlFormat="https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
189
+
#endif
190
+
#else
120
191
[Deprecated(PlatformName.iOS,9,0,message:"Use the 'Contacts' API instead.")]
[Obsolete("Starting with ios9.0 use the 'Contacts' API instead.",DiagnosticId="BI1234",UrlFormat="https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
214
+
#endif
215
+
#else
138
216
[Deprecated(PlatformName.iOS,9,0,message:"Use the 'Contacts' API instead.")]
217
+
#endif
139
218
publicenumABSourceType:int/* typedef int */{
140
219
Local=0x0,
141
220
Exchange=0x1,
@@ -148,7 +227,14 @@ public enum ABSourceType : int /* typedef int */ {
148
227
SearchableMask=0x01000000,
149
228
};
150
229
230
+
#if NET
231
+
[UnsupportedOSPlatform("ios9.0")]
232
+
#if IOS
233
+
[Obsolete("Starting with ios9.0 use the 'Contacts' API instead.",DiagnosticId="BI1234",UrlFormat="https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
234
+
#endif
235
+
#else
151
236
[Deprecated(PlatformName.iOS,9,0,message:"Use the 'Contacts' API instead.")]
Copy file name to clipboardExpand all lines: src/AddressBook/ABGroup.cs
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -60,19 +60,19 @@ internal static void Init ()
60
60
}
61
61
}
62
62
63
-
#if !NET
64
-
[Deprecated(PlatformName.iOS,9,0,message:"Use the 'Contacts' API instead.")]
65
-
[Introduced(PlatformName.MacCatalyst,14,0)]
66
-
[Deprecated(PlatformName.MacCatalyst,14,0,message:"Use the 'Contacts' API instead.")]
67
-
#else
68
-
[UnsupportedOSPlatform("ios9.0")]
69
-
[UnsupportedOSPlatform("maccatalyst14.0")]
63
+
#if NET
70
64
[SupportedOSPlatform("maccatalyst14.0")]
65
+
[UnsupportedOSPlatform("maccatalyst14.0")]
66
+
[UnsupportedOSPlatform("ios9.0")]
71
67
#if __MACCATALYST__
72
68
[Obsolete("Starting with maccatalyst14.0 use the 'Contacts' API instead.",DiagnosticId="BI1234",UrlFormat="https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
73
69
#elif IOS
74
70
[Obsolete("Starting with ios9.0 use the 'Contacts' API instead.",DiagnosticId="BI1234",UrlFormat="https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
75
71
#endif
72
+
#else
73
+
[Deprecated(PlatformName.iOS,9,0,message:"Use the 'Contacts' API instead.")]
74
+
[Introduced(PlatformName.MacCatalyst,14,0)]
75
+
[Deprecated(PlatformName.MacCatalyst,14,0,message:"Use the 'Contacts' API instead.")]
0 commit comments