Liking cljdoc? Tell your friends :D

web.bluetooth.Bluetooth

The Bluetooth interface of the Web Bluetooth API returns a js.Promise a web.bluetooth.BluetoothDevice object with the specified options.

The Bluetooth interface of the Web Bluetooth API returns a `js.Promise`
a `web.bluetooth.BluetoothDevice` object with the specified options.
raw docstring

get-availabilitycljs

(get-availability this & args)

Method.

Returns a Promise that resolved to a Boolean indicating whether user-agent has the ability to support Bluetooth. Some user-agents the user configure an option that affects what is returned by value. If this option is set, that is the value returned by this

Method.

Returns a Promise that resolved to a Boolean indicating whether
user-agent has the ability to support Bluetooth. Some user-agents
the user configure an option that affects what is returned by
value. If this option is set, that is the value returned by this
sourceraw docstring

onavailabilitychangedcljs

(onavailabilitychanged this)

Property.

An event handler that runs when an event of type availabilitychanged fired.

Property.

An event handler that runs when an event of type availabilitychanged
fired.
sourceraw docstring

referring-devicecljs

(referring-device this)

Property.

Returns a reference to the device, if any, from which the user the current page. For example, an Eddystone beacon might advertise URL, which the user agent allows the user to open. A BluetoothDevice the beacon would be available through navigator.bluetooth.referringDevice.

Property.

Returns a reference to the device, if any, from which the user
the current page. For example, an Eddystone beacon might advertise
URL, which the user agent allows the user to open. A BluetoothDevice
the beacon would be available through navigator.bluetooth.referringDevice.
sourceraw docstring

request-devicecljs

(request-device this & args)

Method.

[Experimental]

The Bluetooth.requestDevice() method of the web.bluetooth.Bluetooth returns a js.Promise to a web.bluetooth.BluetoothDevice object the specified options. If there is no chooser UI, this method the first device matching the criteria.

Bluetooth.requestDevice([options]) .then(function(bluetoothDevice) { ... })

See also: https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/requestDevice

Method.

[Experimental]

The Bluetooth.requestDevice() method of the `web.bluetooth.Bluetooth`
returns a `js.Promise` to a `web.bluetooth.BluetoothDevice` object
the specified options. If there is no chooser UI, this method
the first device matching the criteria.

`Bluetooth.requestDevice([options])
.then(function(bluetoothDevice) { ... })`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/requestDevice`
sourceraw docstring

set-onavailabilitychanged!cljs

(set-onavailabilitychanged! this val)

Property.

An event handler that runs when an event of type availabilitychanged fired.

Property.

An event handler that runs when an event of type availabilitychanged
fired.
sourceraw docstring

set-referring-device!cljs

(set-referring-device! this val)

Property.

Returns a reference to the device, if any, from which the user the current page. For example, an Eddystone beacon might advertise URL, which the user agent allows the user to open. A BluetoothDevice the beacon would be available through navigator.bluetooth.referringDevice.

Property.

Returns a reference to the device, if any, from which the user
the current page. For example, an Eddystone beacon might advertise
URL, which the user agent allows the user to open. A BluetoothDevice
the beacon would be available through navigator.bluetooth.referringDevice.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close