Package 

Class GameRequestDialog

    • 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

    • 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.
      • 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.