Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RxBinding EditorAction #385

Open
santwanav opened this issue Jun 2, 2017 · 2 comments
Open

RxBinding EditorAction #385

santwanav opened this issue Jun 2, 2017 · 2 comments

Comments

@santwanav
Copy link

santwanav commented Jun 2, 2017

What is the right way to implement onEditorActionListener in RxBinding2 ? I am facing some difficulty understanding from the source code about the type of argument given to the editorActionEvents

@Harsh-Jagad
Copy link

I would also like to know how to do this...

@akaita
Copy link

akaita commented Nov 2, 2018

This is my take on this:


RxTextView.editorActions(password)
    .filter { it in arrayOf(EditorInfo.IME_ACTION_DONE, it == EditorInfo.IME_NULL) })

And then continue the stream with debounce, filter, etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants