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, 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 the UnbluClient.
      errorUIConfig - (Optional) The UI configuration used to customize the appearance of the error view and buttons. Can be null, in which case a default configuration will be used.
      onResult - A callback function that receives a Pair: Boolean – whether authentication was successful String – error message if authentication failed, or null on success