PICO Unreal Platform SDK
FPicoApplicationInterface Class Reference

Pico Application interface class. More...

#include <PicoApplicationInterface.h>

Public Member Functions

bool LaunchOtherApp (const FString &PackageName, const FString &Message, const FOnLaunchOtherAppComplete &Delegate=FOnLaunchOtherAppComplete())
 Launches a different app in a user's library. More...
 
bool GetVersion (const FOnGetVersionComplete &Delegate=FOnGetVersionComplete())
 Gets the current app's latest version in the PICO Store. More...
 
bool LaunchOtherAppByPresence (const FString &AppID, const FString &PackageName, const FString &Message, const FString &ApiName, const FString &LobbySessionId, const FString &MatchSessionId, const FString &TrackId, const FString &Extra, const FOnLaunchOtherAppByPresenceComplete &Delegate=FOnLaunchOtherAppByPresenceComplete())
 Launches a different app in a user's library. More...
 
bool LaunchOtherAppByAppId (const FString &AppId, const FString &Message, const FOnLaunchOtherAppByAppIdComplete &Delegate=FOnLaunchOtherAppByAppIdComplete())
 Launches a different app in a user's library by app ID. More...
 
bool LaunchStore (const FOnLaunchStoreComplete &Delegate=FOnLaunchStoreComplete())
 Launches the PICO Store and jump to the details page of the current app. More...
 

Detailed Description

Pico Application interface class.

Member Function Documentation

◆ GetVersion()

bool GetVersion ( const FOnGetVersionComplete &  Delegate = FOnGetVersionComplete())

Gets the current app's latest version in the PICO Store.

Parameters
DelegateWill be executed when the request has been complete.
Delegate will contain the requested object class (int64 /*CurrentCode*‍/, const FString& /*CurrentName*‍/, int64 /*LatestCode*‍/, const FString& /*LatestName*‍/, bool /*IsSuccessed*‍/, const FString& /*Error Message*‍/).
Returns
Bool:
  • true: success
  • false: failure

◆ LaunchOtherApp()

bool LaunchOtherApp ( const FString &  PackageName,
const FString &  Message,
const FOnLaunchOtherAppComplete &  Delegate = FOnLaunchOtherAppComplete() 
)

Launches a different app in a user's library.

Note
If the user does not have that app installed, the user will be directed to that app's page on the PICO Store.
Parameters
PackageNameThe package name of the app to launch.
MessageA message to be passed to the launched app.
DelegateWill be executed when the request has been complete.
Delegate will contain the requested object class (const FString& /*String Message*‍/, bool /*IsSuccessed*‍/, const FString& /*Error Message*‍/).
Returns
Bool:
  • true: success
  • false: failure

◆ LaunchOtherAppByAppId()

bool LaunchOtherAppByAppId ( const FString &  AppId,
const FString &  Message,
const FOnLaunchOtherAppByAppIdComplete &  Delegate = FOnLaunchOtherAppByAppIdComplete() 
)

Launches a different app in a user's library by app ID.

Note
If the user does not have that app installed, the user will be directed to that app's page on the PICO Store.
Parameters
AppIdThe ID of the app to launch.
MessageA message to be passed to the launched app.
DelegateWill be executed when the request has been complete.
Delegate will contain the requested object class (const FString& /*String Message*‍/, bool /*IsSuccessed*‍/, const FString& /*Error Message*‍/).
Returns
Bool:
  • true: success
  • false: failure

◆ LaunchOtherAppByPresence()

bool LaunchOtherAppByPresence ( const FString &  AppID,
const FString &  PackageName,
const FString &  Message,
const FString &  ApiName,
const FString &  LobbySessionId,
const FString &  MatchSessionId,
const FString &  TrackId,
const FString &  Extra,
const FOnLaunchOtherAppByPresenceComplete &  Delegate = FOnLaunchOtherAppByPresenceComplete() 
)

Launches a different app in a user's library.

Note
If the user does not have that app installed, the user will be directed to that app's page on the PICO Store.
Parameters
AppIDThe ID of the app to launch.
PackageNameThe package name of the app to launch.
MessageA message to be passed to the launched app.
ApiNameThe API name of the destination in the app.
LobbySessionIdThe lobby session ID of the user's presence, which identifies a user group or team. Users with the same lobby session ID can play together or form a team in a game.
MatchSessionIdThe match session ID of the user's presence, which identifies all users within the same destination, such as maps and levels. Users with different lobby session IDs will have the same match session ID when playing the same match.
TrackIdThe tracking ID of the app launch event.
ExtraExtra data defined by the developer.
DelegateWill be executed when the request has been completed.
Delegate will contain the requested object class (const FString& /*String Message*‍/, bool /*IsSuccessed*‍/, const FString& /*Error Message*‍/).
Returns
Bool:
  • true: success
  • false: failure

◆ LaunchStore()

bool LaunchStore ( const FOnLaunchStoreComplete &  Delegate = FOnLaunchStoreComplete())

Launches the PICO Store and jump to the details page of the current app.

Parameters
DelegateWill be executed when the request has been complete.
Delegate will contain the requested object class (const FString& /*String Message*‍/, bool /*IsSuccessed*‍/, const FString& /*Error Message*‍/).
Returns
Bool:
  • true: success
  • false: failure