Permissions Class
Definition
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.
Access to checking and requesting application permissions.
public static class Permissions
- Inheritance
-
Permissions
Properties
LocationTimeout |
Gets or sets the location timeout for iOS when switching between when in use and always. |
Methods
CheckStatusAsync<TPermission>() |
Checks the status of a specific permission. |
IsCapabilityDeclared(String) |
Checks if a specific capability name is declared. |
IsDeclaredInManifest(String) |
Checks if a permission is declared in the Android manifest file. |
IsKeyDeclaredInInfoPlist(String) |
Check if a usage key is specified in the info.plist file. |
RequestAsync<TPermission>() |
Request a specific permission from the user. |
ShouldShowRationale<TPermission>() |
Gets whether you should show UI with rationale for requesting a permission. |
Applies to
Xamarin.Essentials
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla