java.lang.Object | |
↳ | com.google.android.gms.wallet.Wallet |
The main entry point for Google Wallet integration. You need to build a GoogleApiClient
using the API
and the appropriate Wallet.WalletOptions
. Once you have called
connect()
and your listener has received the onConnected(android.os.Bundle)
callback, then you can call
the various Wallet APIs.
When your app is done using Wallet, call disconnect()
, even if the async
result from connect()
has not yet been delivered.
You should instantiate an instance of GoogleApiClient
in your Activity's onCreate(Bundle)
method and then call connect()
in onStart()
and disconnect()
in onStop()
, regardless
of the state.
For comments and requirements specific to different Wallet APIs, please see each API interface's header comments.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Wallet.WalletOptions | Options for using the Wallet API. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
API | Add this to your GoogleApiClient via addApi(Api extends Api.ApiOptions.NotRequiredOptions>) to enable
Wallet features. |
||||||||||
Payments | Methods for interacting with Wallet payments APIs. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Add this to your GoogleApiClient
via addApi(Api extends Api.ApiOptions.NotRequiredOptions>)
to enable
Wallet features.
To configure additional Wallet options, provide a Wallet.WalletOptions
object to addApi(Api extends Api.ApiOptions.NotRequiredOptions>)
.
Use changeMaskedWallet(GoogleApiClient, String, String, int)
from Payments
.
Parameters | |
---|---|
googleApiClient |
GoogleApiClient
|
googleTransactionId |
String
|
merchantTransactionId |
String
|
requestCode |
int
|
Use checkForPreAuthorization(GoogleApiClient, int)
from Payments
.
Parameters | |
---|---|
googleApiClient |
GoogleApiClient
|
requestCode |
int
|
Use loadFullWallet(GoogleApiClient, FullWalletRequest, int)
from Payments
.
Parameters | |
---|---|
googleApiClient |
GoogleApiClient
|
request |
FullWalletRequest
|
requestCode |
int
|
Use loadMaskedWallet(GoogleApiClient, MaskedWalletRequest, int)
from Payments
.
Parameters | |
---|---|
googleApiClient |
GoogleApiClient
|
request |
MaskedWalletRequest
|
requestCode |
int
|
Use notifyTransactionStatus(GoogleApiClient, NotifyTransactionStatusRequest)
from Payments
.
Parameters | |
---|---|
googleApiClient |
GoogleApiClient
|
request |
NotifyTransactionStatusRequest
|