GameRequestDialog
有此級別的更新版本。前往查看 最新版本。

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)
參數說明
activityActivity hosting the dialog.
GameRequestDialog(Fragment)

Constructs a new RequestDialog.

public GameRequestDialog(Fragment fragment)
參數說明
fragmentAndroid.support.v4.app.Fragment hosting the dialog.
GameRequestDialog(Fragment)

Constructs a new RequestDialog.

public GameRequestDialog(Fragment fragment)
參數說明
fragmentAndroid.app.Fragment hosting the dialog.
類別方式
canShow()

Indicates whether the game request dialog can be shown.

public static boolean canShow()
Returns
True if the dialog can be shown
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)
參數說明
activityActivity hosting the dialog.
gameRequestContentContent 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)
參數說明
fragmentAndroid.support.v4.app.Fragment hosting the dialog.
gameRequestContentContent 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)
參數說明
fragmentAndroid.app.Fragment hosting the dialog.
gameRequestContentContent of the request.