---
title: "options(for:share:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nscloudsharingservicedelegate/options(for:share:)"
---

# options(for:share:)

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

## Declaration

```swift
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

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

- [sharingService(_:didCompleteForItems:error:)](appkit/nscloudsharingservicedelegate/sharingservice(_:didcompleteforitems:error:).md)
- [sharingService(_:didSave:)](appkit/nscloudsharingservicedelegate/sharingservice(_:didsave:).md)
- [sharingService(_:didStopSharing:)](appkit/nscloudsharingservicedelegate/sharingservice(_:didstopsharing:).md)
- [NSSharingService.CloudKitOptions](appkit/nssharingservice/cloudkitoptions.md)
