KMManager.getKeyboardHeightMin()
Summary
The getKeyboardHeightMin() method returns the minimum allowed height of the keyboard frame for this context.
Syntax
KMManager.getKeyboardHeightMin(Context context)
or
KMManager.getKeyboardHeightMin(Context context, int orientation)
Parameters
context- The context.
orientation(Optional)- Accepts a screen orientation value. This is most useful if you want to get the size of the keyboard in the other (non-current) orientation. If
orientationis not defined, minimum keyboard height is returned for the current device orientation.
Returns
Returns the minimum allowed height of the keyboard frame in density-independent pixels (dp).
Description
Use this method to get the minimum allowed height of the keyboard frame.
Examples
Example: Using getKeyboardHeightMin()
The following script illustrate the use of getKeyboardHeightMin():
int minKeyboardHeight = KMManager.getKeyboardHeightMin(this);
or
import android.content.res.Configuration;
...
// Get the minimum allowed Keyman keyboard height for landscape mode.
int minKeyboardHeightLandscape = KMManager.getKeyboardHeightMin(this, Configuration.ORIENTATION_LANDSCAPE);


