JMSystemNotifications 0.0.1

JMSystemNotifications 0.0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Apr 2015

Maintained by Jérôme Morissard.



  • By
  • Jérôme Morissard

JMSystemNotifications is an Objective-C library for easily register OS System notifications. Do you all the possible notifications send by the system. Here, the first 114 Notifications :)

Image

Registering System Notifications

- (BOOL)jm_observeNotification:(JMSystemNotification)notification usingBlock:(JMNotificationBlock)block;
- (BOOL)jm_observeNotification:(JMSystemNotification)notification usingBlock:(JMNotificationBlock)block error:(NSError **)error;

With error catching, because some notifications are iOS version dependant

BOOL addObserverSucessfully = [self jm_observeNotification:JMUserDefaultsDidChangeNotification usingBlock:^(NSNotification *notif) {
    NSLog(@"JMUserDefaultsDidChangeNotification");
}];

NSError *error;
[self jm_observeNotification:JMUserDefaultsDidChangeNotification usingBlock:^(NSNotification *notif) {
    NSLog(@"JMUserDefaultsDidChangeNotification");
} error:&error];

Unregistering System Notifications

- (void)jm_removeObservedNotification:(JMSystemNotification)notification;
- (void)jm_removeObservedNotifications;

Todo

  • AVFoundation
  • CloudKit
  • ExternalAccessory
  • GameKit
  • GameController
  • HealthKit
  • MediaPlayer
  • NetworkExtension
  • NewsstandKit
  • CoreBluetooth?
  • CoreMedia?
  • CoreFoundation?