Warning: Reason support is experimental. We are looking for beta-tester and contributors.

Module Os_platform

module Os_platform : sig..end

About device platform.


type t =  | Android | IPhone | IPad | IPod | IWatch | BlackBerry | Windows | 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".