ReadonlyaccountThe account name used to perform the share, if applicable. Populated once the share is in progress; otherwise null.
ReadonlyalternateAn alternate icon for the service, if one is provided, otherwise null.
ReadonlyattachmentsFile paths of any attachments included in the share, populated once the share completes. Empty until then.
ReadonlyidentifierA unique identifier for this share object (UUID string).
ReadonlyimageThe service's icon.
ReadonlymessageThe message body, populated once the share is in progress. Empty until then.
ReadonlypermanentA permanent link to the shared content, if the service provides one. Populated once the share is in progress; otherwise null.
Recipients (e.g. email addresses) for services that support them, such as Mail or Messages.
The subject line, for services that support one, such as Mail.
ReadonlytitleThe user-visible title of the service, e.g. "Mail" or "AirDrop".
Checks whether this service can share the given items.
Items may be strings (treated as a web/mailto URL if they parse as one, a file
path if they start with / or ~ and the file exists, otherwise plain text) or
HSImage objects.
The items to check
true if this service can share all of the given items
Registers a callback for share lifecycle events.
Called with the lifecycle event name, items, and optional error message
this share object, for chaining
Attempts to share the given items with this service.
If the service cannot handle the items, this logs a warning and returns false
without doing anything further. Otherwise the share is started; it is asynchronous
— use setCallback() to find out when it completes.
The items to share
true if the share was started
A configured sharing service, wrapping
NSSharingService. Create instances viahs.sharing.createShare()orhs.sharing.servicesFor(). Configure withsetCallback(),recipients, andsubjectas needed, then callshareItems().