📜  我如何检查 xamarin 中的权限策略 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:54.855000             🧑  作者: Mango

代码示例1
if (ContextCompat.CheckSelfPermission(this, Manifest.Permission.WriteExternalStorage) == (int)Permission.Granted) 
{
    // We have permission.
} 
else 
{
    // Storage permission is not granted. If necessary display rationale & request.
}