> For the complete documentation index, see [llms.txt](https://assetstore.essentialkit.voxelbusters.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://assetstore.essentialkit.voxelbusters.com/features/sharing/playmaker/use-cases/use-case-1-screenshot-share.md).

# Screenshot Share (Share Sheet)

## Goal

Share text/URL and optionally a screenshot/image using the native share sheet.

## Actions used

* `ShareSheetShow`
* `ShareSheetGetError` (optional)

## Variables

* `text` (String)
* `url` (String)

## Flow

1. State: `ShowShareSheet`
   * Action: `ShareSheetShow`
   * Provide at least one content type:
     * `text` and/or `url`
     * `addScreenshot = true` (optional)
     * `image` (Texture2D) (optional)
   * Events:
     * `closedWithDoneEvent` → Done
     * `closedWithCancelledEvent` → Cancelled
     * `closedWithUnknownEvent` → Unknown (optional handling)
     * `closedWithFailedEvent` → `ShareSheetGetError` (optional) then show error

## Notes

* `ShareSheetResultCode.Unknown` can happen on platforms where the OS cannot report the final user action.
