-
- All Implemented Interfaces:
-
com.facebook.FacebookDialog
public final class TournamentJoinDialog extends FacebookDialogBase<String, TournamentJoinDialog.Result>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classTournamentJoinDialog.Companionpublic final classTournamentJoinDialog.ResultThe result of a successful TournamentJoinDialog.
-
Field Summary
Fields Modifier and Type Field Description private IntegerrequestCode
-
Constructor Summary
Constructors Constructor Description TournamentJoinDialog(Activity activity)Constructs a new TournamentJoinDialog. TournamentJoinDialog(Fragment fragment)Constructs a new TournamentJoinDialog. TournamentJoinDialog(Fragment fragment)Constructs a new TournamentJoinDialog.
-
Method Summary
Modifier and Type Method Description final IntegergetRequestCode()final UnitsetRequestCode(Integer requestCode)Set the request code for the startActivityForResult call. final Unitshow(String tournamentID, String payload)Shows the tournament join dialog, where the user may join a specified tournament. BooleancanShow(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
-
getRequestCode
final Integer getRequestCode()
-
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.
-
-
-
-