Documentation for the Unreal C++ Plugin
Loading...
Searching...
No Matches
PixoLauncherSubsystem.h
Go to the documentation of this file.
1// Copyright 2023 PixoVR Corp. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Subsystems/EngineSubsystem.h"
7
8#if PLATFORM_ANDROID
9#include "Android/AndroidJNI.h"
10#include "Android/AndroidApplication.h"
11#include "Android/AndroidPlatformMisc.h"
12
13#include <android_native_app_glue.h>
14#endif
15
16#include "PixoLauncherSubsystem.generated.h"
17
27UCLASS(BlueprintType, Blueprintable, DisplayName = "PixoVR Launcher")
29{
30 GENERATED_BODY()
31
32public:
35 void Initialize(FSubsystemCollectionBase& Collection);
36
37 UFUNCTION(BlueprintCallable, Category = "PixoVR|Launcher")
38 bool IsApplicationInstalled(const FString& ApplicationName);
39
40 UFUNCTION(BlueprintCallable, Category = "PixoVR|Launcher")
41 bool LaunchApplication(const FString& ApplicationName, const TArray<FString>& ExtraKey, const TArray<FString>& ExtraValue);
42
43 UFUNCTION(BlueprintCallable, Category = "PixoVR|Launcher")
44 void OpenURL(const FString& URL);
45
46 UFUNCTION(BlueprintCallable, Category = "PixoVR|Launcher")
47 FString GetIntentData();
48
49 UFUNCTION(BlueprintCallable, Category = "PixoVR|Launcher")
50 FString GetApplicationExtra(const FString& ExtraKey);
51
52 UFUNCTION(BlueprintCallable, Category = "PixoVR|Launcher")
53 FString GetDeviceSerialNumber();
54
55 UFUNCTION(BlueprintCallable, Category = "PixoVR|Launcher")
56 FString GetDeviceMacAddress();
57
58#if PLATFORM_ANDROID
59 jclass PlatformClassID;
60 jmethodID LaunchApplicationFunction;
61 jmethodID OpenURLFunction;
62 jmethodID IsApplicationInstalledFunction;
63 jmethodID GetIntentDataFunction;
64 jmethodID GetApplicationExtraFunction;
65 jmethodID GetDeviceSerialNumberFunction;
66 jmethodID GetDeviceMacAddressFunction;
67#endif
68};
UCLASS(BlueprintType, Blueprintable, DisplayName = "PixoVR Launcher")
FString GetDeviceSerialNumber()
UFUNCTION(BlueprintCallable, Category = "PixoVR|Launcher")
bool LaunchApplication(const FString &ApplicationName, const TArray< FString > &ExtraKey, const TArray< FString > &ExtraValue)
UFUNCTION(BlueprintCallable, Category = "PixoVR|Launcher")
FString GetApplicationExtra(const FString &ExtraKey)
UFUNCTION(BlueprintCallable, Category = "PixoVR|Launcher")
FString GetDeviceMacAddress()
UFUNCTION(BlueprintCallable, Category = "PixoVR|Launcher")
FString GetIntentData()
UFUNCTION(BlueprintCallable, Category = "PixoVR|Launcher")
bool IsApplicationInstalled(const FString &ApplicationName)
UFUNCTION(BlueprintCallable, Category = "PixoVR|Launcher")
void OpenURL(const FString &URL)
UFUNCTION(BlueprintCallable, Category = "PixoVR|Launcher")
void Initialize(FSubsystemCollectionBase &Collection)