urbanairship-core/src/main/java/com/urbanairship/automation/AutomationEngine.java
public PendingResult<Void> cancel(@NonNull final Collection<String> ids) {
        final PendingResult<Void> pendingResult = new PendingResult<>();

        backgroundHandler.post(new Runnable() {
            @Override
            public void run() {
                dataManager.deleteSchedules(ids);
                cancelScheduleAlarms(ids);

                Logger.verbose("AutomationEngine - Cancelled schedules: " + ids);
                pendingResult.setResult(null);

            }
        });

        return pendingResult;
    }
/**
     * Cancels schedules.
     *
     * @param ids A collection of schedule Ids to cancel.
     * @return A pending result.
     */
Cancels schedules.
@param ids A collection of schedule Ids to cancel.
@return A pending result.
Cancels schedules . @param ids A collection of schedule Ids to cancel . @return A pending result .
public PendingResult<Void> cancel(@NonNull final Collection<String> ids) {
        final PendingResult<Void> pendingResult = new PendingResult<>();
        backgroundHandler.post(new Runnable() {
            @Override
            public void run() {
                dataManager.deleteSchedules(ids);
                cancelScheduleAlarms(ids);
                Logger.verbose("AutomationEngine - Cancelled schedules: " + ids);
                pendingResult.setResult(null);
            }
        });
        return pendingResult;
    }
public PendingResult < Void > cancel ( @ NonNull final Collection < String > ids ) { final PendingResult < Void > pendingResult = new PendingResult < > ( ) ; backgroundHandler . post ( new Runnable ( ) { @ Override public void run ( ) { dataManager . deleteSchedules ( ids ) ; cancelScheduleAlarms ( ids ) ; Logger . verbose ( "AutomationEngine - Cancelled schedules: " + ids ) ; pendingResult . setResult ( null ) ; } } ) ; return pendingResult ; }
Cancels schedules.
Cancels schedules .