# FrakSharing

class FrakSharing

The Frak sharing sheet. Build it once per screen, [warm](/developers/references/android/id-frak-sdk-ui/fraksharing/warm/) it when a share affordance becomes visible, then [present](/developers/references/android/id-frak-sdk-ui/fraksharing/present/) on the tap.

A sheet that is up survives a configuration change, but not process death. Use one instance per Activity: two share a warm web view and a &quot;one sheet at a time&quot; guard, and after a configuration change a live session reports to whichever was built first, not whichever presented.

## Types

| Name | Summary |
|---|---|
| [Builder](/developers/references/android/id-frak-sdk-ui/fraksharing/builder/) | class [Builder](/developers/references/android/id-frak-sdk-ui/fraksharing/builder/)(callback: [FrakSharing.ResultCallback](/developers/references/android/id-frak-sdk-ui/fraksharing/resultcallback/))<br>Builds a FrakSharing against a hosting Activity. |
| [ResultCallback](/developers/references/android/id-frak-sdk-ui/fraksharing/resultcallback/) | fun interface [ResultCallback](/developers/references/android/id-frak-sdk-ui/fraksharing/resultcallback/)<br>How a sharing session ended. Always invoked on the main thread, and it can arrive after the hosting Activity is destroyed, so write it defensively. Should be a stable reference. |

## Functions

| Name | Summary |
|---|---|
| [present](/developers/references/android/id-frak-sdk-ui/fraksharing/present/) | fun [present](/developers/references/android/id-frak-sdk-ui/fraksharing/present/)(request: [SharingRequest](/developers/references/android/id-frak-sdk-sharing/sharingrequest/))<br>Opens the sheet. No-op if the hosting Activity is finishing, destroyed, or not at least `STARTED`. |
| [warm](/developers/references/android/id-frak-sdk-ui/fraksharing/warm/) | fun [warm](/developers/references/android/id-frak-sdk-ui/fraksharing/warm/)()<br>Starts warming the pooled web view and the identity/config reads. Call when a share affordance becomes visible; cheap to call repeatedly, and [present](/developers/references/android/id-frak-sdk-ui/fraksharing/present/) implies it. |