ShareSheet
Present the iOS share sheet
ShareSheet shows the system share dialog for sharing content to apps and services.
Use ShareSheet to share:
Note: Not available in widgets.
Examples
javascript
let result = await ShareSheet.present(["Hello World!"]);
if (result.completed) {
console.log("Shared via:", result.activityType);
}javascript
await ShareSheet.present([
"Check this out!",
"https://example.com",
myImage
]);Methods
present
Present share sheet with items
Shows the system UIActivityViewController. Not available in widgets.
typescript
static present(activityItems): voidactivityItems- Array of items to share (strings, URLs, images)
Returns: Promise resolving to result object with activityType, completed, error
Example:
javascript
await ShareSheet.present(["text", image])