InputMethodManager.SwitchToLastInputMethod(IBinder) Method

Definition

Force switch to the last used input method and subtype.

[Android.Runtime.Register("switchToLastInputMethod", "(Landroid/os/IBinder;)Z", "")]
public bool SwitchToLastInputMethod (Android.OS.IBinder? imeToken);
[<Android.Runtime.Register("switchToLastInputMethod", "(Landroid/os/IBinder;)Z", "")>]
member this.SwitchToLastInputMethod : Android.OS.IBinder -> bool

Parameters

imeToken
IBinder

Supplies the identifying token given to an input method when it was started, which allows it to perform this operation on itself.

Returns

true if the current input method and subtype was successfully switched to the last used input method and subtype.

Attributes

Remarks

Force switch to the last used input method and subtype. If the last input method didn't have any subtypes, the framework will simply switch to the last input method with no subtype specified.

This member is deprecated. Use InputMethodService#switchToPreviousInputMethod() instead. This method was intended for IME developers who should be accessing APIs through the service. APIs in this class are intended for app developers interacting with the IME.

Java documentation for android.view.inputmethod.InputMethodManager.switchToLastInputMethod(android.os.IBinder).

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