Condividi tramite


InputMethodManager.SetCurrentInputMethodSubtype(InputMethodSubtype) Metodo

Definizione

Passare a un nuovo sottotipo del metodo di input corrente.

[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

Parametri

subtype
InputMethodSubtype

Nuovo sottotipo del metodo di input da cambiare.

Restituisce

true se il sottotipo corrente è stato modificato correttamente. Quando il sottotipo specificato è Null, questo metodo restituisce false.

Attributi

Commenti

Passare a un nuovo sottotipo del metodo di input corrente.

Questo membro è deprecato. Se il processo chiamante è un IME, usare InputMethodService#switchInputMethod(String, InputMethodSubtype), che non richiede alcuna autorizzazione purché il chiamante sia l'IME corrente. Se il processo chiamante è un'app con privilegi che dispone Manifest.permission#WRITE_SECURE_SETTINGS già dell'autorizzazione, è sufficiente aggiornare Settings.Secure#SELECTED_INPUT_METHOD_SUBTYPEdirettamente .

Documentazione java per android.view.inputmethod.InputMethodManager.setCurrentInputMethodSubtype(android.view.inputmethod.InputMethodSubtype).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal progetto Open Source Android e usato in base ai termini descritti nella licenza Creative Commons 2.5 Attribuzione.

Si applica a