Class NonUiGoogleWalletController
-
- All Implemented Interfaces:
public final class NonUiGoogleWalletControllerHeadless 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
-
-
Method Summary
Modifier and Type Method Description final Unitstart(Activity activity, LifecycleOwner lifecycleOwner, NonUiGoogleWalletListener listener)Starts the wallet flow, or re-attaches a running one to a new host. final Unitcancel()Ends the flow with ResultCode.USER_CANCELLED and stops the engine, so no further NonUiGoogleWalletListener callback arrives for work that was already in flight. -
-
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.
-
cancel
final Unit cancel()
Ends the flow with ResultCode.USER_CANCELLED and stops the engine, so no further NonUiGoogleWalletListener callback arrives for work that was already in flight.
-
-
-
-