Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Permissions Class
Definition
- Namespace:
- Microsoft.Maui.ApplicationModel
- Assembly:
- Microsoft.Maui.Essentials.dll
- Source:
- Permissions.shared.cs
- Source:
- Permissions.shared.cs
- Source:
- Permissions.shared.cs
- Source:
- Permissions.shared.cs
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The Permissions API provides the ability to check and request runtime permissions.
public ref class Permissions abstract sealed
public static class Permissions
type Permissions = class
Public Class Permissions
- Inheritance
-
Permissions
Methods
| Name | Description |
|---|---|
| CheckStatusAsync<TPermission>() |
Retrieves the current status of the permission. |
| RequestAsync<TPermission>() |
Requests the permission from the user for this application. |
| ShouldShowRationale<TPermission>() |
Determines if an educational UI should be displayed explaining to the user how the permission will be used in the application. |
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
Was this page helpful?
