PlayGamesSdk
Stay organized with collections
Save and categorize content based on your preferences.
Entry point for the Play Games SDK.
Public Method Summary
static void |
initialize( Context
context)
Initializes the Play Games SDK using the Game services application id defined
in the application's manifest.
|
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Constants
public static final int
MIN_ANDROID_API_VERSION
Public Methods
public static void initialize (Context
context)
Initializes the Play Games SDK using the Game services application id defined in the
application's manifest.
It is only necessary to call this method if you disable the
PlayGamesInitProvider
provider declared by the Play Games SDK. Under
normal circumstances PlayGamesInitProvider
will automatically initialize
the Play Games SDK at application startup.
Parameters
context |
a Context
used to initialize the Play Games SDK. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-09 UTC."],[[["`PlayGamesSdk` is the entry point for integrating the Play Games SDK into your Android application."],["It provides a method, `initialize`, to manually initialize the SDK if automatic initialization is disabled."],["Initialization usually happens automatically at app startup through the `PlayGamesInitProvider`."],["To use the Play Games SDK, your app needs a Game services application ID defined in its manifest."]]],["The `PlayGamesSdk` class serves as the entry point for the Play Games SDK. Key actions include using `initialize(Context context)` to start the SDK, which uses the Game services application ID from the manifest. This is usually handled automatically by `PlayGamesInitProvider`. The minimum supported Android API version is 19, defined by `MIN_ANDROID_API_VERSION`. Inherited methods from the Object class include methods such as `clone`, `equals`, and `toString`, among others.\n"]]