Google is committed to advancing racial equity for Black communities. See how.

AccountTransfer

public final class AccountTransfer extends Object

Main entry point for AccountTransfer API's.

Constant Summary

String ACTION_ACCOUNT_EXPORT_DATA_AVAILABLE Broadcast sent to the packages which own the accounts on device to notify availability of export transfer data.
String ACTION_ACCOUNT_IMPORT_DATA_AVAILABLE Broadcast sent to the packages which own the accounts on device to notify availability of import transfer data.
String ACTION_START_ACCOUNT_EXPORT Broadcast sent to the packages which own the accounts on device to notify starting of account export.
String KEY_EXTRA_ACCOUNT_TYPE Extra key sent with broadcast putting in account type.

Public Method Summary

static AccountTransferClient
getAccountTransferClient(Context context)
Creates a new instance of AccountTransferClient for use in a non-activity Context.
static AccountTransferClient
getAccountTransferClient(Activity activity)
Creates a new instance of AccountTransferClient for use in an Activity.

Inherited Method Summary

Constants

public static final String ACTION_ACCOUNT_EXPORT_DATA_AVAILABLE

Broadcast sent to the packages which own the accounts on device to notify availability of export transfer data.

Constant Value: "com.google.android.gms.auth.ACCOUNT_EXPORT_DATA_AVAILABLE"

public static final String ACTION_ACCOUNT_IMPORT_DATA_AVAILABLE

Broadcast sent to the packages which own the accounts on device to notify availability of import transfer data.

Constant Value: "com.google.android.gms.auth.ACCOUNT_IMPORT_DATA_AVAILABLE"

public static final String ACTION_START_ACCOUNT_EXPORT

Broadcast sent to the packages which own the accounts on device to notify starting of account export. This broadcast is only sent once on the source (exporting) device.

Constant Value: "com.google.android.gms.auth.START_ACCOUNT_EXPORT"

public static final String KEY_EXTRA_ACCOUNT_TYPE

Extra key sent with broadcast putting in account type. It is useful for inspection if the same package is responsible for multiple account types.

Constant Value: "key_extra_account_type"

Public Methods

public static AccountTransferClient getAccountTransferClient (Context context)

Creates a new instance of AccountTransferClient for use in a non-activity Context.

public static AccountTransferClient getAccountTransferClient (Activity activity)

Creates a new instance of AccountTransferClient for use in an Activity.