Pico Unreal Platform SDK
ApplicationLifecycleInterface.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
21DECLARE_LOG_CATEGORY_EXTERN(ApplicationLifecycleInterface, Log, All);
22
23
24// Notification
25DECLARE_MULTICAST_DELEGATE_OneParam(FApplicationLifecycleStringResult, const FString& /*MessageString*/);
26
28class ONLINESUBSYSTEMPICO_API FApplicationLifecycleInterface
29{
30
31private:
32 FLaunchDetails LaunchDetails;
33 FOnlineSubsystemPico& PicoSubsystem;
34 TArray<FPicoUserInfo> DetailsUserArray;
35public:
38
39 bool ReadLaunchDetails();
40
47 bool GetLaunchDetails(FLaunchDetails& OutLaunchDetails);
48
64 bool LogDeeplinkResult(const FString& TrackingID, ELaunchResult LaunchResult);
65
66 FDelegateHandle OnLaunchIntentChangedNotificationHandle;
67 void OnLaunchIntentChangedNotification(ppfMessageHandle Message, bool bIsError);
68
69public:
71 FApplicationLifecycleStringResult LaunchIntentChangedCallback;
72};
73
74 // end of ApplicationLifecycle // end of Function
Pico Application interface class.
Definition: ApplicationLifecycleInterface.h:29
FApplicationLifecycleStringResult LaunchIntentChangedCallback
Gets notified when the launch intent has been changed.
Definition: ApplicationLifecycleInterface.h:71
OnlineSubsystemPico class inherited from FOnlineSubsystemImpl(Unreal Engine)
Definition: OnlineSubsystemPico.h:44