Android SDK Version
All Implemented Interfaces:
com.facebook.FacebookDialog

@Deprecated() 
public class GameRequestDialog
extends FacebookDialogBase<GameRequestContent, GameRequestDialog.Result>
                    
Provides functionality to send requests in games.
Nested Class Summary
Modifier and TypeClassDescription
public final classGameRequestDialog.Result
Helper object for handling the result from a requests dialog
Constructor Summary
ConstructorDescription
GameRequestDialog(Activity activity)Constructs a new RequestDialog.
GameRequestDialog(Fragment fragment)Constructs a new RequestDialog.
GameRequestDialog(Fragment fragment)Constructs a new RequestDialog.
Method Summary
Modifier and TypeMethodDescription
static booleancanShow() Indicates whether the game request dialog can be shown.
static voidshow(Activity activity, GameRequestContent gameRequestContent) Shows a GameRequestDialog to send a request, using the passed in activity.
static voidshow(Fragment fragment, GameRequestContent gameRequestContent) Shows a GameRequestDialog to send a request, using the passed in activity.
static voidshow(Fragment fragment, GameRequestContent gameRequestContent) Shows a GameRequestDialog to send a request, using the passed in activity.
Methods inherited from class com.facebook.internal.FacebookDialogBase
canShow, getCallbackManager$module, getRequestCode, registerCallback, setCallbackManager, setCallbackManager$module, setRequestCode, show
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

GameRequestDialog

GameRequestDialog(Activity activity)
Constructs a new RequestDialog.
Parameters:
activity - Activity hosting the dialog.

GameRequestDialog

GameRequestDialog(Fragment fragment)
Constructs a new RequestDialog.
Parameters:
fragment - androidx.fragment.app.Fragment hosting the dialog.

GameRequestDialog

GameRequestDialog(Fragment fragment)
Constructs a new RequestDialog.
Parameters:
fragment - android.app.Fragment hosting the dialog.
Method Detail

canShow

 static boolean canShow()
Indicates whether the game request dialog can be shown.

show

 static void show(Activity activity, GameRequestContent gameRequestContent)
Shows a GameRequestDialog to send a request, using the passed in activity. No callbackwill be invoked.
Parameters:
activity - Activity hosting the dialog.
gameRequestContent - Content of the request.

show

 static void show(Fragment fragment, GameRequestContent gameRequestContent)
Shows a GameRequestDialog to send a request, using the passed in activity. No callbackwill be invoked.
Parameters:
fragment - androidx.fragment.app.Fragment hosting the dialog.
gameRequestContent - Content of the request.

show

 static void show(Fragment fragment, GameRequestContent gameRequestContent)
Shows a GameRequestDialog to send a request, using the passed in activity. No callbackwill be invoked.
Parameters:
fragment - android.app.Fragment hosting the dialog.
gameRequestContent - Content of the request.