rememberSpreeAITryOn

A Composable function that creates and remembers a SpreeAITryOn instance.

This is the recommended way to integrate the Spree AI Try-On flow within a Jetpack Compose UI. It handles the lifecycle and registration of the activity result launcher automatically.

Return

A remembered instance of SpreeAITryOn that can be used to launch the flow.

Parameters

callback

A lambda function that will be invoked with the SpreeAITryOn.Result of the try-on flow.