public class GamingPayload
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getGameRequestID()
Retrieves the Game Request ID that referred the user to the game.
|
static java.lang.String |
getPayload()
Retrieves a payload sent from Facebook to this game.
|
static void |
loadPayloadFromCloudGame(java.lang.String payloadString)
Retireves any Gaming Payload bundled in the start arguments for a Game running on Facebook
Cloud.
|
static void |
loadPayloadFromIntent(android.content.Intent intent)
Retrieves any Gaming Payload bundled within the Intent that launched the Game.
|
@Nullable public static java.lang.String getGameRequestID()
When a user sends a Game Request, the recipient can launch the game directly from Facebook, the resulting deeplink will provide the referring Game Request ID.
@Nullable public static java.lang.String getPayload()
When a GameRequest contains the data field, it will be forwarded here as a payload.
public static void loadPayloadFromCloudGame(java.lang.String payloadString)
payloadString - JSON Encoded payload.public static void loadPayloadFromIntent(android.content.Intent intent)
intent - Intent that lanched this Game.