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. The method must be called before each call to LaunchReviewFlow. 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 when the operation completes successfully.
void LaunchReviewFlow(Action< RuStoreError > onFailure, Action onSuccess)
Launches the form for requesting a rating and review from the user. Each call to this method must be preceded by a call to RequestReviewFlow. onFailure — action performed in case of an error. Returns a RuStore.RuStoreError object with error information. onSuccess — action performed when the operation completes successfully.

Public Properties

Name
bool IsInitialized — Returns true if the singleton is initialized, otherwise false.
RuStoreReviewManager Instance — Returns the single instance of RuStoreReviewManager (a Singleton pattern implementation). If the instance has not yet been created, 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. The method must be called before each call to LaunchReviewFlow. 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 when the operation completes successfully.


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 call to this method must be preceded by a call to RequestReviewFlow. onFailure — action performed in case of an error. Returns a RuStore.RuStoreError object with error information. onSuccess — action performed when the operation completes successfully.


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 (a Singleton pattern implementation). If the instance has not yet been created, creates it.


var instance = RuStoreReviewManager.Instance;

Filename: public_RuStoreReviewManager_Instance.cs

variable PluginVersion

static string PluginVersion = "10.5.2";

Plugin version.