jon.recoil.org

Module Brr.Navigator

Navigator objects.

Some of the objects that are accessed from Navigator objects have the accessor in the module that handles them:

type t

The type for navigator Navigator objects. See G.navigator for the global navigator object.

val languages : Brr.Navigator.t -> Jstr.t list

languages n is the user's preferred languages as BCP 47 language tags ordered by decreasing preference.

This consults navigator.languages and navigator.language. See also Ev.languagechange

val max_touch_points : Brr.Navigator.t -> int

max_touch_points n is the maximum number of simultaneous touch contacts supported by the user agent. See the pointer events spec.

val online : Brr.Navigator.t -> bool

online n is the online status of the browser. See the docs, the semantics is browser dependent.

val to_jv : Brr.Navigator.t -> Jv.jv
val of_jv : Jv.jv -> Brr.Navigator.t