# Builder

class Builder(callback: [FrakSharing.ResultCallback](/developers/references/android/id-frak-sdk-ui/fraksharing/resultcallback/))

Builds a [FrakSharing](/developers/references/android/id-frak-sdk-ui/fraksharing/) against a hosting Activity.

## Constructors

| | |
|---|---|
| [Builder](/developers/references/android/id-frak-sdk-ui/fraksharing/builder/builder/) | constructor(callback: [FrakSharing.ResultCallback](/developers/references/android/id-frak-sdk-ui/fraksharing/resultcallback/)) |

## Functions

| Name | Summary |
|---|---|
| [build](/developers/references/android/id-frak-sdk-ui/fraksharing/builder/build/) | fun [build](/developers/references/android/id-frak-sdk-ui/fraksharing/builder/build/)(): [FrakSharing](/developers/references/android/id-frak-sdk-ui/fraksharing/)<br>The Compose build site; resolves the hosting Activity from `LocalContext` and warms on composition-enter, so [warm](/developers/references/android/id-frak-sdk-ui/fraksharing/warm/) never has to be called by hand.<br>fun [build](/developers/references/android/id-frak-sdk-ui/fraksharing/builder/build/)(activity: ERROR CLASS: Symbol not found for ComponentActivity): [FrakSharing](/developers/references/android/id-frak-sdk-ui/fraksharing/)<br>The Activity that will host the sheet's window. Call from `onCreate` (after `super.onCreate`), never from a property initialiser, where there is no `ViewModelStore` yet to hold the retained sheet state. |
| [heightFraction](/developers/references/android/id-frak-sdk-ui/fraksharing/builder/heightfraction/) | fun [heightFraction](/developers/references/android/id-frak-sdk-ui/fraksharing/builder/heightfraction/)(fraction: [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)): FrakSharing.Builder<br>Share of the screen height the sheet occupies. Values outside `0.3..1.0`, and non-finite ones, are clamped and logged rather than thrown: a layout number must not crash the merchant's app, and iOS clamps the same input. |
| [language](/developers/references/android/id-frak-sdk-ui/fraksharing/builder/language/) | fun [language](/developers/references/android/id-frak-sdk-ui/fraksharing/builder/language/)(languageTag: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)?): FrakSharing.Builder<br>Language of the sheet's contents as a BCP-47 tag (`"en"`, `"fr-CA"`), defaulting to the device locale. Selects among what the page ships; it falls back to its own default for a tag it has no translation for. Part of the pre-warmed URL, so set it once per instance. |