shareWithUI
Presents a UI to the user which lets them share a record with other users.
Declaration
Promise< CloudKit.SharingUIResult, CloudKit.CKError > shareWithUI(
Object options
);Parameters
- options:
A dictionary containing options for the share UI:
Key
Description
recordThe Cloudkit.record object that is being shared.
zoneIDA Cloudkit.zoneid or zone name (
String) that identifies the record zone in the database where you want to perform the operation. The default is the database default zone. This property is required.shareTitleThe title (
String) of the share.shareTypeThe type (
String) of the share.shareThumbnailA thumbnail (
String) representing the share.supportedAccessThe supported participant access to the share. An array of
Stringobjects with valuesPRIVATEorPUBLIC.supportedPermissionsThe supported read-write permissions for the share. An array of
Stringobjects with valuesREAD_WRITEorREAD_ONLY.
Return Value
A Promise object that resolves to an object that represents the share record, or rejects to a CKError object.