Class AN_GamesClient
A client to interact with games basic functionality.
Inheritance
System.Object
AN_GamesClient
Namespace: SA.Android.GMS.Games
Assembly: cs.temp.dll.dll
Syntax
public class AN_GamesClient : AN_LinkedObject
Methods
GetSettingsIntent(Action<AN_IntentResult>)
Asynchronously loads an Intent to show the Settings screen
that allows the user to configure Games-related features for the current game.
Note that this must be invoked with
Required Scopes: SCOPE_GAMES_LITE
Declaration
public void GetSettingsIntent(Action<AN_IntentResult> callback)
Parameters
Type | Name | Description |
---|---|---|
Action<AN_IntentResult> | callback | Task completion callback. |
SetGravityForPopups(Int32)
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.
Default value is TOP | CENTER_HORIZONTAL
Declaration
public void SetGravityForPopups(int gravity)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | gravity | The gravity which controls the placement of games service pop-ups. |
SetViewForPopups(AN_Activity)
Asynchronously sets the Activity root view to use as a content view for popups
Declaration
public void SetViewForPopups(AN_Activity activity)
Parameters
Type | Name | Description |
---|---|---|
AN_Activity | activity |