WebSession.Platform

From Xojo Documentation

Read-Only Property (As WebSession.PlatformType )
WebSession.PlatformTypeValue = aWebSession.Platform

New in 2010r4

Supported for all project types and targets.

Specifies the platform being used for this session. See the list of enumerations for the WebSession class.

Examples

Select Case Session.Platform
Case WebSession.PlatformType.AndroidPhone
MsgBox("AndroidPhone")
Case WebSession.PlatformType.AndroidTablet
MsgBox("AndroidTablet")
Case WebSession.PlatformType.Blackberry
MsgBox("Blackberry")
Case WebSession.PlatformType.iPad
MsgBox("iPad")
Case WebSession.PlatformType.iPhone
MsgBox("iPhone")
Case WebSession.PlatformType.iPodTouch
MsgBox("iPodTouch")
Case WebSession.PlatformType.Linux
MsgBox("Linux")
Case WebSession.PlatformType.Macintosh
MsgBox("Macintosh")
Case WebSession.PlatformType.PS3
MsgBox("PS3")
Case WebSession.PlatformType.WebOS
MsgBox("WebOS")
Case WebSession.PlatformType.Wii
MsgBox("Wii")
Case WebSession.PlatformType.Windows
MsgBox("Windows")
Case WebSession.PlatformType.Unknown
MsgBox("Unknown platform type")
End Select