API/Autodoc/Files/URuStoreCore.h.en.md


Classes

Name
class URuStoreCore

Source code

// Copyright Epic Games, Inc. All Rights Reserved.

#include "URuStoreCore.generated.h"

using namespace RuStoreSDK;

UCLASS(Blueprintable)
class RUSTORECORE_API URuStoreCore : public UObject
{
    GENERATED_BODY()

private:
    static URuStoreCore* _instance;
    static bool _bIsInstanceInitialized;

    bool bIsInitialized = false;
    AndroidJavaObject* _clientWrapper = nullptr;
    AndroidJavaObject* _playerProviderWrapper = nullptr;
    UnrealPlayerImpl* unrealPlayer = nullptr;

public:
    static const FString PluginVersion;

    UFUNCTION(BlueprintCallable, Category = "RuStore Core")
    bool GetIsInitialized();

    UFUNCTION(BlueprintCallable, Category = "RuStore Core")
    static URuStoreCore* Instance();

    UFUNCTION(BlueprintCallable, Category = "RuStore Core")
    static bool IsPlatformSupported();
    static bool IsPlatformSupported(TFunction<void(long requestId, TSharedPtr<FURuStoreError, ESPMode::ThreadSafe>)> onFailure);

    void ConditionalBeginDestroy();

    UFUNCTION(BlueprintCallable, Category = "RuStore Core")
    bool Init();

    UFUNCTION(BlueprintCallable, Category = "RuStore Core")
    void Dispose();

    UFUNCTION(BlueprintCallable, Category = "RuStore Core")
    static void ShowToast(FString message);

    UFUNCTION(BlueprintCallable, Category = "RuStore Core")
    static void LogVerbose(FString tag, FString message);

    UFUNCTION(BlueprintCallable, Category = "RuStore Core")
    static void LogDebug(FString tag, FString message);

    UFUNCTION(BlueprintCallable, Category = "RuStore Core")
    static void LogInfo(FString tag, FString message);

    UFUNCTION(BlueprintCallable, Category = "RuStore Core")
    static void LogWarn(FString tag, FString message);

    UFUNCTION(BlueprintCallable, Category = "RuStore Core")
    static void LogError(FString tag, FString message);

    UFUNCTION(BlueprintCallable, Category = "RuStore Core")
    static bool CompareId(int64 A, int64 B);

    UFUNCTION(BlueprintCallable, Category = "RuStore Core")
    static void CopyToClipboard(FString text);

    UFUNCTION(BlueprintCallable, Category = "RuStore Core")
    static void GetFromClipboard(FString& text);

    UFUNCTION(BlueprintCallable, Category = "RuStore Core")
    static void GetStringResources(FString name, FString& value);

    UFUNCTION(BlueprintCallable, Category = "RuStore Core")
    static void GetIntResources(FString name, int& value);

    UFUNCTION(BlueprintCallable, Category = "RuStore Core")
    static FString GetStringSharedPreferences(FString storageName, FString key, FString defaultValue);

    UFUNCTION(BlueprintCallable, Category = "RuStore Core")
    static int GetIntSharedPreferences(FString storageName, FString key, int defaultValue);

    UFUNCTION(BlueprintCallable, Category = "RuStore Core")
    static void SetStringSharedPreferences(FString storageName, FString key, FString value);

    UFUNCTION(BlueprintCallable, Category = "RuStore Core")
    static void SetIntSharedPreferences(FString storageName, FString key, int value);

    UFUNCTION(BlueprintCallable, Category = "RuStore Core")
    static void RestartAndroidApp();

    UFUNCTION(BlueprintCallable, Category = "RuStore Core")
    bool IsRuStoreInstalled();

    UFUNCTION(BlueprintCallable, Category = "RuStore Core")
    void OpenRuStoreDownloadInstruction();

    UFUNCTION(BlueprintCallable, Category = "RuStore Core")
    void OpenRuStore();

    UFUNCTION(BlueprintCallable, Category = "RuStore Core")
    void OpenRuStoreAuthorization();
};
Назад