MonoMac 0.0.0.0 System.Object

Notification posted by the class.

This is a static class which contains various helper methods that allow developers to observe events posted in the iOS notification hub ().

The methods defined in this class post events invoke the provided method or lambda with a parameter which contains strongly typed properties for the notification arguments.

- Method
  0.0.0.0
  MonoMac.Foundation.NSObject `` Method to invoke when the notification is posted. Registers a method to be notified when the MIDINetworkNotificationContactsDidChange notification is posted.

  The returned NSObject represents the registered notification. Either call Dispose on the object to stop receiving notifications, or pass it to

  The following example shows how you can use this method in your code

  `// // Lambda style // // listening notification = Midi.Notifications.ObserveObserveNetworkNotificationContactsDidChange ((sender, args) => { /* Access strongly typed args */ Console.WriteLine ("Notification: {0}", args.Notification); }); // To stop listening: notification.Dispose (); // //Method style // NSObject notification; void Callback (object sender, ObserveNetworkNotificationContactsDidChange args) { // Access strongly typed args Console.WriteLine ("Notification: {0}", args.Notification); } void Setup () { notification = Midi.Notifications.ObserveObserveNetworkNotificationContactsDidChange (Callback); } void Teardown () { notification.Dispose (); }`
- Method
  0.0.0.0
  MonoMac.Foundation.NSObject `` Method to invoke when the notification is posted. Registers a method to be notified when the MIDINetworkNotificationSessionDidChange notification is posted.

  The returned NSObject represents the registered notification. Either call Dispose on the object to stop receiving notifications, or pass it to

  The following example shows how you can use this method in your code

  `// // Lambda style // // listening notification = Midi.Notifications.ObserveObserveNetworkNotificationSessionDidChange ((sender, args) => { /* Access strongly typed args */ Console.WriteLine ("Notification: {0}", args.Notification); }); // To stop listening: notification.Dispose (); // //Method style // NSObject notification; void Callback (object sender, ObserveNetworkNotificationSessionDidChange args) { // Access strongly typed args Console.WriteLine ("Notification: {0}", args.Notification); } void Setup () { notification = Midi.Notifications.ObserveObserveNetworkNotificationSessionDidChange (Callback); } void Teardown () { notification.Dispose (); }`