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 EventHandler
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 | Status | Comment |
---|---|---|
Web Bluetooth The definition of 'Bluetooth' in that specification. |
Draft | Initial definition. |
Browser compatibility
BCD tables only load in the browser