urbanairship-core/src/main/java/com/urbanairship/automation/AutomationEngine.java
private void onEventAdded(final JsonSerializable json, final int type, final double value) {
        backgroundHandler.post(new Runnable() {
            @Override
            public void run() {
                Logger.debug("Automation - Updating triggers with type: " + type);
                List<TriggerEntry> triggerEntries = dataManager.getActiveTriggerEntries(type);
                if (triggerEntries.isEmpty()) {
                    return;
                }
                updateTriggers(triggerEntries, json, value);
            }
        });
    }
/**
     * For a given event, retrieves and iterates through any relevant triggers.
     *
     * @param json The relevant event data.
     * @param type The event type.
     * @param value The trigger value to increment by.
     */
For a given event, retrieves and iterates through any relevant triggers.
@param json The relevant event data.
@param type The event type.
@param value The trigger value to increment by.
For a given event retrieves and iterates through any relevant triggers . @param json The relevant event data . @param type The event type . @param value The trigger value to increment by .
private void onEventAdded(final JsonSerializable json, final int type, final double value) {
        backgroundHandler.post(new Runnable() {
            @Override
            public void run() {
                Logger.debug("Automation - Updating triggers with type: " + type);
                List<TriggerEntry> triggerEntries = dataManager.getActiveTriggerEntries(type);
                if (triggerEntries.isEmpty()) {
                    return;
                }
                updateTriggers(triggerEntries, json, value);
            }
        });
    }
private void onEventAdded ( final JsonSerializable json , final int type , final double value ) { backgroundHandler . post ( new Runnable ( ) { @ Override public void run ( ) { Logger . debug ( "Automation - Updating triggers with type: " + type ) ; List < TriggerEntry > triggerEntries = dataManager . getActiveTriggerEntries ( type ) ; if ( triggerEntries . isEmpty ( ) ) { return ; } updateTriggers ( triggerEntries , json , value ) ; } } ) ; }
For a given event, retrieves and iterates through any relevant triggers.
For a given event retrieves and iterates through any relevant triggers .