Contents

options(for:share:)

Asks the delegate for the participant options for the cloud-sharing service.

Declaration

optional func options(for cloudKitSharingService: NSSharingService, share provider: NSItemProvider) -> NSSharingService.CloudKitOptions

Parameters

  • cloudKitSharingService:

    The cloud-sharing service that invokes this delegate method.

  • provider:

    The item provider that supplies the share to the service.

Discussion

Use this method to specify whether the share is public or private. The options you return also determine any permissions that the share’s participants have. If you don’t implement this method, the cloud-sharing service uses the standard options.

See Also

Managing the Cloud-Sharing Service