Package 

Class TournamentJoinDialog

    • Method Summary

      Modifier and Type Method Description
      final Integer getRequestCode()
      final Unit setRequestCode(Integer requestCode) Set the request code for the startActivityForResult call.
      final Unit show(String tournamentID, String payload) Shows the tournament join dialog, where the user may join a specified tournament.
      Boolean canShow(String content) Indicates whether the dialog can be shown for the content passed in.
      • Methods inherited from class com.facebook.gamingservices.TournamentJoinDialog

        createActivityResultContractForShowingDialog, registerCallback, registerCallback, setCallbackManager, show
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TournamentJoinDialog

        TournamentJoinDialog(Activity activity)
        Constructs a new TournamentJoinDialog.
        Parameters:
        activity - Activity hosting the dialog.
      • TournamentJoinDialog

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

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

      • setRequestCode

         final Unit setRequestCode(Integer requestCode)

        Set the request code for the startActivityForResult call. The requestCode should be outside of the range of those reserved for the Facebook SDK .

        Parameters:
        requestCode - the request code to use.
      • show

         final Unit show(String tournamentID, String payload)

        Shows the tournament join dialog, where the user may join a specified tournament. If no tournamentID is provided, the dialog present a list of suggested tournaments instead.

        Parameters:
        tournamentID - The tournament to be joined (optional).
        payload - The tournament payload.
      • canShow

         Boolean canShow(String content)

        Indicates whether the dialog can be shown for the content passed in.

        Parameters:
        content - the content to check