A client to interact with games basic functionality.
Public Method Summary
Inherited Method Summary
Task returned will not be null, but the
returned from the
Task may be null if it was already received or there is
no related data found.
Unless a new user action is performed all the subsequent calls will return a
Task with a null
Bundle can contain the following keys:
EXTRA_INVITATIONif the user wanted to accept an invitation to a multiplayer game. The value contained here is an
Invitationwhich can be accessed with
EXTRA_TURN_BASED_MATCHif the user wanted to take action in a turn-based match. The value contained here is a
TurnBasedMatchwhich can be accessed with
EXTRA_REQUESTSif the user wanted to accept one or more requests. The value contained here is a list of
GameRequestobjects which can be accessed with
EXTRA_SNAPSHOT_METADATAif the user wanted to resume a saved game. The value contained here is a
SnapshotMetadataobject which can be accessed with
EXTRA_QUESTif the user wanted to accept a specific quest. The value contained here is a
Questwhich can be accessed with
asynchronously loads the name of the currently selected account. This is the account
the user has chosen to use for Google Play Games.
Task can fail with a
Note that your app must have
android:name="android.permission.GET_ACCOUNTS" /> declared in your manifest
in order to use this method. Otherwise the
Task will fail with
asynchronously loads an
show the Settings screen that allows the user to configure Games-related features for
the current game. Note that this must be invoked with
startActivityForResult(Intent, int), so that the identity of the calling
package can be established.
Task can fail with a
Most applications will not need to call this directly, since the Settings UI is already reachable from most other Games UI screens (achievements, leaderboards, etc.) via a menu item.
asynchronously sets the part of the screen at which games service pop-ups (for example,
"welcome back" or "achievement unlocked" popups) will be displayed using gravity.
|gravity||The gravity which controls the placement of games service pop-ups.|