TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Apr 2015 |
Maintained 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 :)
- (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];
- (void)jm_removeObservedNotification:(JMSystemNotification)notification;
- (void)jm_removeObservedNotifications;