Last active
September 23, 2016 15:57
-
-
Save fobidlim/3f6ad83378ab1cc3e8af4e706a87b153 to your computer and use it in GitHub Desktop.
Receive RxEvent
This file contains 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
public class ReceiveActivity extends Activity { | |
private static final String TAG = "ReceiveActivity"; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
RxEvent.getInstance() | |
.getObservable() | |
.subscribe( | |
object -> Log.d(TAG, "onCreate: onNext()"), | |
error -> Log.d(TAG, "onCreate: onError()"), | |
() -> Log.d(TAG, "onCreate: onCompleted()") | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment