Use com.facebook.gamingservices.GameRequestDialog
see https://developers.facebook.com/docs/games/requests
@Deprecated public class GameRequestDialog extends com.facebook.internal.FacebookDialogBase<com.facebook.share.model.GameRequestContent,GameRequestDialog.Result>
| Modifier and Type | Class and Description |
|---|---|
static class |
GameRequestDialog.Result
Deprecated.
Helper object for handling the result from a requests dialog
|
| Constructor and Description |
|---|
GameRequestDialog(android.app.Activity activity)
Deprecated.
Constructs a new RequestDialog.
|
GameRequestDialog(androidx.fragment.app.Fragment fragment)
Deprecated.
Constructs a new RequestDialog.
|
GameRequestDialog(android.app.Fragment fragment)
Deprecated.
Constructs a new RequestDialog.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canShow()
Deprecated.
Indicates whether the game request dialog can be shown.
|
protected com.facebook.internal.AppCall |
createBaseAppCall()
Deprecated.
|
protected java.util.List<com.facebook.internal.FacebookDialogBase.ModeHandler> |
getOrderedModeHandlers()
Deprecated.
|
protected void |
registerCallbackImpl(com.facebook.internal.CallbackManagerImpl callbackManager,
com.facebook.FacebookCallback<GameRequestDialog.Result> callback)
Deprecated.
|
static void |
show(android.app.Activity activity,
com.facebook.share.model.GameRequestContent gameRequestContent)
Deprecated.
Shows a
GameRequestDialog to send a request, using the passed in activity. |
static void |
show(androidx.fragment.app.Fragment fragment,
com.facebook.share.model.GameRequestContent gameRequestContent)
Deprecated.
Shows a
GameRequestDialog to send a request, using the passed in activity. |
static void |
show(android.app.Fragment fragment,
com.facebook.share.model.GameRequestContent gameRequestContent)
Deprecated.
Shows a
GameRequestDialog to send a request, using the passed in activity. |
public GameRequestDialog(android.app.Activity activity)
activity - Activity hosting the dialog.public GameRequestDialog(androidx.fragment.app.Fragment fragment)
fragment - androidx.fragment.app.Fragment hosting the dialog.public GameRequestDialog(android.app.Fragment fragment)
fragment - android.app.Fragment hosting the dialog.public static boolean canShow()
public static void show(android.app.Activity activity,
com.facebook.share.model.GameRequestContent gameRequestContent)
GameRequestDialog to send a request, using the passed in activity. No callback
will be invoked.activity - Activity hosting the dialog.gameRequestContent - Content of the request.public static void show(androidx.fragment.app.Fragment fragment,
com.facebook.share.model.GameRequestContent gameRequestContent)
GameRequestDialog to send a request, using the passed in activity. No callback
will be invoked.fragment - androidx.fragment.app.Fragment hosting the dialog.gameRequestContent - Content of the request.public static void show(android.app.Fragment fragment,
com.facebook.share.model.GameRequestContent gameRequestContent)
GameRequestDialog to send a request, using the passed in activity. No callback
will be invoked.fragment - android.app.Fragment hosting the dialog.gameRequestContent - Content of the request.protected void registerCallbackImpl(com.facebook.internal.CallbackManagerImpl callbackManager,
com.facebook.FacebookCallback<GameRequestDialog.Result> callback)
registerCallbackImpl in class com.facebook.internal.FacebookDialogBase<com.facebook.share.model.GameRequestContent,GameRequestDialog.Result>protected com.facebook.internal.AppCall createBaseAppCall()
createBaseAppCall in class com.facebook.internal.FacebookDialogBase<com.facebook.share.model.GameRequestContent,GameRequestDialog.Result>protected java.util.List<com.facebook.internal.FacebookDialogBase.ModeHandler> getOrderedModeHandlers()
getOrderedModeHandlers in class com.facebook.internal.FacebookDialogBase<com.facebook.share.model.GameRequestContent,GameRequestDialog.Result>