Android InputMethodManager

class enamlnative.android.android_utils.InputMethodManager(*args, **kwargs)[source]

Bases: enamlnative.android.android_content.SystemService

async classmethod toggle_keyboard(flag=1)[source]

Toggle the keyboard on and off

Parameters

flag (int) – Flag to send to toggleSoftInput

Returns

result – Resolves when the toggle is complete

Return type

future

async classmethod hide_keyboard()[source]

Hide keyboard if it’s open

Returns

result – Resolves when the hide is complete

Return type

future