protected override void OnNewIntent(Intent intent) { base.OnNewIntent(intent); var listener = new NotificationListener(); listener.NotificationRecieved(intent); }
/// <summary> /// This is called when a new notification is recieved. /// </summary> /// <param name="intent">The intent that contains information about the nofication.</param> /// <remarks> /// This event could get triggered by non-notification intents but for this example /// program it should only ever be notifications. /// </remarks> protected override void OnNewIntent(Intent intent) { // Let the parent do it's thing. base.OnNewIntent(intent); // Let the notification plugin translate the Andorid notification (i.e. Intent) // to a XPlugins notification. This will also trigger the event in the portable // project assuming it has registered an observer. var listener = new NotificationListener(); listener.NotificationRecieved(intent); }