urbanairship-core/src/main/java/com/urbanairship/analytics/Analytics.java
public void addEvent(@NonNull final Event event) {
        //noinspection ConstantConditions
        if (event == null || !event.isValid()) {
            Logger.error("Analytics - Invalid event: " + event);
            return;
        }

        if (!isEnabled()) {
            Logger.debug("Analytics disabled - ignoring event: " + event.getType());
            return;
        }

        Logger.verbose("Analytics - Adding event: " + event.getType());

        executor.execute(new Runnable() {
            @Override
            public void run() {
                eventManager.addEvent(event, sessionId);
            }
        });

        applyListeners(event);
    }
/**
     * Adds an analytics event.
     *
     * @param event The event to be triggered.
     */
Adds an analytics event.
@param event The event to be triggered.
Adds an analytics event . @param event The event to be triggered .
public void addEvent(@NonNull final Event event) {
        if (event == null || !event.isValid()) {
            Logger.error("Analytics - Invalid event: " + event);
            return;
        }
        if (!isEnabled()) {
            Logger.debug("Analytics disabled - ignoring event: " + event.getType());
            return;
        }
        Logger.verbose("Analytics - Adding event: " + event.getType());
        executor.execute(new Runnable() {
            @Override
            public void run() {
                eventManager.addEvent(event, sessionId);
            }
        });
        applyListeners(event);
    }
public void addEvent ( @ NonNull final Event event ) { if ( event == null || ! event . isValid ( ) ) { Logger . error ( "Analytics - Invalid event: " + event ) ; return ; } if ( ! isEnabled ( ) ) { Logger . debug ( "Analytics disabled - ignoring event: " + event . getType ( ) ) ; return ; } Logger . verbose ( "Analytics - Adding event: " + event . getType ( ) ) ; executor . execute ( new Runnable ( ) { @ Override public void run ( ) { eventManager . addEvent ( event , sessionId ) ; } } ) ; applyListeners ( event ) ; }
Adds an analytics event.
Adds an analytics event .
//noinspection ConstantConditions