# build

fun build(activity: ERROR CLASS: Symbol not found for ComponentActivity): [FrakSharing](/developers/references/android/id-frak-sdk-ui/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.

#### Throws

| | |
|---|---|
| [IllegalStateException](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalStateException.html) | if called before the Activity reaches `onCreate`. |

fun build(): [FrakSharing](/developers/references/android/id-frak-sdk-ui/fraksharing/)

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.