ocsigen-start-compat.client
Os_platform
ocsigen-start-compat.server
include module type of struct include Os.Platform end
type t = Os.Platform.t =
| Android
| IPhone
| IPad
| IPod
| IWatch
| BlackBerry
| Windows
| Unknown
Platform type.
val t_of_string : string -> t
val string_of_t : t -> string
val get : unit -> t
Return the platform as a type t. The detection is based on the user agent.
t
val css_class : t -> string
Return "os-platform" where platform is the device platform.
"os-platform"
platform
CSS class for IPhone, IPad, IWatch and IPod is "os-ios".
IPhone
IPad
IWatch
IPod
"os-ios"
If the platform is Unknown, it returns "os-unknown-platform".
Unknown
"os-unknown-platform"