Package 

Class TournamentShareDialog

    • 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

      • 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 config
        newTournamentConfig - 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 score
        tournament - An existing tournament that the user wants to post the provided score and share.