DevicePolicyManager.GetPermittedInputMethods(ComponentName) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.