pub unsafe trait NSCloudSharingServiceDelegate: NSSharingServiceDelegate {
// Provided methods
unsafe fn sharingService_didCompleteForItems_error(
&self,
sharing_service: &NSSharingService,
items: &NSArray,
error: Option<&NSError>,
)
where Self: Sized + Message { ... }
unsafe fn optionsForSharingService_shareProvider(
&self,
cloud_kit_sharing_service: &NSSharingService,
provider: &NSItemProvider,
) -> NSCloudKitSharingServiceOptions
where Self: Sized + Message { ... }
unsafe fn sharingService_didSaveShare(
&self,
sharing_service: &NSSharingService,
share: &CKShare,
)
where Self: Sized + Message { ... }
unsafe fn sharingService_didStopSharing(
&self,
sharing_service: &NSSharingService,
share: &CKShare,
)
where Self: Sized + Message { ... }
}NSSharingService only.Expand description
Provided Methods§
Sourceunsafe fn sharingService_didCompleteForItems_error(
&self,
sharing_service: &NSSharingService,
items: &NSArray,
error: Option<&NSError>,
)
unsafe fn sharingService_didCompleteForItems_error( &self, sharing_service: &NSSharingService, items: &NSArray, error: Option<&NSError>, )
When an NSSharingServiceNameCloudSharing sharing service is dismissed it will invoke this method on the delegate, with an error if there was any. If the delegate implements this method, NSSharingServiceNameCloudSharing will not send -sharingService:didFailToShareItems:error: or -sharingService:didShareItems:.
The options returned by this method describe how the user is allowed to configure the share: whether the share is public or private, and whether participants have read-only or read/write permissions. If this method is not implemented, NSCloudKitSharingServiceStandard is assumed.
Available on crate feature objc2-cloud-kit and Apple only.
objc2-cloud-kit and Apple only.When an NSSharingServiceNameCloudSharing sharing service successfully saves modifications to the CKShare, it will invoke this method on the delegate with the last-known state of the CKShare on the server.
Sourceunsafe fn sharingService_didStopSharing(
&self,
sharing_service: &NSSharingService,
share: &CKShare,
)
Available on crate feature objc2-cloud-kit and Apple only.
unsafe fn sharingService_didStopSharing( &self, sharing_service: &NSSharingService, share: &CKShare, )
objc2-cloud-kit and Apple only.When an NSSharingServiceNameCloudSharing sharing service stops sharing it will delete the CKShare from the server, then invoke this method on the delegate with the last-known state of the CKShare.