AccessibilityService.SoftKeyboardController.SwitchToInputMethod 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.
Switches the current IME for the user for whom the service is enabled.
[Android.Runtime.Register("switchToInputMethod", "(Ljava/lang/String;)Z", "", ApiSince=30)]
public bool SwitchToInputMethod (string imeId);
[<Android.Runtime.Register("switchToInputMethod", "(Ljava/lang/String;)Z", "", ApiSince=30)>]
member this.SwitchToInputMethod : string -> bool
Parameters
- imeId
- String
The ID of the input method to make current. This IME must be installed and enabled.
Returns
true
if the current input method was successfully switched to the input
method by imeId
,
false
if the input method specified is not installed, not enabled, or
otherwise not available to become the current IME
- Attributes
Remarks
Switches the current IME for the user for whom the service is enabled. The change will persist until the current IME is explicitly changed again, and may persist beyond the life cycle of the requesting service.
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.