PICO Unreal Platform SDK
ApplicationLifecycleInterface.h
1/*******************************************************************************
2Copyright © 2015-2022 PICO Technology Co., Ltd.All rights reserved.
3
4NOTICE:All information contained herein is, and remains the property of
5PICO Technology Co., Ltd. The intellectual and technical concepts
6contained herein are proprietary to PICO Technology Co., Ltd. and may be
7covered by patents, patents in process, and are protected by trade secret or
8copyright law. Dissemination of this information or reproduction of this
9material is strictly forbidden unless prior written permission is obtained from
10PICO Technology Co., Ltd.
11*******************************************************************************/
12// 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.
13// Unreal® Engine, Copyright 1998 – 2022, Epic Games, Inc.All rights reserved.
14
15#pragma once
16
17#include "CoreMinimal.h"
18#include "OnlineSubsystemPico.h"
19#include "OnlineSubsystemPicoPackage.h"
20#include "OnlineSubsystemPicoNames.h"
21
31DECLARE_LOG_CATEGORY_EXTERN(ApplicationLifecycleInterface, Log, All);
32
33
34// Notification
35DECLARE_MULTICAST_DELEGATE_OneParam(FApplicationLifecycleStringResult, const FString& /*MessageString*/);
36
38class ONLINESUBSYSTEMPICO_API FApplicationLifecycleInterface
39{
40
41private:
42 FLaunchDetails LaunchDetails;
43 FOnlineSubsystemPico& PicoSubsystem;
44 TArray<FPicoUserInfo> DetailsUserArray;
45public:
46 FApplicationLifecycleInterface(FOnlineSubsystemPico& InSubsystem);
48
49 bool ReadLaunchDetails();
50
57 bool GetLaunchDetails(FLaunchDetails& OutLaunchDetails);
58
74 bool LogDeeplinkResult(const FString& TrackingID, ELaunchResult LaunchResult);
75
76 FDelegateHandle OnLaunchIntentChangedNotificationHandle;
77 void OnLaunchIntentChangedNotification(ppfMessageHandle Message, bool bIsError);
78
79public:
81 FApplicationLifecycleStringResult LaunchIntentChangedCallback;
82};
83
84 // end of ApplicationLifecycle // end of Function
Pico Application interface class.
Definition: ApplicationLifecycleInterface.h:39
FApplicationLifecycleStringResult LaunchIntentChangedCallback
Gets notified when the launch intent has been changed.
Definition: ApplicationLifecycleInterface.h:81
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:122
App launch details when succeeded.
Definition: OnlineSubsystemPicoNames.h:137