Share via


DevicePolicyManager.GetPermittedInputMethods(ComponentName) Method

Definition

Returns the list of permitted input methods set by this device or profile owner.

[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>

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with. Null if the caller is not a device admin

Returns

List of input method package names.

Attributes

Remarks

Returns the list of permitted input methods set by this device or profile owner.

This method can be called on the DevicePolicyManager instance, returned by #getParentProfileInstance(ComponentName), where the caller must be a profile owner of an organization-owned managed profile. If called on the parent instance, then the returned list of permitted input methods are those which are applied on the personal profile.

An empty list means no input methods except system input methods are allowed. Null means all input methods are allowed.

Java documentation for android.app.admin.DevicePolicyManager.getPermittedInputMethods(android.content.ComponentName).

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