Table of Contents

Class AppStoreInAppUserReviewProvider

Namespace
VpnHood.AppLib.Stores.AppStore
Assembly
VpnHood.AppLib.Stores.AppStore.Core.dll

Provides the App Store's in-app rating dialog, through StoreKit's review controller.

public class AppStoreInAppUserReviewProvider : IAppUserReviewProvider
Inheritance
AppStoreInAppUserReviewProvider
Implements
Inherited Members

Remarks

iOS decides whether the dialog shows: a few times a year at most, and never in TestFlight, while a development build always shows it, for testing. It tells nothing back, so a request completes once it is made, not when the person is done.

Methods

RequestReview(IUiContext, CancellationToken)

Asks the person for a review, as the store shows it; the store may show nothing.

public Task RequestReview(IUiContext uiContext, CancellationToken cancellationToken)

Parameters

uiContext IUiContext

The app's UI context.

cancellationToken CancellationToken

The token to monitor for cancellation requests.

Returns

Task

A task that completes once the store's flow has ended, or, as the App Store's, once the request is handed to the store, which shows its dialog on its own terms.

Remarks

It asks for the dialog on the app's foreground scene.

Exceptions

InvalidOperationException

The store could not show its dialog, as the App Store's where no scene of the app is in front.

NotSupportedException

The store needs a desktop window, which the UI context is not, as the Microsoft Store's.

OperationCanceledException

cancellationToken was canceled.

InvalidOperationException

No scene of the app is in front.