Skip to content

Navigator

Values

canShare

let canShare: (
WebAPI.DOMAPI.navigator,
~data: WebAPI.DOMAPI.shareData=?,
) => bool

Parameters

WebAPI.DOMAPI.navigator option< WebAPI.DOMAPI.shareData >

Return type

bool

clearAppBadge

let clearAppBadge: WebAPI.DOMAPI.navigator => Promise.t<unit>

Parameters

WebAPI.DOMAPI.navigator

Return type

Promise.t< unit >

getGamepads

let getGamepads: WebAPI.DOMAPI.navigator => array<WebAPI.GamepadAPI.gamepad>

Parameters

WebAPI.DOMAPI.navigator

Return type

array< WebAPI.GamepadAPI.gamepad >

registerProtocolHandler

let registerProtocolHandler: (
WebAPI.DOMAPI.navigator,
~scheme: string,
~url: string,
) => unit

Parameters

WebAPI.DOMAPI.navigator string string

Return type

unit

requestMediaKeySystemAccess

let requestMediaKeySystemAccess: (
WebAPI.DOMAPI.navigator,
~keySystem: string,
~supportedConfigurations: array<
WebAPI.EncryptedMediaExtensionsAPI.mediaKeySystemConfiguration,
>,
) => Promise.t<
WebAPI.EncryptedMediaExtensionsAPI.mediaKeySystemAccess,
>

requestMIDIAccess

let requestMIDIAccess: (
WebAPI.DOMAPI.navigator,
~options: WebAPI.WebMIDIAPI.midiOptions=?,
) => Promise.t<WebAPI.WebMIDIAPI.midiAccess>

sendBeacon

let sendBeacon: (
WebAPI.DOMAPI.navigator,
~url: string,
~data: WebAPI.FileAPI.readableStream<unit>=?,
) => bool

Parameters

WebAPI.DOMAPI.navigator string option< WebAPI.FileAPI.readableStream< unit > >

Return type

bool

sendBeacon2

let sendBeacon2: (
WebAPI.DOMAPI.navigator,
~url: string,
~data: WebAPI.FileAPI.blob=?,
) => bool

Parameters

WebAPI.DOMAPI.navigator string option< WebAPI.FileAPI.blob >

Return type

bool

sendBeacon3

let sendBeacon3: (
WebAPI.DOMAPI.navigator,
~url: string,
~data: DataView.t=?,
) => bool

Parameters

WebAPI.DOMAPI.navigator string option< DataView.t >

Return type

bool

sendBeacon4

let sendBeacon4: (
WebAPI.DOMAPI.navigator,
~url: string,
~data: ArrayBuffer.t=?,
) => bool

Parameters

WebAPI.DOMAPI.navigator string option< ArrayBuffer.t >

Return type

bool

sendBeacon5

let sendBeacon5: (
WebAPI.DOMAPI.navigator,
~url: string,
~data: WebAPI.FetchAPI.formData=?,
) => bool

Parameters

WebAPI.DOMAPI.navigator string option< WebAPI.FetchAPI.formData >

Return type

bool

sendBeacon6

let sendBeacon6: (
WebAPI.DOMAPI.navigator,
~url: string,
~data: WebAPI.FetchAPI.urlSearchParams=?,
) => bool

Parameters

WebAPI.DOMAPI.navigator string option< WebAPI.FetchAPI.urlSearchParams >

Return type

bool

sendBeacon7

let sendBeacon7: (
WebAPI.DOMAPI.navigator,
~url: string,
~data: string=?,
) => bool

Parameters

WebAPI.DOMAPI.navigator string option< string >

Return type

bool

setAppBadge

let setAppBadge: (
WebAPI.DOMAPI.navigator,
~contents: int=?,
) => Promise.t<unit>

Parameters

WebAPI.DOMAPI.navigator option< int >

Return type

Promise.t< unit >

share

let share: (
WebAPI.DOMAPI.navigator,
~data: WebAPI.DOMAPI.shareData=?,
) => Promise.t<unit>

Parameters

WebAPI.DOMAPI.navigator option< WebAPI.DOMAPI.shareData >

Return type

Promise.t< unit >

vibrate

let vibrate: (WebAPI.DOMAPI.navigator, int) => bool

Parameters

WebAPI.DOMAPI.navigator int

Return type

bool

vibrate2

let vibrate2: (WebAPI.DOMAPI.navigator, array<int>) => bool

Parameters

WebAPI.DOMAPI.navigator array< int >

Return type

bool