I’m doing an application for mobile devices, specifically for iphone and ipad. And I want to use different interfaces for each. How can I do that? Is there a variable that holds the name of the device?
Such as
if(device=="iPhone")
{use this state}
else if (device=="iPad")
{use that state}
??
You can use
Capabilities.osto obtain the device’s operating system and see if it uses iOS, then useCapabilities.screenResolutionXandCapabilities.screenResolutionYto determine if the resolutions correspond to an iPhone or an iPad.