Package com.stytch.sdk.ui.b2c
Class StytchUI.Builder
-
- All Implemented Interfaces:
public final class StytchUI.BuilderThe Builder class is used to construct an instance of the StytchUI class
-
-
Constructor Summary
Constructors Constructor Description StytchUI.Builder()
-
Method Summary
Modifier and Type Method Description final StytchUI.Builderactivity(ComponentActivity activity)Sets the hosting activity that the Stytch UI activity will report results back to final StytchUI.BuilderonAuthenticated(Function1<StytchResult<?>, Unit> onAuthenticated)Sets the handler that will be notified of authenticate results final StytchUI.Builderstyles(StytchStyles styles)Sets the styles used by the UI. final StytchUI.BuilderproductConfig(StytchProductConfig config)Sets the product configuration, including which products are supported and their associated configurations final StytchUIbuild()Builds an instance of the StytchUI class -
-
Method Detail
-
activity
final StytchUI.Builder activity(ComponentActivity activity)
Sets the hosting activity that the Stytch UI activity will report results back to
- Parameters:
activity- Your host activity from which you will launch the Stytch UI activity and listen for results
-
onAuthenticated
final StytchUI.Builder onAuthenticated(Function1<StytchResult<?>, Unit> onAuthenticated)
Sets the handler that will be notified of authenticate results
- Parameters:
onAuthenticated- the handler that will be notified
-
styles
final StytchUI.Builder styles(StytchStyles styles)
Sets the styles used by the UI. This is optional, and if not provided, default Stytch Styles will be applied, providing both dark and light themes
- Parameters:
styles- a StytchStyles instance
-
productConfig
final StytchUI.Builder productConfig(StytchProductConfig config)
Sets the product configuration, including which products are supported and their associated configurations
- Parameters:
config- a StytchProductConfig instance
-
-
-
-