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


RuStore::Review::RuStoreReviewManager

Class for working with ratings and reviews. Provides an API to launch a UI form that allows users to leave a rating and review of your app in “RuStore”.

Public Functions

Name
bool Init()
Initializes the singleton RuStoreReviewManager.
void RequestReviewFlow(Action< RuStoreError > onFailure, Action onSuccess)
Prepares data for launching the rating and review form. Must be called before every call to LaunchReviewFlow. The prepared data has a lifetime of about five minutes. onFailure Action executed in case of an error. Returns a RuStore.RuStoreError object with error information. onSuccess Action executed upon successful completion of the operation.
void LaunchReviewFlow(Action< RuStoreError > onFailure, Action onSuccess)
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. onFailure Action executed in case of an error. Returns a RuStore.RuStoreError object with error information. onSuccess Action executed upon successful completion of the operation.

Public Properties

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

Public Attributes

Name
string PluginVersion — Plugin version.

function Init

bool Init()

Initializes the singleton RuStoreReviewManager.


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. Must be called before every call to LaunchReviewFlow. The prepared data has a lifetime of about five minutes. onFailure Action executed in case of an error. Returns a RuStore.RuStoreError object with error information. onSuccess Action executed 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 to request a rating and review from the user. Each call to this method must be preceded by a call to RequestReviewFlow. onFailure Action executed in case of an error. Returns a RuStore.RuStoreError object with error information. onSuccess Action executed 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 single instance of RuStoreReviewManager (singleton pattern implementation). If the instance has not yet been created, it creates it.


var instance = RuStoreReviewManager.Instance;

Filename: public_RuStoreReviewManager_Instance.cs

variable PluginVersion

static string PluginVersion = "10.5.0";

Plugin version.