src/android/LocalNotification.java
public static void cancelAll() {
        SharedPreferences settings = getSharedPreferences();
        NotificationManager nc     = getNotificationManager();
        Map<String, ?> alarms      = settings.getAll();
        Set<String> alarmIds       = alarms.keySet();

        for (String alarmId : alarmIds) {
            cancel(alarmId);
        }

        nc.cancelAll();
    }
/**
     * Cancel all notifications that were created by this plugin.
     *
     * Android can only unregister a specific alarm. There is no such thing
     * as cancelAll. Therefore we rely on the Shared Preferences which holds
     * all our alarms to loop through these alarms and unregister them one
     * by one.
     */
Cancel all notifications that were created by this plugin.
Android can only unregister a specific alarm. There is no such thing
as cancelAll. Therefore we rely on the Shared Preferences which holds
all our alarms to loop through these alarms and unregister them one
by one.
Cancel all notifications that were created by this plugin . Android can only unregister a specific alarm . There is no such thing as cancelAll . Therefore we rely on the Shared Preferences which holds all our alarms to loop through these alarms and unregister them one by one .
public static void cancelAll() {
        SharedPreferences settings = getSharedPreferences();
        NotificationManager nc     = getNotificationManager();
        Map<String, ?> alarms      = settings.getAll();
        Set<String> alarmIds       = alarms.keySet();
        for (String alarmId : alarmIds) {
            cancel(alarmId);
        }
        nc.cancelAll();
    }
public static void cancelAll ( ) { SharedPreferences settings = getSharedPreferences ( ) ; NotificationManager nc = getNotificationManager ( ) ; Map < String , ? > alarms = settings . getAll ( ) ; Set < String > alarmIds = alarms . keySet ( ) ; for ( String alarmId : alarmIds ) { cancel ( alarmId ) ; } nc . cancelAll ( ) ; }
Cancel all notifications that were created by this plugin.
Cancel all notifications that were created by this plugin .