次の方法で共有


AccessibilityService.SoftKeyboardController.SwitchToInputMethod Method

Definition

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.

Java documentation for android.accessibilityservice.AccessibilityService.SoftKeyboardController.switchToInputMethod(java.lang.String).

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