Pico Unreal Platform SDK
PicoApplicationInterface.h
1// Copyright 2022 Pico Technology Co., Ltd.All rights reserved.
2// This plugin incorporates portions of the Unreal® Engine. Unreal® is a trademark or registered trademark of Epic Games, Inc.In the United States of America and elsewhere.
3// Unreal® Engine, Copyright 1998 – 2022, Epic Games, Inc.All rights reserved.
4
5#pragma once
6
7#include "CoreMinimal.h"
8#include "OnlineSubsystemPico.h"
9#include "OnlineSubsystemPicoPackage.h"
10#include "OnlineSubsystemPicoNames.h"
11
13
24DECLARE_LOG_CATEGORY_EXTERN(ApplicationInterface, Log, All);
25
26// Request
27DECLARE_DELEGATE_ThreeParams(FOnLaunchOtherAppComplete, const FString& /*String Message*/, bool /*IsSuccessed*/, const FString& /*Error Message*/);
28DECLARE_DELEGATE_ThreeParams(FOnLaunchOtherAppByPresenceComplete, const FString& /*String Message*/, bool /*IsSuccessed*/, const FString& /*Error Message*/);
29DECLARE_DELEGATE_ThreeParams(FOnGetVersion, const FString& /*String Message*/, bool /*IsSuccessed*/, const FString& /*Error Message*/);
30
31// <summary>Pico Application interface class.</summary>
32class ONLINESUBSYSTEMPICO_API FPicoApplicationInterface
33{
34private:
35
36 FOnlineSubsystemPico& PicoSubsystem;
37
38public:
39 FPicoApplicationInterface(FOnlineSubsystemPico& InSubsystem);
40 ~FPicoApplicationInterface();
41
55 bool LaunchOtherApp(const FString &AppID, const FString &Message, const FOnLaunchOtherAppComplete& Delegate = FOnLaunchOtherAppComplete());
56 void OnQueryLaunchOtherAppComplete(ppfMessageHandle Message, bool bIsError, const FOnLaunchOtherAppComplete& Delegate);
57
58 bool GetVersion(const FOnGetVersion& Delegate = FOnGetVersion());
59 void OnQueryGetVersionComplete(ppfMessageHandle Message, bool bIsError, const FOnGetVersion& Delegate);
60
80 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());
81 void OnQueryLaunchOtherAppByPresenceComplete(ppfMessageHandle Message, bool bIsError, const FOnLaunchOtherAppByPresenceComplete& Delegate);
82
83}; // end of ApplicationLifecycle // end of Function
OnlineSubsystemPico class inherited from FOnlineSubsystemImpl(Unreal Engine)
Definition: OnlineSubsystemPico.h:44