Commit 371d0a05 authored by Felix Paul Kühne's avatar Felix Paul Kühne

uidevice: add method to tell us if there is an external screen

parent 195046b5
......@@ -16,5 +16,6 @@
- (int)speedCategory;
- (NSNumber *)freeDiskspace;
- (BOOL)hasExternalDisplay;
@end
......@@ -65,4 +65,9 @@
return totalFreeSpace;
}
- (BOOL)hasExternalDisplay
{
return ([[UIScreen screens] count] > 1);
}
@end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment