API/Autodoc/Classes/URuStoreReviewManager.en.md
URuStoreReviewManager
Class for working with ratings and reviews. Provides an API for launching a UI form that allows the user to leave a rating and review about your application in “RuStore”.
#include <URuStoreReviewManager.h>
Inherits from UObject, RuStoreSDK::RuStoreListenerContainer
Public Functions
| Name | |
|---|---|
| bool | GetIsInitialized() Check the manager initialization. |
| void | SetAllowNativeErrorHandling(bool value) Error handling in the native SDK. |
| bool | Init() Initializes the URuStoreReviewManager singleton. |
| void | Dispose() Deinitializes the singleton if no further work with the object is planned. |
| void | ConditionalBeginDestroy() |
| long | RequestReviewFlow(TFunction< void(long)> onSuccess, TFunction< void(long, TSharedPtr< FURuStoreError, ESPMode::ThreadSafe >)> onFailure) Prepares data for launching the rating and review form. This method must be called before each call to LaunchReviewFlow. The prepared data has a lifetime of about five minutes. |
| long | LaunchReviewFlow(TFunction< void(long)> onSuccess, TFunction< void(long, TSharedPtr< FURuStoreError, ESPMode::ThreadSafe >)> onFailure) Launches the form to request a rating and review from the user. Each call to this method must be preceded by a call to RequestReviewFlow. |
| void | RequestReviewFlow(int64 & requestId) |
| void | LaunchReviewFlow(int64 & requestId) |
| URuStoreReviewManager * | Instance() Get the instance of URuStoreReviewManager. |
function GetIsInitialized
bool GetIsInitialized()
Check the manager initialization.
Return: Returns true if the singleton is initialized, otherwise false.
function SetAllowNativeErrorHandling
void SetAllowNativeErrorHandling(
bool value
)
Error handling in the native SDK.
Parameters:
- value true — enables error handling, false — disables it.
function Init
bool Init()
Initializes the URuStoreReviewManager singleton.
Return: Returns true if initialization was successful, otherwise false.
function Dispose
void Dispose()
Deinitializes the singleton if no further work with the object is planned.
function ConditionalBeginDestroy
void ConditionalBeginDestroy()
function RequestReviewFlow
long RequestReviewFlow(
TFunction< void(long)> onSuccess,
TFunction< void(long, TSharedPtr< FURuStoreError, ESPMode::ThreadSafe >)> onFailure
)
Prepares data for launching the rating and review form. This method must be called before each call to LaunchReviewFlow. The prepared data has a lifetime of about five minutes.
Parameters:
- onSuccess Action executed when the operation completes successfully. Returns a requestId of type long.
- onFailure Action executed in case of an error. Returns a requestId of type long and an object of type FURuStoreError with error information.
Return: Returns a requestId that is unique within a single application launch.
function LaunchReviewFlow
long LaunchReviewFlow(
TFunction< void(long)> onSuccess,
TFunction< void(long, TSharedPtr< FURuStoreError, ESPMode::ThreadSafe >)> onFailure
)
Launches the form to request a rating and review from the user. Each call to this method must be preceded by a call to RequestReviewFlow.
Parameters:
- onSuccess Action executed when the operation completes successfully. Returns a requestId of type long.
- onFailure Action executed in case of an error. Returns a requestId of type long and an object of type FURuStoreError with error information.
Return: Returns a requestId that is unique within a single application launch.
function RequestReviewFlow
void RequestReviewFlow(
int64 & requestId
)
function LaunchReviewFlow
void LaunchReviewFlow(
int64 & requestId
)
function Instance
static URuStoreReviewManager * Instance()
Get the instance of URuStoreReviewManager.
Return: Returns a pointer to the single instance of URuStoreReviewManager (Singleton pattern implementation). If the instance does not exist yet, it creates it.
Public Attributes
| Name | |
|---|---|
| const FString | PluginVersion — Plugin version. |
| FRequestReviewFlowErrorDelegate | OnRequestReviewFlowError |
| FRequestReviewFlowResponseDelegate | OnRequestReviewFlowResponse |
| FLaunchReviewFlowErrorDelegate | OnLaunchReviewFlowError |
| FLaunchReviewFlowResponseDelegate | OnLaunchReviewFlowResponse |
variable PluginVersion
static const FString PluginVersion = "10.5.0";
Plugin version.
variable OnRequestReviewFlowError
FRequestReviewFlowErrorDelegate OnRequestReviewFlowError;
variable OnRequestReviewFlowResponse
FRequestReviewFlowResponseDelegate OnRequestReviewFlowResponse;
variable OnLaunchReviewFlowError
FLaunchReviewFlowErrorDelegate OnLaunchReviewFlowError;
variable OnLaunchReviewFlowResponse
FLaunchReviewFlowResponseDelegate OnLaunchReviewFlowResponse;
Additional inherited members
Public Functions inherited from RuStoreSDK::RuStoreListenerContainer
| Name | |
|---|---|
| TSharedPtr< RuStoreListener, ESPMode::ThreadSafe > | ListenerBind(RuStoreListener * item) |
| void | ListenerUnbind(long id) |
| void | ListenerUnbind(RuStoreListener * item) |
| void | ListenerUnbind(TSharedPtr< RuStoreListener, ESPMode::ThreadSafe > item) |
| void | ListenerRemoveAll() |
- Страницы
- FRuStoreCoreModule.en
- FRuStoreCoreModule
- FRuStoreReviewModule.en
- FRuStoreReviewModule
- FURuStoreError.en
- FURuStoreError
- FURuStoreFeatureAvailabilityResult.en
- FURuStoreFeatureAvailabilityResult
- RuStoreCore.en
- RuStoreCore
- RuStoreReview.en
- RuStoreReview
- RuStoreSDK.AndroidJavaClass.en
- RuStoreSDK.AndroidJavaClass
- RuStoreSDK.AndroidJavaObject.en
- RuStoreSDK.AndroidJavaObject
- RuStoreSDK.CallbackHandler.en
- RuStoreSDK.CallbackHandler
- RuStoreSDK.ErrorConverter.en
- RuStoreSDK.ErrorConverter
- RuStoreSDK.ErrorListener.en
- RuStoreSDK.ErrorListener
- RuStoreSDK.FeatureAvailabilityListenerImpl.en
- RuStoreSDK.FeatureAvailabilityListenerImpl
- RuStoreSDK.IAndroidClasses.en
- RuStoreSDK.IAndroidClasses
- RuStoreSDK.JavaActivity.en
- RuStoreSDK.JavaActivity
- RuStoreSDK.JavaApplication.en
- RuStoreSDK.JavaApplication
- RuStoreSDK.JavaMethodSignature.en
- RuStoreSDK.JavaMethodSignature
- RuStoreSDK.JavaTypeConverter.en
- RuStoreSDK.JavaTypeConverter
- RuStoreSDK.ResponseListener.en
- RuStoreSDK.ResponseListener
- RuStoreSDK.ReviewResponseListenerImpl.en
- RuStoreSDK.ReviewResponseListenerImpl
- RuStoreSDK.RuStoreListener.en
- RuStoreSDK.RuStoreListener
- RuStoreSDK.RuStoreListenerContainer.en
- RuStoreSDK.RuStoreListenerContainer
- RuStoreSDK.SimpleResponseListener.en
- RuStoreSDK.SimpleResponseListener
- RuStoreSDK.SimpleResponseListenerT.en
- RuStoreSDK.SimpleResponseListenerT
- RuStoreSDK.UnrealPlayerImpl.en
- RuStoreSDK.UnrealPlayerImpl
- ULaunchReviewFlowNode.en
- ULaunchReviewFlowNode
- URequestReviewFlowNode.en
- URequestReviewFlowNode
- URuStoreCore.en
- URuStoreCore
- URuStoreReviewManager.en
- URuStoreReviewManager
- UTextureDownloader.en
- UTextureDownloader
- com.Plugins.RuStoreCore.IRuStoreListener.en
- com.Plugins.RuStoreCore.IRuStoreListener
- com.Plugins.RuStoreCore.RuStoreCoreUtils.en
- com.Plugins.RuStoreCore.RuStoreCoreUtils
- com.Plugins.RuStoreCore.RuStoreImage.en
- com.Plugins.RuStoreCore.RuStoreImage
- com.Plugins.RuStoreCore.UnrealPlayerWrapper.en
- com.Plugins.RuStoreCore.UnrealPlayerWrapper
- FRuStoreCoreModule.en
- FRuStoreCoreModule
- FRuStoreReviewModule.en
- FRuStoreReviewModule
- FURuStoreError.en
- FURuStoreError
- FURuStoreFeatureAvailabilityResult.en
- FURuStoreFeatureAvailabilityResult
- RuStoreCore.en
- RuStoreCore
- RuStoreReview.en
- RuStoreReview
- RuStoreSDK.AndroidJavaClass.en
- RuStoreSDK.AndroidJavaClass
- RuStoreSDK.AndroidJavaObject.en
- RuStoreSDK.AndroidJavaObject
- RuStoreSDK.CallbackHandler.en
- RuStoreSDK.CallbackHandler
- RuStoreSDK.ErrorConverter.en
- RuStoreSDK.ErrorConverter
- RuStoreSDK.ErrorListener.en
- RuStoreSDK.ErrorListener
- RuStoreSDK.FeatureAvailabilityListenerImpl.en
- RuStoreSDK.FeatureAvailabilityListenerImpl
- RuStoreSDK.IAndroidClasses.en
- RuStoreSDK.IAndroidClasses
- RuStoreSDK.JavaActivity.en
- RuStoreSDK.JavaActivity
- RuStoreSDK.JavaApplication.en
- RuStoreSDK.JavaApplication
- RuStoreSDK.JavaMethodSignature.en
- RuStoreSDK.JavaMethodSignature
- RuStoreSDK.JavaTypeConverter.en
- RuStoreSDK.JavaTypeConverter
- RuStoreSDK.ResponseListener.en
- RuStoreSDK.ResponseListener
- RuStoreSDK.ReviewResponseListenerImpl.en
- RuStoreSDK.ReviewResponseListenerImpl
- RuStoreSDK.RuStoreListener.en
- RuStoreSDK.RuStoreListener
- RuStoreSDK.RuStoreListenerContainer.en
- RuStoreSDK.RuStoreListenerContainer
- RuStoreSDK.SimpleResponseListener.en
- RuStoreSDK.SimpleResponseListener
- RuStoreSDK.SimpleResponseListenerT.en
- RuStoreSDK.SimpleResponseListenerT
- RuStoreSDK.UnrealPlayerImpl.en
- RuStoreSDK.UnrealPlayerImpl
- ULaunchReviewFlowNode.en
- ULaunchReviewFlowNode
- URequestReviewFlowNode.en
- URequestReviewFlowNode
- URuStoreCore.en
- URuStoreCore
- URuStoreReviewManager.en
- URuStoreReviewManager
- UTextureDownloader.en
- UTextureDownloader
- com.Plugins.RuStoreCore.IRuStoreListener.en
- com.Plugins.RuStoreCore.IRuStoreListener
- com.Plugins.RuStoreCore.RuStoreCoreUtils.en
- com.Plugins.RuStoreCore.RuStoreCoreUtils
- com.Plugins.RuStoreCore.RuStoreImage.en
- com.Plugins.RuStoreCore.RuStoreImage
- com.Plugins.RuStoreCore.UnrealPlayerWrapper.en
- com.Plugins.RuStoreCore.UnrealPlayerWrapper