Permissions.RequestAsync<TPermission> Method
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.
Request a specific permission from the user.
public static System.Threading.Tasks.Task<Xamarin.Essentials.PermissionStatus> RequestAsync<TPermission> () where TPermission : Xamarin.Essentials.Permissions.BasePermissionnew();
Type Parameters
- TPermission
The permission to request.
Returns
System.Threading.Tasks.Task<PermissionStatus>
The status of the permission that was requested.
Remarks
The request will be prompted to the user if it hasn't been granted. iOS only allows the permission to be requested once, any additional requests will return immediatelly.