InputMethodService.OnEvaluateInputViewShown Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Override this to control when the soft input area should be shown to the user.
[Android.Runtime.Register("onEvaluateInputViewShown", "()Z", "GetOnEvaluateInputViewShownHandler")]
public virtual bool OnEvaluateInputViewShown ();
[<Android.Runtime.Register("onEvaluateInputViewShown", "()Z", "GetOnEvaluateInputViewShownHandler")>]
abstract member OnEvaluateInputViewShown : unit -> bool
override this.OnEvaluateInputViewShown : unit -> bool
Returns
- Attributes
Remarks
Override this to control when the soft input area should be shown to the user. The default implementation returns false
when there is no hard keyboard or the keyboard is hidden unless the user shows an intention to use software keyboard. If you change what this returns, you will need to call #updateInputViewShown()
yourself whenever the returned value may have changed to have it re-evaluated and applied.
When you override this method, it is recommended to call super.onEvaluateInputViewShown()
and return true
when true
is returned.
Java documentation for android.inputmethodservice.InputMethodService.onEvaluateInputViewShown()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.