From ee53078699feaf810daf0b92939a4fe1a0afcaf5 Mon Sep 17 00:00:00 2001 From: Dominik Titl <78549750+morning4coffe-dev@users.noreply.github.com> Date: Mon, 28 Oct 2024 07:44:49 +0100 Subject: [PATCH] docs: Add in Store Context page --- .../features/windows-ui-storecontext.md | 24 +++++++++++++++++++ doc/articles/toc.yml | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 doc/articles/features/windows-ui-storecontext.md diff --git a/doc/articles/features/windows-ui-storecontext.md b/doc/articles/features/windows-ui-storecontext.md new file mode 100644 index 000000000000..ce2349205de9 --- /dev/null +++ b/doc/articles/features/windows-ui-storecontext.md @@ -0,0 +1,24 @@ +--- +uid: Uno.Features.StoreContext +--- + +# Store Context + +> [!TIP] +> This article provides Uno-specific information for the `Windows.Services.Store.StoreContext` namespace. For a comprehensive overview of this feature and detailed usage instructions, refer to the official documentation for [Windows.Services.Store.StoreContext Namespace](https://learn.microsoft.com/uwp/api/Windows.Services.Store.StoreContext). + +## In-App Review + +The in-app review feature is currently supported only on Android through Google Play. + +### Google Play Integration + +For Google Play support, make sure to add the `Uno.WinUI.GooglePlay` package to your project. This package is available on [nuget.org](https://www.nuget.org/packages/Uno.WinUI.GooglePlay). + +### Usage + +Once you added the above package to your project, you can prompt users to rate and review your appby using the following code snippet: + +```csharp +await Windows.Services.Store.StoreContext.GetDefault().RequestRateAndReviewAppAsync(); +``` diff --git a/doc/articles/toc.yml b/doc/articles/toc.yml index 18dbdc519a61..08b9973b8e88 100644 --- a/doc/articles/toc.yml +++ b/doc/articles/toc.yml @@ -627,6 +627,8 @@ href: features/SpeechRecognition.md - name: Step Counter href: features/step-counter.md + - name: Store Context + href: features/windows-ui-storecontext.md - name: Title Bar Customization href: features/windows-ui-viewmanagement.md - name: URI Launcher