PICO Unreal Platform SDK
ApplicationLifecycleInterface.h
1// Copyright® 2015-2023 PICO Technology Co., Ltd. All rights reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "OnlineSubsystemPico.h"
7#include "OnlineSubsystemPicoPackage.h"
8#include "OnlineSubsystemPicoNames.h"
9
19DECLARE_LOG_CATEGORY_EXTERN(ApplicationLifecycleInterface, Log, All);
20
21
22// Notification
23DECLARE_MULTICAST_DELEGATE_OneParam(FApplicationLifecycleStringResult, const FString& /*MessageString*/);
24
26class ONLINESUBSYSTEMPICO_API FApplicationLifecycleInterface
27{
28
29private:
30 FLaunchDetails LaunchDetails;
31 FOnlineSubsystemPico& PicoSubsystem;
32 TArray<FPicoUserInfo> DetailsUserArray;
33public:
34 FApplicationLifecycleInterface(FOnlineSubsystemPico& InSubsystem);
36
37 bool ReadLaunchDetails();
38
45 bool GetLaunchDetails(FLaunchDetails& OutLaunchDetails);
46
62 bool LogDeeplinkResult(const FString& TrackingID, ELaunchResult LaunchResult);
63
64 FDelegateHandle OnLaunchIntentChangedNotificationHandle;
65 void OnLaunchIntentChangedNotification(ppfMessageHandle Message, bool bIsError);
66
67public:
69 FApplicationLifecycleStringResult LaunchIntentChangedCallback;
70};
71
72 // end of ApplicationLifecycle // end of Function
Pico Application interface class.
Definition: ApplicationLifecycleInterface.h:27
FApplicationLifecycleStringResult LaunchIntentChangedCallback
Gets notified when the launch intent has been changed.
Definition: ApplicationLifecycleInterface.h:69
bool GetLaunchDetails(FLaunchDetails &OutLaunchDetails)
Gets information about how the app was launched.
bool LogDeeplinkResult(const FString &TrackingID, ELaunchResult LaunchResult)
Logs whether the user has been successfully directed to the desired destination via a deep link.
ELaunchResult
App launch result.
Definition: OnlineSubsystemPicoNames.h:110
App launch details when succeeded.
Definition: OnlineSubsystemPicoNames.h:125