Provides functionality to send requests in games. see https://developers.facebook.com/docs/games/requests
Расширение: | FacebookDialogBase |
Пакет: | widget |
GameRequestDialog(Activity)
Constructs a new RequestDialog.
public GameRequestDialog(Activity activity)
Параметр | Описание |
---|---|
activity | Activity hosting the dialog. |
GameRequestDialog(Fragment)
Constructs a new RequestDialog.
public GameRequestDialog(Fragment fragment)
Параметр | Описание |
---|---|
fragment | Android.support.v4.app.Fragment hosting the dialog. |
GameRequestDialog(Fragment)
Constructs a new RequestDialog.
public GameRequestDialog(Fragment fragment)
Параметр | Описание |
---|---|
fragment | Android.app.Fragment hosting the dialog. |
canShow()
Indicates whether the game request dialog can be shown.
public static boolean canShow()
show(Activity, GameRequestContent)
Shows a GameRequestDialog to send a request, using the passed in activity. No callback will be invoked.
public static void show(Activity activity, GameRequestContent gameRequestContent)
Параметр | Описание |
---|---|
activity | Activity hosting the dialog. |
gameRequestContent | Content of the request. |
show(Fragment, GameRequestContent)
Shows a GameRequestDialog to send a request, using the passed in activity. No callback will be invoked.
public static void show(Fragment fragment, GameRequestContent gameRequestContent)
Параметр | Описание |
---|---|
fragment | Android.support.v4.app.Fragment hosting the dialog. |
gameRequestContent | Content of the request. |
show(Fragment, GameRequestContent)
Shows a GameRequestDialog to send a request, using the passed in activity. No callback will be invoked.
public static void show(Fragment fragment, GameRequestContent gameRequestContent)
Параметр | Описание |
---|---|
fragment | Android.app.Fragment hosting the dialog. |
gameRequestContent | Content of the request. |