Unreal access to the PixoVR Platform
Loading...
Searching...
No Matches
PPlatformSubsystem.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/GameInstanceSubsystem.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 "PPlatformSubsystem.generated.h"
16
26UCLASS(BlueprintType, Blueprintable)
28{
30
31public:
32
34
35 UFUNCTION(BlueprintCallable, Category = "Pixo Platform")
36 bool IsApplicationInstalled(const FString& ApplicationName);
37
38 UFUNCTION(BlueprintCallable, Category = "Pixo Platform")
39 bool LaunchApplication(const FString& ApplicationName, const FString& ExtraKey, const FString& ExtraValue);
40
41#if PLATFORM_ANDROID
42 jclass PlatformClassID;
43 jmethodID LaunchApplicationFunction;
44 jmethodID IsApplicationInstalledFunction;
45#endif
46};
UCLASS(BlueprintType, Blueprintable)
bool IsApplicationInstalled(const FString &ApplicationName)
UFUNCTION(BlueprintCallable, Category = "Pixo Platform")
bool LaunchApplication(const FString &ApplicationName, const FString &ExtraKey, const FString &ExtraValue)
UFUNCTION(BlueprintCallable, Category = "Pixo Platform")