PlayGamesSdk

  • PlayGamesSdk is the entry point for the Play Games SDK.

  • It includes a constant MIN_ANDROID_API_VERSION which has a value of 19.

  • The SDK can be initialized using the initialize method, which takes a Context as a parameter.

  • Initialization is often handled automatically by PlayGamesInitProvider unless disabled.

public final class PlayGamesSdk extends Object

Entry point for the Play Games SDK.

Constant Summary

int MIN_ANDROID_API_VERSION

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

Constants

public static final int MIN_ANDROID_API_VERSION

Constant Value: 19

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.
Create a Mobile Website
View Site in Mobile | Classic
Share by: