Class UnbluTwoFactorAuthWebView

java.lang.Object
com.unblu.sdk.core.ui.UnbluTwoFactorAuthWebView

public class UnbluTwoFactorAuthWebView extends Object
Utility class for displaying the Unblu two-factor authentication (2FA) WebView in a modal bottom sheet.
  • 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 the UnbluClient.
      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 a Set<UnbluCookie> if authentication succeeds.