다음을 통해 공유


PackageManager.GetPlatformPermissionsForGroup Method

Definition

Get the platform-defined permissions which belong to a particular permission group.

[Android.Runtime.Register("getPlatformPermissionsForGroup", "(Ljava/lang/String;Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetGetPlatformPermissionsForGroup_Ljava_lang_String_Ljava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=31)]
public virtual void GetPlatformPermissionsForGroup (string permissionGroupName, Java.Util.Concurrent.IExecutor executor, Java.Util.Functions.IConsumer callback);
[<Android.Runtime.Register("getPlatformPermissionsForGroup", "(Ljava/lang/String;Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetGetPlatformPermissionsForGroup_Ljava_lang_String_Ljava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=31)>]
abstract member GetPlatformPermissionsForGroup : string * Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit
override this.GetPlatformPermissionsForGroup : string * Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit

Parameters

permissionGroupName
String

the permission group whose permissions are desired

executor
IExecutor

the Executor on which to invoke the callback

callback
IConsumer

the callback which will receive a list of the platform-defined permissions in the group, or empty if the group is not a valid platform-defined permission group, or there was an exception

Attributes

Remarks

Get the platform-defined permissions which belong to a particular permission group.

Java documentation for android.content.pm.PackageManager.getPlatformPermissionsForGroup(java.lang.String, java.util.concurrent.Executor, java.util.function.Consumer<java.util.List<java.lang.String>>).

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