DevicePolicyManager.GetPermittedInputMethods(ComponentName) 方法

定义

返回此设备或配置文件所有者设置的允许输入方法的列表。

[Android.Runtime.Register("getPermittedInputMethods", "(Landroid/content/ComponentName;)Ljava/util/List;", "GetGetPermittedInputMethods_Landroid_content_ComponentName_Handler")]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_INPUT_METHODS")]
public virtual System.Collections.Generic.IList<string>? GetPermittedInputMethods (Android.Content.ComponentName? admin);
[<Android.Runtime.Register("getPermittedInputMethods", "(Landroid/content/ComponentName;)Ljava/util/List;", "GetGetPermittedInputMethods_Landroid_content_ComponentName_Handler")>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_INPUT_METHODS")>]
abstract member GetPermittedInputMethods : Android.Content.ComponentName -> System.Collections.Generic.IList<string>
override this.GetPermittedInputMethods : Android.Content.ComponentName -> System.Collections.Generic.IList<string>

参数

admin
ComponentName

DeviceAdminReceiver此请求与此请求相关联。 如果调用方不是设备管理员,则为 Null

返回

输入法包名称的列表。

属性

注解

返回此设备或配置文件所有者设置的允许输入方法的列表。

可以在调用方返回#getParentProfileInstance(ComponentName)的实例上DevicePolicyManager调用此方法,其中调用方必须是组织拥有的托管配置文件的配置文件所有者。 如果在父实例上调用,则返回的允许输入方法列表是在个人配置文件上应用的输入方法。

空列表意味着除了允许系统输入法之外,没有输入方法。 Null 表示允许所有输入法。

适用于 . 的 android.app.admin.DevicePolicyManager.getPermittedInputMethods(android.content.ComponentName)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于