語言

InputMethodManager.ShouldOfferSwitchingToNextInputMethod(IBinder) 方法

定義

如果目前的 IME 需要提供使用者切換到下一個輸入法的方法(例如

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

參數

imeToken
IBinder

提供輸入法啟動時給予的識別標記,使其能對自身執行此操作。

傳回

屬性

備註

如果目前的 IME 需要提供使用者切換到下一個輸入方式(例如地球儀鍵)的方法,則會回傳為真。 當 IME 設定 supportsSwitchingToNextInputMethod 且該方法回傳為真時,IME 必須提供相應的呼叫 #switchToNextInputMethod 方式。

請注意,系統會決定最合適的下一個輸入方式與子類型,以提供使用者在 IME 與子類型間切換的一致體驗。

此會員已被棄用。 請改用 InputMethodService#shouldOfferSwitchingToNextInputMethod()。 此方法設計給應透過服務存取 API 的 IME 開發者。 本類別的 API 是為與 IME 互動的應用程式開發者設計的。

Java 文件 android.view.inputmethod.InputMethodManager.shouldOfferSwitchingToNextInputMethod(android.os.IBinder)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於