Share via


MockPackageManager.QueryPermissionsByGroup(String, PackageInfoFlags) Method

Definition

Query for all of the permissions associated with a particular group.

[Android.Runtime.Register("queryPermissionsByGroup", "(Ljava/lang/String;I)Ljava/util/List;", "GetQueryPermissionsByGroup_Ljava_lang_String_IHandler")]
public override System.Collections.Generic.IList<Android.Content.PM.PermissionInfo>? QueryPermissionsByGroup (string? group, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("queryPermissionsByGroup", "(Ljava/lang/String;I)Ljava/util/List;", "GetQueryPermissionsByGroup_Ljava_lang_String_IHandler")>]
override this.QueryPermissionsByGroup : string * Android.Content.PM.PackageInfoFlags -> System.Collections.Generic.IList<Android.Content.PM.PermissionInfo>

Parameters

group
String

The fully qualified name (i.e. com.google.permission.LOGIN) of the permission group you are interested in. Use null to find all of the permissions not associated with a group.

flags
PackageInfoFlags

Additional option flags. Use MetaData to retrieve any meta-data associated with the permissions.

Returns

Attributes

Exceptions

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