PICO Platform Unity SDK
|
Static Public Member Functions | |
static Task< string > | LaunchApp (string packageName, ApplicationOptions options=null) |
Launches another app by app package name. More... | |
static Task< string > | LaunchAppByAppId (string appId, ApplicationOptions options=null) |
Launches another app by app ID. More... | |
static Task< string > | LaunchStore () |
Launches the PICO Store app and go to the current app's details page. More... | |
static Task< ApplicationVersion > | GetVersion () |
Gets the app's current version info and the latest version info. More... | |
static LaunchDetails | GetLaunchDetails () |
Gets the details about an app launch event. More... | |
static SystemInfo | GetSystemInfo () |
Get system info synchronously. More... | |
static void | LogDeeplinkResult (string trackId, LaunchResult result) |
Logs whether a user has been successfully directed to the desired destination via a deep link. More... | |
static void | SetLaunchIntentChangedCallback (Message< string >.Handler callback) |
When the launch intent is changed, you will receive this notification. Then you can call GetLaunchDetails to retrieve the launch details. More... | |
ApplicationService provides functions like launch other application,jump to store, get launch details.
|
inlinestatic |
Launches another app by app package name.
packageName | The package name of the to-be-launched app. |
options | The options for launching the app. Pass null or leave this parameter empty. |
|
inlinestatic |
Launches another app by app ID.
appId | The ID of the to-be-launched app. |
options | The options for launching the app. Pass null or leave this parameter empty. |
|
inlinestatic |
Launches the PICO Store app and go to the current app's details page.
You can direct user to the PICO Store to upgrade the installed app by this method. To judge whether there is a new version in the PICO Store, you can call GetVersion.
|
inlinestatic |
Gets the app's current version info and the latest version info.
You can compare the current version info and the latest version info, and then decide whether to call LaunchStore to direct users to the current app's details page to upgrade the app.
|
inlinestatic |
Gets the details about an app launch event.
LaunchResult
and LaunchType
:LaunchResult
:0
: Unknown1
: Success2
: FailedRoomFull3
: FailedGameAlreadyStarted4
: FailedRoomNotFound5
: FailedUserDeclined6
: FailedOtherReasonLaunchType
:0
: Unknown1
: Normal2
: Invite3
: Coordinated4
: Deeplink
|
inlinestatic |
Get system info synchronously.
|
inlinestatic |
Logs whether a user has been successfully directed to the desired destination via a deep link.
trackId | The tracking ID of the app launch event. |
result | The app launch result:
|
|
inlinestatic |
When the launch intent is changed, you will receive this notification. Then you can call GetLaunchDetails to retrieve the launch details.
callback | The callback function. |