Bluetooth.onavailabilitychanged

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The onavailabilitychanged property of the Bluetooth interface is an event handler that processes availabilitychanged events that fire when the Bluetooth system as a whole becomes available or unavailable to the User Agent.

Syntax

Bluetooth.onavailabilitychanged = functionRef;

Value

functionRef is the handler function to be called when the Bluetooth availabilitychanged event fires.

Specifications

Specification
Web Bluetooth
# bluetooth

Browser compatibility

BCD tables only load in the browser

See also