urbanairship-core/src/main/java/com/urbanairship/automation/AutomationEngine.java
public PendingResult<Boolean> cancelGroup(@NonNull final String group) {
        final PendingResult<Boolean> pendingResult = new PendingResult<>();

        backgroundHandler.post(new Runnable() {
            @Override
            public void run() {
                cancelGroupAlarms(Collections.singletonList(group));

                if (dataManager.deleteGroup(group)) {
                    Logger.verbose("AutomationEngine - Cancelled schedule group: " + group);
                    pendingResult.setResult(true);
                } else {
                    Logger.verbose("AutomationEngine - Failed to cancel schedule group: " + group);
                    pendingResult.setResult(false);
                }
            }
        });

        return pendingResult;
    }
/**
     * Cancels a group of schedules.
     *
     * @param group The schedule group.
     * @return A pending result.
     */
Cancels a group of schedules.
@param group The schedule group.
@return A pending result.
Cancels a group of schedules . @param group The schedule group . @return A pending result .
public PendingResult<Boolean> cancelGroup(@NonNull final String group) {
        final PendingResult<Boolean> pendingResult = new PendingResult<>();
        backgroundHandler.post(new Runnable() {
            @Override
            public void run() {
                cancelGroupAlarms(Collections.singletonList(group));
                if (dataManager.deleteGroup(group)) {
                    Logger.verbose("AutomationEngine - Cancelled schedule group: " + group);
                    pendingResult.setResult(true);
                } else {
                    Logger.verbose("AutomationEngine - Failed to cancel schedule group: " + group);
                    pendingResult.setResult(false);
                }
            }
        });
        return pendingResult;
    }
public PendingResult < Boolean > cancelGroup ( @ NonNull final String group ) { final PendingResult < Boolean > pendingResult = new PendingResult < > ( ) ; backgroundHandler . post ( new Runnable ( ) { @ Override public void run ( ) { cancelGroupAlarms ( Collections . singletonList ( group ) ) ; if ( dataManager . deleteGroup ( group ) ) { Logger . verbose ( "AutomationEngine - Cancelled schedule group: " + group ) ; pendingResult . setResult ( true ) ; } else { Logger . verbose ( "AutomationEngine - Failed to cancel schedule group: " + group ) ; pendingResult . setResult ( false ) ; } } } ) ; return pendingResult ; }
Cancels a group of schedules.
Cancels a group of schedules .