Exemplo n.º 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;
         }
       });
 }
Exemplo n.º 2
0
 @Override
 public void onStop() {
   super.onStop();
   Event.unSubscribeFromEvents(activity(), this);
 }