Exemplo n.º 1
0
 public static void sendDelayed(Object event, long delayMillis) {
   if (bus == null) {
     from(Ioc.getIoc().getApplication());
     if (bus == null) {
       throw new NullPointerException("TinyBus Need to initialize");
     }
   }
   bus.postDelayed(event, delayMillis);
 }
Exemplo n.º 2
0
 public static void send(Object event) {
   if (bus == null) {
     from(Ioc.getIoc().getApplication());
     if (bus == null) {
       throw new NullPointerException("TinyBus Need to initialize");
     }
   }
   bus.post(event);
 }