-
-
Save LacertosusRepo/d91d5969f16b9fe4a64c1628e4ac2ea5 to your computer and use it in GitHub Desktop.
Log local notifications.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void printNotification(CFNotificationCenterRef center, void *observer, CFStringRef name, const void *object, CFDictionaryRef userInfo) { | |
if([(__bridge NSString *)name containsString:@"UIViewAnimation"]) { | |
return; | |
} | |
os_log(OS_LOG_DEFAULT, "name: %@\ninfo: %@\ncenter: %@", name, userInfo, center); | |
} | |
%ctor { | |
CFNotificationCenterAddObserver(CFNotificationCenterGetLocalCenter(), NULL, printNotification, NULL, NULL, CFNotificationSuspensionBehaviorDeliverImmediately); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment