Android.Test.Mock.MockPackageManager.AddPermissionAsync Method
Like Android.Content.PM.PackageManager.AddPermission(Android.Content.PM.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.

Syntax

[Android.Runtime.Register("addPermissionAsync", "(Landroid/content/pm/PermissionInfo;)Z", "GetAddPermissionAsync_Landroid_content_pm_PermissionInfo_Handler")]
public override bool AddPermissionAsync (Android.Content.PM.PermissionInfo info)

Parameters

info
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Like Android.Content.PM.PackageManager.AddPermission(Android.Content.PM.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 Documentation]

Requirements

Namespace: Android.Test.Mock
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8