示例#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);
 }