Partager via


IInputMethodSession.ToggleSoftInput(ShowFlags, HideSoftInputFlags) Méthode

Définition

Basculez la fenêtre d’entrée réversible.

[Android.Runtime.Register("toggleSoftInput", "(II)V", "GetToggleSoftInput_IIHandler:Android.Views.InputMethods.IInputMethodSessionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void ToggleSoftInput(Android.Views.InputMethods.ShowFlags showFlags, Android.Views.InputMethods.HideSoftInputFlags hideFlags);
[<Android.Runtime.Register("toggleSoftInput", "(II)V", "GetToggleSoftInput_IIHandler:Android.Views.InputMethods.IInputMethodSessionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member ToggleSoftInput : Android.Views.InputMethods.ShowFlags * Android.Views.InputMethods.HideSoftInputFlags -> unit

Paramètres

showFlags
ShowFlags

Fournit des indicateurs de fonctionnement supplémentaires. Peut être 0 ou avoir le InputMethodManager#SHOW_IMPLICITbit InputMethodManager#SHOW_FORCED défini.

hideFlags
HideSoftInputFlags

Fournit des indicateurs de fonctionnement supplémentaires. Peut être 0 ou avoir le InputMethodManager#HIDE_IMPLICIT_ONLYbit InputMethodManager#HIDE_NOT_ALWAYS défini.

Attributs

Remarques

Basculez la fenêtre d’entrée réversible. Les applications peuvent basculer l’état de la fenêtre d’entrée réversible.

Ce membre est déconseillé. Le démarrage du android.os.Build.VERSION_CODES#S système n’appelle plus cette méthode, mais elle affiche ou masque explicitement l’IME. Un InputMethodService souhaitant basculer sa propre visibilité doit plutôt appeler InputMethodService#requestShowSelf ou InputMethodService#requestHideSelf

Documentation Java pour android.view.inputmethod.InputMethodSession.toggleSoftInput(int, int).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par le projet Android Open Source et utilisés en fonction des termes décrits dans la licence d’attribution Creative Commons 2.5.

S’applique à