Documentation for the Unreal C++ Plugin
Loading...
Searching...
No Matches
ApexSDKLibrary.h
Go to the documentation of this file.
1// Copyright 2022 PixoVR Corp. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Kismet/BlueprintFunctionLibrary.h"
7#include "Engine/GameInstance.h"
8#include "ApexTypes.h"
9#include "ApexSDKLibrary.generated.h"
10
14UCLASS()
15class APEXSDK_API UApexSDKLibrary : public UBlueprintFunctionLibrary
16{
18
19public:
20
21 UFUNCTION(BlueprintPure, BlueprintCallable, Category = "Apex|API", meta = (WorldContext = "WorldContextObject"))
22 static bool GetCurrentSessionGuid(UObject* WorldContextObject, FGuid& OutCurrentSessionId);
23
24 UFUNCTION(BlueprintPure, BlueprintCallable, Category = "Apex|API", meta = (WorldContext = "WorldContextObject"))
25 static FString GetClientIP(UObject* WorldContextObject);
26
27 UFUNCTION(BlueprintPure, BlueprintCallable, Category = "Apex|API", meta = (WorldContext = "WorldContextObject"))
28 static FString GetDeviceModel(UObject* WorldContextObject);
29
30 UFUNCTION(BlueprintPure, BlueprintCallable, Category = "Apex|API", meta = (WorldContext = "WorldContextObject"))
31 static FString GetDeviceId(UObject* WorldContextObject);
32
33 UFUNCTION(BlueprintPure, BlueprintCallable, Category = "Apex|API", meta = (WorldContext = "WorldContextObject"))
34 static FString GetPlatform(UObject* WorldContextObject);
35
36 UFUNCTION(BlueprintPure, BlueprintCallable, Category = "Apex|API", meta=(WorldContext = "WorldContextObject"))
37 static int GetModuleId(UObject* WorldContextObject);
38
39 UFUNCTION(BlueprintPure, BlueprintCallable, Category = "Apex|API", meta=(WorldContext = "WorldContextObject"))
40 static FString GetModuleVersion(UObject* WorldContextObject);
41
42 UFUNCTION(BlueprintPure, BlueprintCallable, Category = "Apex|API", meta=(WorldContext = "WorldContextObject"))
43 static bool GetCurrentUser(UObject* WorldContextObject, FUserSessionData& OutUser);
44
45 UFUNCTION(BlueprintPure, BlueprintCallable, Category = "Apex|API", meta=(WorldContext = "WorldContextObject"))
46 static bool IsUserLoggedIn(UObject* WorldContextObject);
47
48 UFUNCTION(BlueprintPure, BlueprintCallable, Category = "Apex|API", meta=(WorldContext = "WorldContextObject"))
49 static bool IsSessionInProgress(UObject* WorldContextObject);
50
51public:
52
53 static class UApexAPI* GetApexAPI(UObject* WorldContextObject);
54 static FString GetAuthToken(UObject* WorldContextObject);
55};
UCLASS(BlueprintType, Blueprintable)
Definition ApexAPI.h:76
GENERATED_BODY()
USTRUCT(BlueprintType)
Definition ApexTypes.h:536