Package com.unblu.sdk.core.ui
Class UnbluTwoFactorAuthWebView
java.lang.Object
com.unblu.sdk.core.ui.UnbluTwoFactorAuthWebView
Utility class for displaying the Unblu two-factor authentication (2FA) WebView
in a modal bottom sheet.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidshow(android.content.Context context, UnbluClientConfiguration config, com.unblu.sdk.core.internal.webview.UnbluTwoFactorAuthErrorUIConfig errorUIConfig, Consumer<kotlin.Pair<Boolean, String>> onResult) Displays the Unblu two-factor authentication WebView in a modal BottomSheetDialog.
-
Method Details
-
show
public static void show(android.content.Context context, UnbluClientConfiguration config, com.unblu.sdk.core.internal.webview.UnbluTwoFactorAuthErrorUIConfig errorUIConfig, Consumer<kotlin.Pair<Boolean, String>> onResult) Displays the Unblu two-factor authentication WebView in a modal BottomSheetDialog. The call is ignored if another instance is already showing.- Parameters:
context- The context used to display the 2FA view.config- The configuration settings required for theUnbluClient.errorUIConfig- (Optional) The UI configuration used to customize the appearance of the error view and buttons. Can benull, in which case a default configuration will be used.onResult- A callback function that receives aPair:Boolean– whether authentication was successfulString– error message if authentication failed, ornullon success
-