-
- 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
Nested Classes Modifier and Type Class Description public final class
GameRequestDialog.Result
Helper object for handling the result from a requests dialog
-
Constructor Summary
Constructors Constructor Description 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 Type Method Description static boolean
canShow()
Indicates whether the game request dialog can be shown. static void
show(Activity activity, GameRequestContent gameRequestContent)
Shows a GameRequestDialog to send a request, using the passed in activity. static void
show(Fragment fragment, GameRequestContent gameRequestContent)
Shows a GameRequestDialog to send a request, using the passed in activity. static void
show(Fragment fragment, GameRequestContent gameRequestContent)
Shows a GameRequestDialog to send a request, using the passed in activity. -
-
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.
-
-
-
-