Source/CSBackend/Platform/Android/Main/Java/com/chilliworks/chillisource/core/LocalNotificationNativeInterface.java
/**
	 * method accessable from native for cancelling previously scheduled 
	 * notifications by id. This should only be called on the Main thread.
	 * 
	 * @author Steven Hendrie
	 * 
	 * @param The notification Id.
	 */
method accessable from native for cancelling previously scheduled
notifications by id. This should only be called on the Main thread.

@author Steven Hendrie

@param The notification Id.
method accessable from native for cancelling previously scheduled notifications by id . This should only be called on the Main thread . @author Steven Hendrie @param The notification Id .
public void cancelByID(int in_notificationId)
	{
		List<LocalNotification> notifications = m_notificationStore.getNotifications();
		List<LocalNotification> cancelList = new ArrayList<LocalNotification>();
		for (LocalNotification notification : notifications)
		{
			if (notification.getNotificationId() == in_notificationId)
			{
				cancelList.add(notification);
			}
		}
		for(LocalNotification cancel : cancelList)
		{
			PendingIntent pendingIntent = PendingIntent.getBroadcast(CSApplication.get().getActivityContext(), cancel.getIntentId() , cancel.toIntent(), PendingIntent.FLAG_UPDATE_CURRENT);
			m_alarmManager.cancel(pendingIntent);
			m_notificationStore.remove(cancel);
		}
	}
public void cancelByID ( int in_notificationId ) { List < LocalNotification > notifications = m_notificationStore . getNotifications ( ) ; List < LocalNotification > cancelList = new ArrayList < LocalNotification > ( ) ; for ( LocalNotification notification : notifications ) { if ( notification . getNotificationId ( ) == in_notificationId ) { cancelList . add ( notification ) ; } } for ( LocalNotification cancel : cancelList ) { PendingIntent pendingIntent = PendingIntent . getBroadcast ( CSApplication . get ( ) . getActivityContext ( ) , cancel . getIntentId ( ) , cancel . toIntent ( ) , PendingIntent . FLAG_UPDATE_CURRENT ) ; m_alarmManager . cancel ( pendingIntent ) ; m_notificationStore . remove ( cancel ) ; } }
method accessable from native for cancelling previously scheduled
 notifications by id.
method accessable from native for cancelling previously scheduled notifications by id .