InputMethodManager.SetCurrentInputMethodSubtype(InputMethodSubtype) Method

Definition

Switch to a new input method subtype of the current input method.

[Android.Runtime.Register("setCurrentInputMethodSubtype", "(Landroid/view/inputmethod/InputMethodSubtype;)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.WRITE_SECURE_SETTINGS")]
public bool SetCurrentInputMethodSubtype (Android.Views.InputMethods.InputMethodSubtype? subtype);
[<Android.Runtime.Register("setCurrentInputMethodSubtype", "(Landroid/view/inputmethod/InputMethodSubtype;)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.WRITE_SECURE_SETTINGS")>]
member this.SetCurrentInputMethodSubtype : Android.Views.InputMethods.InputMethodSubtype -> bool

Parameters

subtype
InputMethodSubtype

A new input method subtype to switch.

Returns

true if the current subtype was successfully switched. When the specified subtype is null, this method returns false.

Attributes

Remarks

Switch to a new input method subtype of the current input method.

This member is deprecated. If the calling process is an IME, use InputMethodService#switchInputMethod(String, InputMethodSubtype), which does not require any permission as long as the caller is the current IME. If the calling process is some privileged app that already has Manifest.permission#WRITE_SECURE_SETTINGS permission, just directly update Settings.Secure#SELECTED_INPUT_METHOD_SUBTYPE.

Java documentation for android.view.inputmethod.InputMethodManager.setCurrentInputMethodSubtype(android.view.inputmethod.InputMethodSubtype).

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