m (→External links) |
m (→MGGetBoolAnswer (iOS 7+): Corrected type) |
||
Line 13: | Line 13: | ||
== MGGetBoolAnswer (iOS 7+) == | == MGGetBoolAnswer (iOS 7+) == | ||
<source lang=c> | <source lang=c> | ||
// | // bool MGGetBoolAnswer(CFStringRef key); | ||
bool value = MGGetBoolAnswer(CFSTR("UIProceduralWallpaperCapability")); | |||
NSLog(@"Value: %d", value); | NSLog(@"Value: %d", value); | ||
</source> | </source> |
Revision as of 03:50, 15 November 2020
libMobileGestalt is a library that can be used to get various system values such as the UDID, disk usage, device version and much more. It is comparable to liblockdown.dylib. See also lockdownd.
MGCopyAnswer
// Common form: MGCopyAnswer(CFStringRef string);
CFStringRef value = MGCopyAnswer(kMGDeviceColor);
NSLog(@"Value: %@", value);
CFRelease(value);
MGGetBoolAnswer (iOS 7+)
// bool MGGetBoolAnswer(CFStringRef key);
bool value = MGGetBoolAnswer(CFSTR("UIProceduralWallpaperCapability"));
NSLog(@"Value: %d", value);
References
External links