@Override
    public synchronized void dispatch(@NonNull Event event) {
        String type = event.type;
        List<EventHandlerWrapper> eventHandlers = subscribers.get(type);
        if (eventHandlers != null) {
            EventHandlerWrapper handler = null;
            for (int i = 0, size = eventHandlers.size(); i < size; i++) {
                handler = eventHandlers.get(i);
                if (handler.eventHandlerReceiver != null) {
                    handler.handleEvent(event);
                } else {
                    if (!TextUtils.isEmpty(handler.producer) && handler.producer.equals(event.sourceId)
                            || TextUtils.isEmpty(handler.producer)) {
                        handler.handleEvent(event);
                    }
                }
            }
        }
    }
@ Override public synchronized void dispatch ( @ NonNull Event event ) { String type = event . type ; List < EventHandlerWrapper > eventHandlers = subscribers . get ( type ) ; if ( eventHandlers != null ) { EventHandlerWrapper handler = null ; for ( int i = 0 , size = eventHandlers . size ( ) ; i < size ; i ++ ) { handler = eventHandlers . get ( i ) ; if ( handler . eventHandlerReceiver != null ) { handler . handleEvent ( event ) ; } else { if ( ! TextUtils . isEmpty ( handler . producer ) && handler . producer . equals ( event . sourceId ) || TextUtils . isEmpty ( handler . producer ) ) { handler . handleEvent ( event ) ; } } } } }
Dispatch event to a subscriber, you should not call this method directly.

@param event TangramOp1 object