Ejemplo n.º 1
0
 void receive(Object value) {
   receivedCount++;
   for (ReceiverBinding receiverBinding : receiverBindings.values()) {
     receiverBinding.receive(null, value);
     receiverNotifiedCount++;
   }
   for (BusContext busContext : busContexts.values()) {
     busContext.receive(value);
   }
 }
Ejemplo n.º 2
0
 void doDetach(FragmentHolder fragment) {
   BusContext detached = busContexts.remove(fragment);
   if (detached != null) {
     for (Subscriber subscriber : detached.receiverBindings.keySet()) {
       unSubscribe(subscriber);
     }
     detached.clear();
     detachCount++;
   }
 }
Ejemplo n.º 3
0
 void receive(Channel channel, Object value) {
   Log.d(TAG, "receive(" + value);
   receivedCount++;
   for (ReceiverBinding receiverBinding : receiverBindings.values()) {
     receiverBinding.receive(channel, value);
     receiverNotifiedCount++;
   }
   for (BusContext busContext : busContexts.values()) {
     busContext.receive(channel, value);
   }
 }