docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Tournament

    An instant game tournament.

    Inheritance
    object
    JsObject
    Tournament
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Meta.InstantGames.v8
    Assembly: Unity.Meta.InstantGames.Sdk.v8.dll
    Syntax
    public class Tournament : JsObject

    Constructors

    Tournament()

    Construct an instance of Tournament

    Declaration
    public Tournament()

    Methods

    GetContextID()

    The unique context ID that is associated with this instant tournament.

    Declaration
    public string GetContextID()
    Returns
    Type Description
    string

    A string.

    GetEndTime()

    Timestamp when the instant tournament ends. If the end time is in the past, then the instant tournament is already finished and has expired.

    Declaration
    public double GetEndTime()
    Returns
    Type Description
    double

    A number.

    GetID()

    The unique ID that is associated with this instant tournament.

    Declaration
    public string GetID()
    Returns
    Type Description
    string

    A string.

    GetPayload()

    Payload of the tournament provided upon the creation of the tournament. This is an optional field that can be set by creating the tournament using the FBInstant.tournament.createAsync() API. Returns null if none was provided.

    Declaration
    public string GetPayload()
    Returns
    Type Description
    string

    A nullable string.

    GetTitle()

    Title of the tournament provided upon the creation of the tournament. This is an optional field that can be set by creating the tournament using the FBInstant.tournament.createAsync() API.

    Declaration
    public string GetTitle()
    Returns
    Type Description
    string

    A nullable string.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)