Kodi Community Forum
ios platform detection - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: ios platform detection (/showthread.php?tid=102504)



ios platform detection - scarfa - 2011-05-30

Does something like System.Platform.IOS exist?


- Jezz_X - 2011-05-30

nope looks like its just
Quote: else if (strTest.Equals("system.platform.linux")) ret = SYSTEM_PLATFORM_LINUX;
else if (strTest.Equals("system.platform.windows")) ret = SYSTEM_PLATFORM_WINDOWS;
else if (strTest.Equals("system.platform.osx")) ret = SYSTEM_PLATFORM_OSX;
why would you need it anyway ?


- scarfa - 2011-05-30

Jezz_X Wrote:nope looks like its just

why would you need it anyway ?

There are certain controls I want to be on by default for devices like Ipad that use touch screen. For instance navigation buttons in home screen.


- pecinko - 2011-05-30

scarfa Wrote:There are certain controls I want to be on by default for devices like Ipad that use touch screen. For instance navigation buttons in home screen.

That would return true for ATV2 also.

There is a check for mouse enabled, though.


- scarfa - 2011-05-30

pecinko Wrote:That would return true for ATV2 also.

There is a check for mouse enabled, though.

Yeah I don't mind having ATV2 included as long as Ipad is in there. Checking for mouse enabled doesn't really solve it. Guess I'll just use system.platform.osx