Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmontemagno authored Mar 9, 2024
1 parent f9dd32b commit 6d7b3a2
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Store Review Plugin for Xamarin
## Store Review Plugin for .NET MAUI, Windows, & Xamarin

**Platform Support**

Expand Down Expand Up @@ -57,9 +57,20 @@ Read for Android: [In-app reviews for your Android apps](https://devblogs.micros
/// <summary>
/// Requests the review.
/// </summary>
void RequestReview();
Task<ReviewStatus> RequestReview(bool testMode)
```

If you are on .NET 6 Windows you will need to set the Window handle before calling the method:

```csharp
#if WINDOWS
var windowObject = (MauiWinUIWindow)App.Current.Windows[0].Handler.PlatformView;
StoreReviewImplementation.Window = windowObject;
#endif
```

Test mode is only used on Android.

### Android setup

Ensure that you follow the [Xamarin.Essentials setup steps](https://docs.microsoft.com/xamarin/essentials/get-started?WT.mc_id=friends-0000-jamont). And follow the steps below if you linker behavior is not set to `Don't Link`.
Expand Down

0 comments on commit 6d7b3a2

Please sign in to comment.