Compartir a través de


MockPackageManager.GetPackagesHoldingPermissions Method

Definition

Return a List of all installed packages that are currently holding any of the given permissions.

[Android.Runtime.Register("getPackagesHoldingPermissions", "([Ljava/lang/String;I)Ljava/util/List;", "GetGetPackagesHoldingPermissions_arrayLjava_lang_String_IHandler")]
public override System.Collections.Generic.IList<Android.Content.PM.PackageInfo>? GetPackagesHoldingPermissions (string[]? permissions, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("getPackagesHoldingPermissions", "([Ljava/lang/String;I)Ljava/util/List;", "GetGetPackagesHoldingPermissions_arrayLjava_lang_String_IHandler")>]
override this.GetPackagesHoldingPermissions : string[] * Android.Content.PM.PackageInfoFlags -> System.Collections.Generic.IList<Android.Content.PM.PackageInfo>

Parameters

permissions
String[]
flags
PackageInfoFlags

Additional option flags. Use any combination of Activities, Gids, Configurations, Instrumentation, Permissions, Providers, Receivers, Services, Signatures, UninstalledPackages to modify the data returned.

Returns

Attributes

Remarks

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