-
-
Save AjiSetya/b9f218454a4a01eccbebf78253af3c58 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Return true jika email user sudah terpakai | |
| Observable<Boolean> emailStream = RxTextView.textChanges(etEmail) | |
| .map(new Func1<CharSequence, String>() { | |
| @Override | |
| public String call(CharSequence charSequence) { | |
| return charSequence.toString(); | |
| } | |
| }) | |
| .filter(new Func1<String, Boolean>() { | |
| @Override | |
| public Boolean call(String input) { | |
| return input.length() > 3; | |
| } | |
| }) | |
| .debounce(100,TimeUnit.MILLISECONDS); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment