When to use it
Use to share application-owned text, URLs, or files through the operating system. Keep content generation, file permissions, completion feedback, and error handling in the application.
Open the operating system share surface from a token-aware native action.
Native example
Use to share application-owned text, URLs, or files through the operating system. Keep content generation, file permissions, completion feedback, and error handling in the application.
LumenShareButton(
payload = LumenSharePayload(text = reportText),
chooserTitle = "Share report"
)Reference
The primary shared and platform-specific options exposed by LumenShareButton.
| API | Values or type | Default | Description |
|---|---|---|---|
| payload | LumenSharePayload | Required | Supplies application-owned share content. |
| chooserTitle | String | Required | Configures the native share presentation. |
| label | Native localized text | Share | Names the trigger action. |
| onFailure | Platform callback | No-op | Lets the application report sharing outcomes where the platform exposes them. |
Native behavior
Use to share application-owned text, URLs, or files through the operating system. Keep content generation, file permissions, completion feedback, and error handling in the application.
The trigger remains a native labeled button and destination selection is delegated to the operating system share surface.
Shared component