Builder
class Builder(callback: FrakSharing.ResultCallback)
Builds a FrakSharing against a hosting Activity.
Constructors
Section titled “Constructors”| Builder | constructor(callback: FrakSharing.ResultCallback) |
Functions
Section titled “Functions”| Name | Summary |
|---|---|
| build | fun build(): FrakSharing The Compose build site; resolves the hosting Activity from LocalContext and warms on composition-enter, so warm never has to be called by hand.fun build(activity: ERROR CLASS: Symbol not found for ComponentActivity): FrakSharing 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 | fun heightFraction(fraction: Float): FrakSharing.Builder 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 | fun language(languageTag: String?): FrakSharing.Builder 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. |