var permissionStatus = await CrossPermissions.Current.CheckPermissionStatusAsync(Plugin.Permissions.Abstractions.Permission.Camera);
if (permissionStatus != Plugin.Permissions.Abstractions.PermissionStatus.Granted)
{
await CrossPermissions.Current.RequestPermissionsAsync(Plugin.Permissions.Abstractions.Permission.Camera);
}
IPermission.CheckPermissionStatusAsync(权限)已过时:CheckPermissionStatusAsync已过时,请改用CheckPermissionStatusAsync。
我应该如何使用这个方法?
1条答案
按热度按时间nnvyjq4y1#
旧的
新建(文档)