InputMethodManager.SetCurrentInputMethodSubtype(InputMethodSubtype) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
切換到現有輸入法的新子類型。
[Android.Runtime.Register("setCurrentInputMethodSubtype", "(Landroid/view/inputmethod/InputMethodSubtype;)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.WRITE_SECURE_SETTINGS")]
public bool SetCurrentInputMethodSubtype(Android.Views.InputMethods.InputMethodSubtype? subtype);
[<Android.Runtime.Register("setCurrentInputMethodSubtype", "(Landroid/view/inputmethod/InputMethodSubtype;)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.WRITE_SECURE_SETTINGS")>]
member this.SetCurrentInputMethodSubtype : Android.Views.InputMethods.InputMethodSubtype -> bool
參數
- subtype
- InputMethodSubtype
一個新的輸入方式子類型來切換。
傳回
若當前子類型成功切換,則為真。 當指定的子型為空時,此方法回傳 false。
- 屬性
備註
切換到現有輸入法的新子類型。
此會員已被棄用。 如果呼叫程序是 IME,則使用 InputMethodService#switchInputMethod(String, InputMethodSubtype),只要呼叫者是目前的 IME,就不需要任何權限。 如果呼叫的程序是某個已經有 Manifest.permission#WRITE_SECURE_SETTINGS 權限的 app,直接更新 Settings.Secure#SELECTED_INPUT_METHOD_SUBTYPE。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。