Share via


PackageManager.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 abstract System.Collections.Generic.IList<Android.Content.PM.PermissionInfo> QueryPermissionsByGroup (string? permissionGroup, Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("queryPermissionsByGroup", "(Ljava/lang/String;I)Ljava/util/List;", "GetQueryPermissionsByGroup_Ljava_lang_String_IHandler")>]
abstract member QueryPermissionsByGroup : string * Android.Content.PM.PackageInfoFlags -> System.Collections.Generic.IList<Android.Content.PM.PermissionInfo>

Parameters

permissionGroup
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 to modify the data returned.

Returns

Returns a list of PermissionInfo containing information about all of the permissions in the given group.

Attributes

Exceptions

Remarks

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

Java documentation for android.content.pm.PackageManager.queryPermissionsByGroup(java.lang.String, int).

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