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 @@ ...@@ -16,5 +16,6 @@
- (int)speedCategory; - (int)speedCategory;
- (NSNumber *)freeDiskspace; - (NSNumber *)freeDiskspace;
- (BOOL)hasExternalDisplay;
@end @end
...@@ -65,4 +65,9 @@ ...@@ -65,4 +65,9 @@
return totalFreeSpace; return totalFreeSpace;
} }
- (BOOL)hasExternalDisplay
{
return ([[UIScreen screens] count] > 1);
}
@end @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