|
3 | 3 | using ObjCRuntime; |
4 | 4 | using Foundation; |
5 | 5 | using CoreLocation; |
6 | | -#if !TVOS |
| 6 | +#if HAS_CONTACTS |
7 | 7 | using Contacts; |
| 8 | +#else |
| 9 | +using CNContact = Foundation.NSObject; |
8 | 10 | #endif |
9 | 11 |
|
10 | 12 | namespace CloudKit { |
@@ -173,6 +175,35 @@ interface CKShare { |
173 | 175 |
|
174 | 176 | [Export ("removeParticipant:")] |
175 | 177 | void Remove (CKShareParticipant participant); |
| 178 | + |
| 179 | + [MacCatalyst (18, 0), TV (18, 0), Mac (15, 0), iOS (18, 0)] |
| 180 | + [Export ("oneTimeURLForParticipantID:")] |
| 181 | + [return: NullAllowed] |
| 182 | + NSUrl GetOneTimeUrl (string participantId); |
| 183 | + |
| 184 | + [MacCatalyst (26, 0), TV (26, 0), Mac (26, 0), iOS (26, 0)] |
| 185 | + [Export ("requesters", ArgumentSemantic.Copy)] |
| 186 | + CKShareAccessRequester [] Requesters { get; } |
| 187 | + |
| 188 | + [MacCatalyst (26, 0), TV (26, 0), Mac (26, 0), iOS (26, 0)] |
| 189 | + [Export ("blockedIdentities", ArgumentSemantic.Copy)] |
| 190 | + CKShareBlockedIdentity [] BlockedIdentities { get; } |
| 191 | + |
| 192 | + [MacCatalyst (26, 0), TV (26, 0), Mac (26, 0), iOS (26, 0)] |
| 193 | + [Export ("allowsAccessRequests")] |
| 194 | + bool AllowsAccessRequests { get; set; } |
| 195 | + |
| 196 | + [MacCatalyst (26, 0), TV (26, 0), Mac (26, 0), iOS (26, 0)] |
| 197 | + [Export ("denyRequesters:")] |
| 198 | + void DenyRequesters (CKShareAccessRequester [] requesters); |
| 199 | + |
| 200 | + [MacCatalyst (26, 0), TV (26, 0), Mac (26, 0), iOS (26, 0)] |
| 201 | + [Export ("blockRequesters:")] |
| 202 | + void BlockRequesters (CKShareAccessRequester [] requesters); |
| 203 | + |
| 204 | + [MacCatalyst (26, 0), TV (26, 0), Mac (26, 0), iOS (26, 0)] |
| 205 | + [Export ("unblockIdentities:")] |
| 206 | + void UnblockIdentities (CKShareBlockedIdentity [] blockedIdentities); |
176 | 207 | } |
177 | 208 |
|
178 | 209 | /// <summary>Constants used by various CloudKit classes.</summary> |
@@ -227,6 +258,19 @@ interface CKShareParticipant : NSSecureCoding, NSCopying { |
227 | 258 | // This showed up in Xcode 16's b1 headers, but according to the availability attributes it's always been available. |
228 | 259 | [Export ("participantID", ArgumentSemantic.Copy)] |
229 | 260 | string ParticipantId { get; } |
| 261 | + |
| 262 | + [MacCatalyst (26, 0), TV (26, 0), Mac (26, 0), iOS (26, 0)] |
| 263 | + [Export ("isApprovedRequester")] |
| 264 | + bool IsApprovedRequester { get; } |
| 265 | + |
| 266 | + [MacCatalyst (26, 0), TV (26, 0), Mac (26, 0), iOS (26, 0)] |
| 267 | + [NullAllowed, Export ("dateAddedToShare", ArgumentSemantic.Copy)] |
| 268 | + NSDate DateAddedToShare { get; } |
| 269 | + |
| 270 | + [MacCatalyst (18, 0), TV (18, 0), Mac (15, 0), iOS (18, 0)] |
| 271 | + [Static] |
| 272 | + [Export ("oneTimeURLParticipant")] |
| 273 | + CKShareParticipant GetOneTimeUrlParticipant (); |
230 | 274 | } |
231 | 275 |
|
232 | 276 | [MacCatalyst (13, 1)] |
@@ -1779,6 +1823,10 @@ interface CKRecordZone : NSSecureCoding, NSCopying { |
1779 | 1823 | [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] |
1780 | 1824 | [NullAllowed, Export ("share", ArgumentSemantic.Copy)] |
1781 | 1825 | CKReference Share { get; } |
| 1826 | + |
| 1827 | + [MacCatalyst (26, 0), TV (26, 0), Mac (26, 0), iOS (26, 0)] |
| 1828 | + [Export ("encryptionScope", ArgumentSemantic.Assign)] |
| 1829 | + CKRecordZoneEncryptionScope EncryptionScope { get; set; } |
1782 | 1830 | } |
1783 | 1831 |
|
1784 | 1832 | [MacCatalyst (13, 1)] |
@@ -2253,6 +2301,14 @@ interface CKAllowedSharingOptions : NSSecureCoding, NSCopying { |
2253 | 2301 | [Static] |
2254 | 2302 | [Export ("standardOptions", ArgumentSemantic.Strong)] |
2255 | 2303 | CKAllowedSharingOptions StandardOptions { get; } |
| 2304 | + |
| 2305 | + [MacCatalyst (26, 0), NoTV, Mac (26, 0), iOS (26, 0)] |
| 2306 | + [Export ("allowsParticipantsToInviteOthers")] |
| 2307 | + bool AllowsParticipantsToInviteOthers { get; set; } |
| 2308 | + |
| 2309 | + [MacCatalyst (26, 0), NoTV, Mac (26, 0), iOS (26, 0)] |
| 2310 | + [Export ("allowsAccessRequests")] |
| 2311 | + bool AllowsAccessRequests { get; set; } |
2256 | 2312 | } |
2257 | 2313 |
|
2258 | 2314 | [NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] |
@@ -2760,4 +2816,54 @@ interface CKSyncEnginePendingZoneDelete { |
2760 | 2816 | [Export ("initWithZoneID:")] |
2761 | 2817 | NativeHandle Constructor (CKRecordZoneID zoneId); |
2762 | 2818 | } |
| 2819 | + |
| 2820 | + [MacCatalyst (26, 0), TV (26, 0), Mac (26, 0), iOS (26, 0)] |
| 2821 | + [BaseType (typeof (NSObject))] |
| 2822 | + [DisableDefaultCtor] |
| 2823 | + interface CKShareAccessRequester : NSSecureCoding, NSCopying { |
| 2824 | + [Export ("userIdentity", ArgumentSemantic.Copy)] |
| 2825 | + CKUserIdentity UserIdentity { get; } |
| 2826 | + |
| 2827 | + [Export ("participantLookupInfo", ArgumentSemantic.Copy)] |
| 2828 | + CKUserIdentityLookupInfo ParticipantLookupInfo { get; } |
| 2829 | + |
| 2830 | + [NoTV] |
| 2831 | + [Export ("contact", ArgumentSemantic.Copy)] |
| 2832 | + CNContact Contact { get; } |
| 2833 | + } |
| 2834 | + |
| 2835 | + [MacCatalyst (26, 0), TV (26, 0), Mac (26, 0), iOS (26, 0)] |
| 2836 | + [BaseType (typeof (NSObject))] |
| 2837 | + [DisableDefaultCtor] |
| 2838 | + interface CKShareBlockedIdentity : NSSecureCoding, NSCopying { |
| 2839 | + [Export ("userIdentity", ArgumentSemantic.Copy)] |
| 2840 | + CKUserIdentity UserIdentity { get; } |
| 2841 | + |
| 2842 | + [NoTV] |
| 2843 | + [Export ("contact", ArgumentSemantic.Copy)] |
| 2844 | + CNContact Contact { get; } |
| 2845 | + } |
| 2846 | + |
| 2847 | + [MacCatalyst (26, 0), TV (26, 0), Mac (26, 0), iOS (26, 0)] |
| 2848 | + [BaseType (typeof (CKOperation))] |
| 2849 | + [DesignatedDefaultCtor] |
| 2850 | + interface CKShareRequestAccessOperation { |
| 2851 | + |
| 2852 | + [Export ("initWithShareURLs:")] |
| 2853 | + NativeHandle Constructor (NSUrl [] shareUrls); |
| 2854 | + |
| 2855 | + [NullAllowed, Export ("shareURLs", ArgumentSemantic.Copy)] |
| 2856 | + NSUrl [] ShareUrls { get; set; } |
| 2857 | + |
| 2858 | + [Export ("perShareAccessRequestCompletionBlock", ArgumentSemantic.Copy)] |
| 2859 | + [NullAllowed] |
| 2860 | + CKShareRequestAccessOperationPerShareAccessRequestCompletionHandler PerShareAccessRequestCompletionBlock { get; set; } |
| 2861 | + |
| 2862 | + [Export ("shareRequestAccessCompletionBlock", ArgumentSemantic.Copy)] |
| 2863 | + [NullAllowed] |
| 2864 | + CKShareRequestAccessOperationShareRequestAccessCompletionHandler ShareRequestAccessCompletionBlock { get; set; } |
| 2865 | + } |
| 2866 | + |
| 2867 | + delegate void CKShareRequestAccessOperationPerShareAccessRequestCompletionHandler (NSUrl shareUrl, [NullAllowed] NSError error); |
| 2868 | + delegate void CKShareRequestAccessOperationShareRequestAccessCompletionHandler ([NullAllowed] NSError error); |
2763 | 2869 | } |
0 commit comments