Class GooglePlayInAppUserReviewProvider
- Namespace
- VpnHood.AppLib.Stores.GooglePlay
- Assembly
- VpnHood.AppLib.Stores.GooglePlay.Core.dll
Provides Google Play's in-app review flow.
public class GooglePlayInAppUserReviewProvider : IAppUserReviewProvider
- Inheritance
-
GooglePlayInAppUserReviewProvider
- Implements
- Inherited Members
Remarks
Play shows it on TVs with Google TV as well as on phones, tablets and ChromeOS.
Constructors
GooglePlayInAppUserReviewProvider(bool)
Provides Google Play's in-app review flow.
public GooglePlayInAppUserReviewProvider(bool testMode = false)
Parameters
Remarks
Play shows it on TVs with Google TV as well as on phones, tablets and ChromeOS.
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
uiContextIUiContextThe app's UI context.
cancellationTokenCancellationTokenThe 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 Play for its review flow and completes once the flow has ended; Play decides whether it shows.
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
cancellationTokenwas canceled.