WalletObjects

  • WalletObjects is an interface serving as an entry point for Wallet objects functionality.

  • The primary methodcreateWalletObjects in this interface is used to launch a UI allowing users to save a Loyalty Card wallet object.

  • ThecreateWalletObjects method requires aGoogleApiClient, aCreateWalletObjectsRequest specifying the objects, and arequestCode for activity result handling.

public interfaceWalletObjects

Entry point for Wallet objects functionality.

Public Method Summary

abstract void
createWalletObjects(GoogleApiClient googleApiClient, CreateWalletObjectsRequest request, int requestCode)
Launches a UI that allows the user to save a Loyalty Card wallet object to their Wallet.

Public Methods

public abstract voidcreateWalletObjects(GoogleApiClient googleApiClient,CreateWalletObjectsRequest request, int requestCode)

Launches a UI that allows the user to save a Loyalty Card wallet object to their Wallet.

Parameters
googleApiClientAn instance ofGoogleApiClient which uses the Wallet API
requestAn instance ofCreateWalletObjectsRequest which specifies actual objects to create
requestCodeis passed back in Activity.onActivityResult(int, int, Intent) where you can check if request succeeded

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-10-31 UTC.