Source/CSBackend/Platform/Android/Main/Java/com/chilliworks/chillisource/core/LocalNotificationNativeInterface.java
/**
	 * Called when a new notification intent is received. This can be called from
	 * the UI thread.
	 * 
	 * @author Ian Copland
	 * 
	 * @param The received intent.
	 */
Called when a new notification intent is received. This can be called from
the UI thread.

@author Ian Copland

@param The received intent.
Called when a new notification intent is received . This can be called from the UI thread . @author Ian Copland @param The received intent .
public void onNotificationReceived(Intent in_intent)
	{
		LocalNotification receivedNotification = new LocalNotification(in_intent);
		LocalNotification storedNotification = m_notificationStore.getNotificationWithIntentId(receivedNotification.getIntentId());
		if (storedNotification != null)
		{
			m_notificationStore.remove(storedNotification);
			Map<String, String> params = storedNotification.getParams();
			int paramSize = params.size();
			String[] keys = new String[paramSize];
			String[] values = new String[paramSize];
			int index = 0;
			for (Entry<String, String> entry : params.entrySet()) 
			{
				keys[index] = entry.getKey();
				values[index] = entry.getValue();
				++index;
			}
			nativeOnNotificationReceived(storedNotification.getNotificationId(), keys, values, storedNotification.getPriority());
		}
	}
public void onNotificationReceived ( Intent in_intent ) { LocalNotification receivedNotification = new LocalNotification ( in_intent ) ; LocalNotification storedNotification = m_notificationStore . getNotificationWithIntentId ( receivedNotification . getIntentId ( ) ) ; if ( storedNotification != null ) { m_notificationStore . remove ( storedNotification ) ; Map < String , String > params = storedNotification . getParams ( ) ; int paramSize = params . size ( ) ; String [ ] keys = new String [ paramSize ] ; String [ ] values = new String [ paramSize ] ; int index = 0 ; for ( Entry < String , String > entry : params . entrySet ( ) ) { keys [ index ] = entry . getKey ( ) ; values [ index ] = entry . getValue ( ) ; ++ index ; } nativeOnNotificationReceived ( storedNotification . getNotificationId ( ) , keys , values , storedNotification . getPriority ( ) ) ; } }
Called when a new notification intent is received.
Called when a new notification intent is received .