Created
May 30, 2014 11:09
-
-
Save nickdowell/bcac4213491e5516d7e9 to your computer and use it in GitHub Desktop.
This file contains 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
#import <Foundation/Foundation.h> | |
#import <notify.h> | |
void test() | |
{ | |
int notify_token; | |
notify_register_dispatch("com.apple.springboard.lockstate", ¬ify_token, dispatch_get_main_queue(), ^(int token) { | |
uint64_t state = UINT64_MAX; | |
notify_get_state(token, &state); | |
NSLog(@"com.apple.springboard.lockstate = %llu", state); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment