|
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)] |
@@ -1785,6 +1829,10 @@ interface CKRecordZone : NSSecureCoding, NSCopying { |
1785 | 1829 | [TV (15, 0), iOS (15, 0), MacCatalyst (15, 0)] |
1786 | 1830 | [NullAllowed, Export ("share", ArgumentSemantic.Copy)] |
1787 | 1831 | CKReference Share { get; } |
| 1832 | + |
| 1833 | + [MacCatalyst (26, 0), TV (26, 0), Mac (26, 0), iOS (26, 0)] |
| 1834 | + [Export ("encryptionScope", ArgumentSemantic.Assign)] |
| 1835 | + CKRecordZoneEncryptionScope EncryptionScope { get; set; } |
1788 | 1836 | } |
1789 | 1837 |
|
1790 | 1838 | [MacCatalyst (13, 1)] |
@@ -2259,6 +2307,14 @@ interface CKAllowedSharingOptions : NSSecureCoding, NSCopying { |
2259 | 2307 | [Static] |
2260 | 2308 | [Export ("standardOptions", ArgumentSemantic.Strong)] |
2261 | 2309 | CKAllowedSharingOptions StandardOptions { get; } |
| 2310 | + |
| 2311 | + [MacCatalyst (26, 0), NoTV, Mac (26, 0), iOS (26, 0)] |
| 2312 | + [Export ("allowsParticipantsToInviteOthers")] |
| 2313 | + bool AllowsParticipantsToInviteOthers { get; set; } |
| 2314 | + |
| 2315 | + [MacCatalyst (26, 0), NoTV, Mac (26, 0), iOS (26, 0)] |
| 2316 | + [Export ("allowsAccessRequests")] |
| 2317 | + bool AllowsAccessRequests { get; set; } |
2262 | 2318 | } |
2263 | 2319 |
|
2264 | 2320 | [NoTV, Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)] |
@@ -2766,4 +2822,60 @@ interface CKSyncEnginePendingZoneDelete { |
2766 | 2822 | [Export ("initWithZoneID:")] |
2767 | 2823 | NativeHandle Constructor (CKRecordZoneID zoneId); |
2768 | 2824 | } |
| 2825 | + |
| 2826 | + [MacCatalyst (26, 0), TV (26, 0), Mac (26, 0), iOS (26, 0)] |
| 2827 | + [BaseType (typeof (NSObject))] |
| 2828 | + [DisableDefaultCtor] |
| 2829 | + interface CKShareAccessRequester : NSSecureCoding, NSCopying |
| 2830 | + { |
| 2831 | + [Export ("userIdentity", ArgumentSemantic.Copy)] |
| 2832 | + CKUserIdentity UserIdentity { get; } |
| 2833 | + |
| 2834 | + [Export ("participantLookupInfo", ArgumentSemantic.Copy)] |
| 2835 | + CKUserIdentityLookupInfo ParticipantLookupInfo { get; } |
| 2836 | + |
| 2837 | + [NoTV] |
| 2838 | + [Export ("contact", ArgumentSemantic.Copy)] |
| 2839 | + CNContact Contact { get; } |
| 2840 | + } |
| 2841 | + |
| 2842 | + [MacCatalyst (26, 0), TV (26, 0), Mac (26, 0), iOS (26, 0)] |
| 2843 | + [BaseType (typeof(NSObject))] |
| 2844 | + [DisableDefaultCtor] |
| 2845 | + interface CKShareBlockedIdentity : NSSecureCoding, NSCopying |
| 2846 | + { |
| 2847 | + [Export ("userIdentity", ArgumentSemantic.Copy)] |
| 2848 | + CKUserIdentity UserIdentity { get; } |
| 2849 | + |
| 2850 | + [NoTV] |
| 2851 | + [Export ("contact", ArgumentSemantic.Copy)] |
| 2852 | + CNContact Contact { get; } |
| 2853 | + } |
| 2854 | + |
| 2855 | + [MacCatalyst (26, 0), TV (26, 0), Mac (26, 0), iOS (26, 0)] |
| 2856 | + [BaseType (typeof (CKOperation))] |
| 2857 | + [DisableDefaultCtor] |
| 2858 | + interface CKShareRequestAccessOperation |
| 2859 | + { |
| 2860 | + [DesignatedInitializer] |
| 2861 | + [Export ("init")] |
| 2862 | + NativeHandle Constructor (); |
| 2863 | + |
| 2864 | + [Export ("initWithShareURLs:")] |
| 2865 | + NativeHandle Constructor (NSUrl[] shareUrls); |
| 2866 | + |
| 2867 | + [NullAllowed, Export ("shareURLs", ArgumentSemantic.Copy)] |
| 2868 | + NSUrl[] ShareUrls { get; set; } |
| 2869 | + |
| 2870 | + [Export ("perShareAccessRequestCompletionBlock", ArgumentSemantic.Copy)] |
| 2871 | + [NullAllowed] |
| 2872 | + CKShareRequestAccessOperationPerShareAccessRequestCompletionHandler PerShareAccessRequestCompletionBlock { get; set; } |
| 2873 | + |
| 2874 | + [Export ("shareRequestAccessCompletionBlock", ArgumentSemantic.Copy)] |
| 2875 | + [NullAllowed] |
| 2876 | + CKShareRequestAccessOperationShareRequestAccessCompletionHandler ShareRequestAccessCompletionBlock { get; set; } |
| 2877 | + } |
| 2878 | + |
| 2879 | + delegate void CKShareRequestAccessOperationPerShareAccessRequestCompletionHandler (NSUrl shareUrl, [NullAllowed] NSError error); |
| 2880 | + delegate void CKShareRequestAccessOperationShareRequestAccessCompletionHandler ([NullAllowed] NSError error); |
2769 | 2881 | } |
0 commit comments