Table of Contents

Interface IAppUserReviewProvider

Namespace
VpnHood.AppLib.Abstractions
Assembly
VpnHood.AppLib.Abstractions.dll

Represents the store's own way to ask the person for a review of the app.

public interface IAppUserReviewProvider

Methods

RequestReview(IUiContext, CancellationToken)

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

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.

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.