Class NonUiGoogleWalletController

  • All Implemented Interfaces:

    
    public final class NonUiGoogleWalletController
    
                        

    Headless controller for the Google Wallet ID flow: drives the same GoogleWalletViewModel engine used by the SDK-hosted GoogleWalletActivity, but reports progress purely through NonUiGoogleWalletListener instead of rendering any SDK-owned screen.

    Obtain one from IncodeWelcome.OnboardingListener.onGoogleWalletReady. Do not construct it.

    Since 5.54.0

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • start

         final Unit start(Activity activity, LifecycleOwner lifecycleOwner, NonUiGoogleWalletListener listener)

        Starts the wallet flow, or re-attaches a running one to a new host.

        Call this from every host that should drive the flow, including one recreated by a configuration change: the flow continues where it was rather than restarting. An upload already in progress is never interrupted, and the user is not asked for the credential again. Once the flow has ended this does nothing - start another ID module for another attempt.

        Call it on the main thread, like the rest of this controller.

        Parameters:
        activity - Activity the Google Wallet credential picker is shown from.
        lifecycleOwner - Owner of your screen.
        listener - Receives progress and the terminal outcome.