PICO Platform Unity SDK
|
Static Public Member Functions | |
static Task< UserList > | GetInvitableUsers (InviteOptions options) |
Gets a list of invitable users for the current logged-in user. More... | |
static Task< ApplicationInviteList > | GetSentInvites () |
Gets a list of invited users for the current logged-in user. You need set Presence before call this function. More... | |
static Task< ApplicationInviteList > | GetNextApplicationInviteListPage (ApplicationInviteList list) |
Get the next page of invited users. More... | |
static Task< SendInvitesResult > | SendInvites (string[] userIds) |
Invites specified user(s) to the current destination. More... | |
static Task | Set (PresenceOptions options) |
Sets presence data for the current logged-in user. More... | |
static Task | SetDestination (string apiName) |
Replaces the current logged-in user's destination with the provided one. More... | |
static Task | SetIsJoinable (bool joinable) |
Sets whether the current logged-in user is joinable. More... | |
static Task | SetLobbySession (string lobbySessionId) |
Replaces the current logged-in user's lobby session ID with the provided one. More... | |
static Task | SetMatchSession (string matchSessionId) |
Replaces the current logged-in user's match session ID with the provided one. More... | |
static Task | SetExtra (string extra) |
Sets extra presence data for the current logged-in user. More... | |
static Task | Clear () |
Clears presence data for the current logged-in user. More... | |
static Task< DestinationList > | GetDestinations () |
Gets a list of destinations created on the PICO Developer Platform. More... | |
static Task< DestinationList > | GetNextDestinationListPage (DestinationList destinationList) |
Gets the next page of destinations. More... | |
static Task | LaunchInvitePanel () |
Launches the invite panel provided in the PICO Friends app. Users can invite other people on the panel. More... | |
static Task | ShareVideoByImages (List< string > imagePaths) |
Shares a video made of images to Douyin (a video app in Mainland China). More... | |
static Task | ShareVideo (string videoPath, string videoThumbPath) |
Shares a video to Douyin (a video app in Mainland China). More... | |
static void | SetJoinIntentReceivedNotificationCallback (Message< PresenceJoinIntent >.Handler callback) |
|
inlinestatic |
Gets a list of invitable users for the current logged-in user.
options | Restricts the scope of friends returned. If no user ID is passed, all friends will be returned. If specific user IDs are passed, the information about specified friends will be returned. |
|
inlinestatic |
Gets a list of invited users for the current logged-in user. You need set Presence before call this function.
|
inlinestatic |
Get the next page of invited users.
list | The current page of invited users. |
|
inlinestatic |
Invites specified user(s) to the current destination.
userIds | The ID(s) of the user(s) to invite. |
|
inlinestatic |
Sets presence data for the current logged-in user.
options | Presence-related options, including:
|
|
inlinestatic |
Replaces the current logged-in user's destination with the provided one.
apiName | The API name of the new destination. |
|
inlinestatic |
Sets whether the current logged-in user is joinable.
joinable | Defines whether the user is joinable:
|
|
inlinestatic |
Replaces the current logged-in user's lobby session ID with the provided one.
lobbySessionId | The new lobby session ID. |
|
inlinestatic |
Replaces the current logged-in user's match session ID with the provided one.
matchSessionId | The new match session ID. |
|
inlinestatic |
Sets extra presence data for the current logged-in user.
extra | The extra presence data, which is defined by the developer and will be returned in the user's presence information. |
|
inlinestatic |
Clears presence data for the current logged-in user.
|
inlinestatic |
Gets a list of destinations created on the PICO Developer Platform.
|
inlinestatic |
Gets the next page of destinations.
destinationList | The current page of destinations. |
|
inlinestatic |
Launches the invite panel provided in the PICO Friends app. Users can invite other people on the panel.
Message.Error
to see whether the panel has been successfully launched.
|
inlinestatic |
Shares a video made of images to Douyin (a video app in Mainland China).
imagePaths | The local path to images. |
Message.Error
to see whether the video has been successfully shared.
|
inlinestatic |
Shares a video to Douyin (a video app in Mainland China).
videoPath | The local path to the video. |
videoThumbPath | The local path to the video thumbnail. If not defined, the first frame of the video will become the thumbnail. |
Message.Error
to see whether the video has been successfully shared.
|
inlinestatic |
When the user clicks on the invitation message, the system will launch your app and the callback will be triggered. Read the fields of Pico.Platform.Models.PresenceJoinIntent to figure out where the user wants to go. If the user is unable to go there, show the user the info about why they cannot go there.