Package com.stytch.sdk.ui.b2b
Class StytchB2BUI.Builder
-
- All Implemented Interfaces:
public final class StytchB2BUI.BuilderThe Builder class is used to construct an instance of the StytchUI class
-
-
Constructor Summary
Constructors Constructor Description StytchB2BUI.Builder()
-
Method Summary
Modifier and Type Method Description final StytchB2BUI.Builderactivity(ComponentActivity activity)Sets the hosting activity that the Stytch UI activity will report results back to final StytchB2BUI.BuilderonAuthenticated(Function1<AuthenticationResult, Unit> onAuthenticated)Sets the handler that will be notified of authenticate results final StytchB2BUI.Builderstyles(StytchStyles styles)Sets the styles used by the UI. final StytchB2BUI.BuilderproductConfig(StytchB2BProductConfig config)Sets the product configuration, including which products are supported and their associated configurations final StytchB2BUIbuild()Builds an instance of the StytchUI class -
-
Method Detail
-
activity
final StytchB2BUI.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 StytchB2BUI.Builder onAuthenticated(Function1<AuthenticationResult, Unit> onAuthenticated)
Sets the handler that will be notified of authenticate results
- Parameters:
onAuthenticated- the handler that will be notified
-
styles
final StytchB2BUI.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 StytchB2BUI.Builder productConfig(StytchB2BProductConfig config)
Sets the product configuration, including which products are supported and their associated configurations
- Parameters:
config- a StytchB2BProductConfig instance
-
build
final StytchB2BUI build()
Builds an instance of the StytchUI class
-
-
-
-