Compartir a través de


PackageManager.AddPermissionAsync(PermissionInfo) Method

Definition

Like #addPermission(PermissionInfo) but asynchronously persists the package manager state after returning from the call, allowing it to return quicker and batch a series of adds at the expense of no guarantee the added permission will be retained if the device is rebooted before it is written.

[Android.Runtime.Register("addPermissionAsync", "(Landroid/content/pm/PermissionInfo;)Z", "GetAddPermissionAsync_Landroid_content_pm_PermissionInfo_Handler")]
public abstract bool AddPermissionAsync (Android.Content.PM.PermissionInfo info);
[<Android.Runtime.Register("addPermissionAsync", "(Landroid/content/pm/PermissionInfo;)Z", "GetAddPermissionAsync_Landroid_content_pm_PermissionInfo_Handler")>]
abstract member AddPermissionAsync : Android.Content.PM.PermissionInfo -> bool

Parameters

Returns

Attributes

Remarks

Like #addPermission(PermissionInfo) but asynchronously persists the package manager state after returning from the call, allowing it to return quicker and batch a series of adds at the expense of no guarantee the added permission will be retained if the device is rebooted before it is written.

Java documentation for android.content.pm.PackageManager.addPermissionAsync(android.content.pm.PermissionInfo).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to