Udostępnij za pośrednictwem


Permissions.RequestAsync<TPermission> Method

Definition

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.

Applies to