Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Add in Store Context page #18604

Merged
merged 4 commits into from
Nov 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions doc/articles/features/windows-ui-storecontext.md
Original file line number Diff line number Diff line change
@@ -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).
morning4coffe-dev marked this conversation as resolved.
Show resolved Hide resolved

## In-App Review

The in-app review feature is currently supported only on Android through Google Play.
morning4coffe-dev marked this conversation as resolved.
Show resolved Hide resolved

### 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).
MartinZikmund marked this conversation as resolved.
Show resolved Hide resolved

### 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();
```
2 changes: 2 additions & 0 deletions doc/articles/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading