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 void
show
(android.content.Context context, UnbluClientConfiguration config, String reloadButtonText, int errorTextColor, int reloadButtonTextColor, Consumer<Set<UnbluCookie>> 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, String reloadButtonText, int errorTextColor, int reloadButtonTextColor, Consumer<Set<UnbluCookie>> 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
.reloadButtonText
- The text displayed on the reload button (can be localized).errorTextColor
- The color of the error message text.reloadButtonTextColor
- The color of the reload button text.onResult
- A callback function that receives aSet<UnbluCookie>
if authentication succeeds.
-