InputMethodService.ShouldOfferSwitchingToNextInputMethod 方法

定义

如果当前 IME 需要为用户提供切换到下一个输入法(e) 的方法,则返回 true。

[Android.Runtime.Register("shouldOfferSwitchingToNextInputMethod", "()Z", "", ApiSince=28)]
public bool ShouldOfferSwitchingToNextInputMethod();
[<Android.Runtime.Register("shouldOfferSwitchingToNextInputMethod", "()Z", "", ApiSince=28)>]
member this.ShouldOfferSwitchingToNextInputMethod : unit -> bool

返回

属性

注解

如果当前 IME 需要为用户提供切换到下一个输入法(例如地球键)的方法,则返回 true。 当 IME 集支持SwitchingToNextInputMethod 并且此方法返回 true 时,IME 必须提供相应的调用 #switchToNextInputMethod 方法。

请注意,系统确定最合适的下一个输入方法和子类型,以便提供在 IME 和子类型之间进行切换时一致的用户体验。

Java文档android.inputmethodservice.InputMethodService.shouldOfferSwitchingToNextInputMethod()

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于