Module Os_platform

About device platform.

type t =
  1. | Android
  2. | IPhone
  3. | IPad
  4. | IPod
  5. | IWatch
  6. | BlackBerry
  7. | Windows
  8. | Unknown

Platform type.

val t_of_string : string -> t
val string_of_t : t -> string
val css_class : t -> string

Return "os-platform" where platform is the device platform.

CSS class for IPhone, IPad, IWatch and IPod is "os-ios".

If the platform is Unknown, it returns "os-unknown-platform".