-
- All Implemented Interfaces:
-
com.facebook.FacebookDialog
public final class TournamentShareDialog extends FacebookDialogBase<TournamentConfig, TournamentShareDialog.Result>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classTournamentShareDialog.Companionpublic final classTournamentShareDialog.Result
-
Field Summary
Fields Modifier and Type Field Description private Numberscoreprivate Tournamenttournamentprivate IntegerrequestCode
-
Constructor Summary
Constructors Constructor Description TournamentShareDialog(Activity activity)Constructs a new TournamentShareDialog. TournamentShareDialog(Fragment fragment)Constructs a new TournamentShareDialog. TournamentShareDialog(Fragment fragment)Constructs a new TournamentShareDialog.
-
Method Summary
Modifier and Type Method Description final NumbergetScore()final UnitsetScore(Number score)final TournamentgetTournament()final UnitsetTournament(Tournament tournament)final IntegergetRequestCode()final UnitsetRequestCode(Integer requestCode)final Unitshow(Number score, TournamentConfig newTournamentConfig)Shows the tournament share dialog, where the user has the option to share a newly created tournament with the provided score and configuration. final Unitshow(Number score, Tournament tournament)Shows the tournament share dialog, where the user has the option to share the provided tournament with the provided score if it's greater than their previous score. -
Methods inherited from class com.facebook.gamingservices.TournamentShareDialog
canShow, 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
-
TournamentShareDialog
TournamentShareDialog(Activity activity)
Constructs a new TournamentShareDialog.- Parameters:
activity- Activity hosting the dialog.
-
TournamentShareDialog
TournamentShareDialog(Fragment fragment)
Constructs a new TournamentShareDialog.- Parameters:
fragment- androidx.fragment.app.Fragment hosting the dialog.
-
TournamentShareDialog
TournamentShareDialog(Fragment fragment)
Constructs a new TournamentShareDialog.- Parameters:
fragment- android.app.Fragment hosting the dialog.
-
-
Method Detail
-
getTournament
final Tournament getTournament()
-
setTournament
final Unit setTournament(Tournament tournament)
-
getRequestCode
final Integer getRequestCode()
-
setRequestCode
final Unit setRequestCode(Integer requestCode)
-
show
final Unit show(Number score, TournamentConfig newTournamentConfig)
Shows the tournament share dialog, where the user has the option to share a newly created tournament with the provided score and configuration.
- Parameters:
score- A number representing an score initial score for the tournament that will be created with the provided confignewTournamentConfig- A tournament configuration that will be used to create a new tournament and post the provided score in said tournament
-
show
final Unit show(Number score, Tournament tournament)
Shows the tournament share dialog, where the user has the option to share the provided tournament with the provided score if it's greater than their previous score.
- Parameters:
score- A number representing a scoretournament- An existing tournament that the user wants to post the provided score and share.
-
-
-
-