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
12#include <android_native_app_glue.h>
13#endif
14
15#include "PixoLauncherSubsystem.generated.h"
16
26UCLASS(BlueprintType, Blueprintable, DisplayName = "PixoVR Launcher")
28{
29 GENERATED_BODY()
30
31public:
34 void Initialize(FSubsystemCollectionBase& Collection);
35
36 UFUNCTION(BlueprintCallable, Category = "PixoVR|Launcher")
37 bool IsApplicationInstalled(const FString& ApplicationName);
38
39 UFUNCTION(BlueprintCallable, Category = "PixoVR|Launcher")
40 bool LaunchApplication(const FString& ApplicationName, const FString& ExtraKey, const FString& ExtraValue);
41
42 UFUNCTION(BlueprintCallable, Category = "PixoVR|Launcher")
43 FString GetApplicationExtra(const FString& ExtraKey);
44
45 UFUNCTION(BlueprintCallable, Category = "PixoVR|Launcher")
46 FString GetDeviceSerialNumber();
47
48 UFUNCTION(BlueprintCallable, Category = "PixoVR|Launcher")
49 FString GetDeviceMacAddress();
50
51#if PLATFORM_ANDROID
52 jclass PlatformClassID;
53 jmethodID LaunchApplicationFunction;
54 jmethodID IsApplicationInstalledFunction;
55 jmethodID GetApplicationExtraFunction;
56 jmethodID GetDeviceSerialNumberFunction;
57 jmethodID GetDeviceMacAddressFunction;
58#endif
59};
UCLASS(BlueprintType, Blueprintable, DisplayName = "PixoVR Launcher")
FString GetDeviceSerialNumber()
UFUNCTION(BlueprintCallable, Category = "PixoVR|Launcher")
FString GetApplicationExtra(const FString &ExtraKey)
UFUNCTION(BlueprintCallable, Category = "PixoVR|Launcher")
FString GetDeviceMacAddress()
UFUNCTION(BlueprintCallable, Category = "PixoVR|Launcher")
bool IsApplicationInstalled(const FString &ApplicationName)
UFUNCTION(BlueprintCallable, Category = "PixoVR|Launcher")
bool LaunchApplication(const FString &ApplicationName, const FString &ExtraKey, const FString &ExtraValue)
UFUNCTION(BlueprintCallable, Category = "PixoVR|Launcher")
void Initialize(FSubsystemCollectionBase &Collection)