Permissions Class

Definition

Access to checking and requesting application permissions.

C#
public static class Permissions
Inheritance
System.Object
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

Product Versions
Xamarin Essentials Android Latest
Xamarin Essentials iOS Latest
Xamarin Essentials Shared Latest
Xamarin Essentials TVOS Latest
Xamarin Essentials UWP Latest
Xamarin Essentials WatchOS Latest