Skip to content

Latest commit

 

History

History
27 lines (24 loc) · 1.1 KB

File metadata and controls

27 lines (24 loc) · 1.1 KB

RxKeyboard

RxJava2 bindings for android keyboard's InputMethodManager

Build Status License Bintray

Dependencies

depends on RxJava2 '2.0.7' version:

dependencies {
  "io.reactivex.rxjava2:rxjava:2.0.7"
}

See latest release for build dependency

Usage

show android keyboard async

final RxSoftKeyboard keyboard = new RxAndroidSoftKeyboard(context);
keyboard.show(editTex, ShowFlags.NONE).subscribe(() -> callback());

hide android keyboard async

final RxSoftKeyboard keyboard = new RxAndroidSoftKeyboard(context);
keyboard.hide(view.getWindowToken(), ShowFlags.NONE).subscribe(() -> callback());