Share via


InputMethodService.InputMethodWindowRecommendedHeight Property

Definition

Aimed to return the previous input method's Insets#contentTopInsets, but its actual semantics has never been well defined.

public virtual int InputMethodWindowRecommendedHeight { [Android.Runtime.Register("getInputMethodWindowRecommendedHeight", "()I", "GetGetInputMethodWindowRecommendedHeightHandler")] get; }
[<get: Android.Runtime.Register("getInputMethodWindowRecommendedHeight", "()I", "GetGetInputMethodWindowRecommendedHeightHandler")>]
member this.InputMethodWindowRecommendedHeight : int

Property Value

on Android android.os.Build.VERSION_CODES#Q and later devices this method always returns 0

Attributes

Remarks

Aimed to return the previous input method's Insets#contentTopInsets, but its actual semantics has never been well defined.

Note that the previous document clearly mentioned that this method could return 0 at any time for whatever reason. Now this method is just always returning 0.

This member is deprecated. the actual behavior of this method has never been well defined. You cannot use this method in a reliable and predictable way

Java documentation for android.inputmethodservice.InputMethodService.getInputMethodWindowRecommendedHeight().

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.

Applies to