PICO Platform Unity SDK
|
Static Public Member Functions | |
static Task< Challenge > | Invite (UInt64 challengeID, string[] userID) |
Invites specified user(s). More... | |
static Task< Challenge > | Get (UInt64 challengeID) |
Gets the information for a specified challenge. More... | |
static Task< ChallengeEntryList > | GetEntries (UInt64 challengeID, LeaderboardFilterType filter, LeaderboardStartAt startAt, int pageIdx, int pageSize) |
Gets a list of challenge entries. More... | |
static Task< ChallengeEntryList > | GetEntriesAfterRank (UInt64 challengeID, ulong afterRank, int pageIdx, int pageSize) |
Gets a list of challenge entries after a specified rank. More... | |
static Task< ChallengeEntryList > | GetEntriesByIds (UInt64 challengeID, LeaderboardStartAt startAt, string[] userIDs, int pageIdx, int pageSize) |
Gets a list of challenge entries for specified users. More... | |
static Task< ChallengeList > | GetList (ChallengeOptions challengeOptions, int pageIdx, int pageSize) |
Gets a list of challenges. More... | |
static Task< Challenge > | Join (UInt64 challengeID) |
Lets the current user join a challenge. More... | |
static Task< Challenge > | Leave (UInt64 challengeID) |
Lets the current user leave a challenge. More... | |
static Task | LaunchInvitableUserFlow (UInt64 challengeID) |
Launches the invitation flow to let the current user invite friends to a specified challenge. This launches the system default invite UI where all of the user's friends are displayed. This is intended to be a shortcut for developers not wanting to build their own invite-friends UI. More... | |
static void | SetChallengeInviteAcceptedOrLaunchAppNotificationCallback (Message< string >.Handler handler) |
Sets the callback to get notified when the user has accepted an invitation. More... | |
Challenges create fun-to-join competitions among users, which can therefore provide users with more opportunities to interact with others. Challenges are asynchronous events, so users do not have to be online and do challenges at the same time.
Both you and your app's users are able to create challenges, configure challenge settings (including name, visibility, start time, and end time), and invite friends to join challenges to have fun together. Users can also join the challenges created by PICO.
Invites specified user(s).
challengeID | The ID of the challenge to which user(s) are invited. |
userID | The ID(s) of the user(s) to invite. |
Challenge
struct that contains the information about the challenge, such as challenge ID, the leaderboard the challenge belongs to, the challenge's end date and start date, etc.Gets the information for a specified challenge.
challengeID | The ID of the challenge to get information for. |
Challenge
struct that contains the information about the challenge, such as challenge ID, the leaderboard the challenge belongs to, the challenge's end date and start date, etc.
|
inlinestatic |
Gets a list of challenge entries.
challengeID | The ID of the challenge whose entries are to be returned. |
filter | Restricts the scope of entries to return:
|
startAt | Defines where to start returning challenge entries, the enumerations are:
|
pageIdx | Defines which page of entries to return. The first page index is 0 . For example, if you want to get the first page of entries, pass 0 ; if you want to get the second page of entries, pass 1 . |
pageSize | Defines the number of entries to return on the page. |
|
inlinestatic |
Gets a list of challenge entries after a specified rank.
challengeID | The ID of the challenge whose entries are to be returned. |
afterRank | Defines the rank after which the entries are to be returned. |
pageIdx | Defines which page of entries to return. The first page index is 0 . For example, if you want to get the first page of entries, pass 0 ; if you want to get the second page of entries, pass 1 . |
pageSize | Defines the number of entries to return on each page. |
|
inlinestatic |
Gets a list of challenge entries for specified users.
challengeID | The ID of the challenge whose entries are to be returned. |
startAt | Defines where to start returning challenge entries, the enumerations are:
|
userIDs | Defines a list of user IDs to get entries for. |
pageIdx | Defines which page of entries to return. The first page index is 0 . For example, if you want to get the first page of entries, pass 0 ; if you want to get the second page of entries, pass 1 . |
pageSize | Defines the number of entries to return on each page. |
|
inlinestatic |
Gets a list of challenges.
challengeOptions | Restricts the scope of challenges to return. You can define the start date and end date of challenges, the leaderboard the challenges belong to, etc. |
pageIdx | Defines which page of challenges to return. The first page index is 0 . For example, if you want to get the first page of entries, pass 0 ; if you want to get the second page of entries, pass 1 . |
pageSize | Defines the number of challenges to return on each page. |
Lets the current user join a challenge.
challengeID | The ID of the challenge to join. |
Challenge
struct that contains the information about the challenge, such as challenge ID, the leaderboard the challenge belongs to, the challenge's end date and start date, etc.Lets the current user leave a challenge.
challengeID | The ID of the challenge to leave. |
Challenge
struct that contains the information about the challenge, such as challenge ID, the leaderboard the challenge belongs to, the challenge's end date and start date, etc.
|
inlinestatic |
Launches the invitation flow to let the current user invite friends to a specified challenge. This launches the system default invite UI where all of the user's friends are displayed. This is intended to be a shortcut for developers not wanting to build their own invite-friends UI.
challengeID | The ID of the challenge. |
|
inlinestatic |
Sets the callback to get notified when the user has accepted an invitation.
handler | The callback function will be called when receiving the Notification_Challenge_LaunchByInvite message. |