Partager via


PackageManager.GetGroupOfPlatformPermission Method

Definition

Get the platform-defined permission group of a particular permission, if the permission is a platform-defined permission.

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

Parameters

permissionName
String

the permission whose group is desired

executor
IExecutor

the Executor on which to invoke the callback

callback
IConsumer

the callback which will receive the name of the permission group this permission belongs to, or null if it has no group, is not a platform-defined permission, or there was an exception

Attributes

Remarks

Get the platform-defined permission group of a particular permission, if the permission is a platform-defined permission.

Java documentation for android.content.pm.PackageManager.getGroupOfPlatformPermission(java.lang.String, java.util.concurrent.Executor, java.util.function.Consumer<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