PICO Unity Platform SDK
ApplicationService Class Reference

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 LaunchDetails GetLaunchDetails ()
 Gets the details about an app launch event. 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...
 

Member Function Documentation

◆ LaunchApp()

static Task< string > LaunchApp ( string  packageName,
ApplicationOptions  options = null 
)
static

Launches another app by app package name.

Note
If the user does not have that app installed, the user will be directed to the app's download page on the PICO Store.
Parameters
packageNameThe package name of the to-be-launched app.
optionsThe options for launching the app. Pass null or leave this parameter empty.
Returns
If something goes wrong, a description message will be returned.

◆ LaunchAppByAppId()

static Task< string > LaunchAppByAppId ( string  appId,
ApplicationOptions  options = null 
)
static

Launches another app by app ID.

Note
If the user does not have that app installed, the user will be directed to the app's download page on the PICO Store.
Parameters
appIdThe ID of the to-be-launched app.
optionsThe options for launching the app. Pass null or leave this parameter empty.
Returns
If something goes wrong, a description message will be returned.

◆ GetLaunchDetails()

static LaunchDetails GetLaunchDetails ( )
static

Gets the details about an app launch event.

Returns
App launch details, including LaunchResult and LaunchType:
  • LaunchResult:
    • 0: Unknown
    • 1: Success
    • 2: FailedRoomFull
    • 3: FailedGameAlreadyStarted
    • 4: FailedRoomNotFound
    • 5: FailedUserDeclined
    • 6: FailedOtherReason
  • LaunchType:
    • 0: Unknown
    • 1: Normal
    • 2: Invite
    • 3: Coordinated
    • 4: Deeplink

◆ LogDeeplinkResult()

static void LogDeeplinkResult ( string  trackId,
LaunchResult  result 
)
static

Logs whether a user has been successfully directed to the desired destination via a deep link.

Parameters
trackIdThe tracking ID of the app launch event.
resultThe app launch result:
  • 0: Unknown
  • 1: Success
  • 2: FailedRoomFull
  • 3: FailedGameAlreadyStarted
  • 4: FailedRoomNotFound
  • 5: FailedUserDeclined
  • 6: FailedOtherReason