API/Autodoc/Classes/RuStore.Review.RuStoreReviewManager.en.md


RuStore::Review::RuStoreReviewManager

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 for your app in “RuStore”.

Public Functions

Name
bool Init()
Initializes the RuStoreReviewManager singleton.
void RequestReviewFlow(Action< RuStoreError > onFailure, Action onSuccess)
Prepares data for launching the rating and review form. This method must be called before each LaunchReviewFlow call. The lifetime of the prepared data is about five minutes. onFailure — action performed in case of an error. Returns a RuStore.RuStoreError object with error information. onSuccess — action performed upon successful completion of the operation.
void LaunchReviewFlow(Action< RuStoreError > onFailure, Action onSuccess)
Launches the form for requesting a rating and review from the user. Each method call must be preceded by a RequestReviewFlow call. onFailure — action performed in case of an error. Returns a RuStore.RuStoreError object with error information. onSuccess — action performed upon successful completion of the operation.

Public Properties

Name
bool IsInitialized — Returns true if the singleton is initialized, otherwise — false.
RuStoreReviewManager Instance — Returns the only instance of RuStoreReviewManager (Singleton pattern implementation). If the instance has not been created yet, it creates it.

Public Attributes

Name
string PluginVersion — Plugin version.

function Init

bool Init()

Initializes the RuStoreReviewManager singleton.


bool isInitialized = RuStoreReviewManager.Instance.Init();

Filename: public_bool_Init.cs

function RequestReviewFlow

void RequestReviewFlow(
    Action< RuStoreError > onFailure,
    Action onSuccess
)

Prepares data for launching the rating and review form. This method must be called before each LaunchReviewFlow call. The lifetime of the prepared data is about five minutes. onFailure — action performed in case of an error. Returns a RuStore.RuStoreError object with error information. onSuccess — action performed upon successful completion of the operation.


RuStoreReviewManager.Instance.RequestReviewFlow(
        onFailure: (error) => {
            // Process error
        },
        onSuccess: () => {
            // Process success
        }
    );

Filename: public_void_RequestReviewFlow.cs

function LaunchReviewFlow

void LaunchReviewFlow(
    Action< RuStoreError > onFailure,
    Action onSuccess
)

Launches the form for requesting a rating and review from the user. Each method call must be preceded by a RequestReviewFlow call. onFailure — action performed in case of an error. Returns a RuStore.RuStoreError object with error information. onSuccess — action performed upon successful completion of the operation.


RuStoreReviewManager.Instance.LaunchReviewFlow(
        onFailure: (error) => {
            // Process error
        },
        onSuccess: () => {
            // Process success
        }
    );

Filename: public_void_LaunchReviewFlow.cs

property IsInitialized

bool IsInitialized;

Returns true if the singleton is initialized, otherwise — false.

property Instance

static RuStoreReviewManager Instance;

Returns the only instance of RuStoreReviewManager (Singleton pattern implementation). If the instance has not been created yet, it creates it.


var instance = RuStoreReviewManager.Instance;

Filename: public_RuStoreReviewManager_Instance.cs

variable PluginVersion

static string PluginVersion = "10.5.1";

Plugin version.