Secure context
This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
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
ตารางความเข้ากันได้ในหน้านี้สร้างขึ้นจากข้อมูลที่มีโครงสร้าง หากคุณต้องการมีส่วนร่วมกับข้อมูลโปรดตรวจสอบhttps://github.com/mdn/browser-compat-dataและส่งคำขอดึง