예제 #1
0
 @Override
 public void onStart() {
   super.onStart();
   Event.subscribeOnEvent(
       activity(),
       this,
       Events.CLOUD_CONNECTION_STATUS,
       new Closure<CloudConnectionManager.ConnectionStatus, Void>() {
         @Override
         public Void execute(CloudConnectionManager.ConnectionStatus arg) {
           updateCloudStatus(arg);
           return null;
         }
       });
 }
예제 #2
0
 @Override
 public void onStop() {
   super.onStop();
   Event.unSubscribeFromEvents(activity(), this);
 }