urbanairship-core/src/main/java/com/urbanairship/automation/AutomationEngine.java
private Observable<JsonSerializable> createEventObservable(@Trigger.TriggerType int type) {
        switch (type) {
            case Trigger.ACTIVE_SESSION:
                return TriggerObservables.newSession(activityMonitor);
            case Trigger.CUSTOM_EVENT_COUNT:
            case Trigger.CUSTOM_EVENT_VALUE:
            case Trigger.LIFE_CYCLE_APP_INIT:
            case Trigger.LIFE_CYCLE_BACKGROUND:
            case Trigger.LIFE_CYCLE_FOREGROUND:
            case Trigger.REGION_ENTER:
            case Trigger.REGION_EXIT:
            case Trigger.SCREEN_VIEW:
            case Trigger.VERSION:
            default:
                return Observable.empty();
        }
    }
/**
     * Creates an event observables for compound triggers.
     *
     * @param type The trigger type
     * @return The corresponding observable, or an empty observable in case no match was found.
     */
Creates an event observables for compound triggers.
@param type The trigger type
@return The corresponding observable, or an empty observable in case no match was found.
Creates an event observables for compound triggers . @param type The trigger type @return The corresponding observable or an empty observable in case no match was found .
private Observable<JsonSerializable> createEventObservable(@Trigger.TriggerType int type) {
        switch (type) {
            case Trigger.ACTIVE_SESSION:
                return TriggerObservables.newSession(activityMonitor);
            case Trigger.CUSTOM_EVENT_COUNT:
            case Trigger.CUSTOM_EVENT_VALUE:
            case Trigger.LIFE_CYCLE_APP_INIT:
            case Trigger.LIFE_CYCLE_BACKGROUND:
            case Trigger.LIFE_CYCLE_FOREGROUND:
            case Trigger.REGION_ENTER:
            case Trigger.REGION_EXIT:
            case Trigger.SCREEN_VIEW:
            case Trigger.VERSION:
            default:
                return Observable.empty();
        }
    }
private Observable < JsonSerializable > createEventObservable ( @ Trigger . TriggerType int type ) { switch ( type ) { case Trigger . ACTIVE_SESSION : return TriggerObservables . newSession ( activityMonitor ) ; case Trigger . CUSTOM_EVENT_COUNT : case Trigger . CUSTOM_EVENT_VALUE : case Trigger . LIFE_CYCLE_APP_INIT : case Trigger . LIFE_CYCLE_BACKGROUND : case Trigger . LIFE_CYCLE_FOREGROUND : case Trigger . REGION_ENTER : case Trigger . REGION_EXIT : case Trigger . SCREEN_VIEW : case Trigger . VERSION : default : return Observable . empty ( ) ; } }
Creates an event observables for compound triggers.
Creates an event observables for compound triggers .