Hi, is there an API call to return this info?
thx
Hi, is there an API call to return this info?
thx
This one?
SystemStats::getOperatingSystemType()
Returns the type of operating system we’re running on.
Returns
one of the values from the OperatingSystemType enum.
Returns:
https://juce.com/doc/classSystemStats#a7697c468b5f6c391096ab483690b68ea
hi, that tells me I’m running on iOS, but not whether it’s a phone or tablet… Not actually sure if this info is directly available and maybe has to be inferred from display dimensions…?
i added an extra comma t the title to make the intent clearer 
Ah, sorry. I thought that was too obvious 
What about:
#if JUCE_IPHONE
bool itsMeTheiPhone = true;
#else
bool itsMeTheiPhone = false
#endif
SystemStats::getDeviceDescription()
You may want to use this for things like determining the type of phone/iPad, etc.
ah, thx - will take a look into that.
Perfect, returns “iPad” or “iPhone”. thanks
This method returns “arm64” if running the App on an iPhone14 simulator.
Is there a more robust way to tell an iPhone from an iPad?
this works fine for non-simluator - for simulator, not sure…
And how do you know if there are unusable display areas such as the rounded corners or the front camera hole?
safeAreaInsets in Display class.
Using this for simulator: [UIDevice currentDevice].userInterfaceIdiom