Non standard
Cette fonctionnalité n'est ni standard, ni en voie de standardisation. Ne l'utilisez pas pour des sites accessibles sur le Web : elle ne fonctionnera pas pour tout utilisateur. Il peut également y avoir d'importantes incompatibilités entre les implémentations et son comportement peut être modifié dans le futur.
Cette API est disponible sur Firefox OS pour des applications internes seulement.
Sommaire
L'API BluetoothStatusChangedEvent
donne accès aux informations de modification du statut de l'équipement Bluetooth.
Une modification du statut a lieu lorsqu'un des évènements suivants est détecté :
a2dpstatuschange
: It occurs when an A2DP connection status changes. SeeBluetoothAdapter.ona2dpstatuschanged
for more information.hfpstatuschange
: It occurs when an HFP connection status changes. SeeBluetoothAdapter.onhfpstatuschanged
for more information.pairedstatuschange
: It occurs when the pairing status of the device changes. SeeBluetoothAdapter.onpairedstatuschanged
for more information.scostatuschange
: It occurs when an SCO connection status changes. SeeBluetoothAdapter.onscostatuschanged
for more information.
Interface overview
interface BluetoothStatusChangedEvent: Event { readonly attribute DOMString address; readonly attribute boolean status; };
Properties
BluetoothStatusChangedEvent.address
Lecture seule- A string representing the address of the device for which the status has changed in the Bluetooth micro-network.
BluetoothStatusChangedEvent.status
Lecture seule- A boolean representing the current status of the connection. It can be enabled (
true
) or disabled (false
).
Methods
None.
Specification
Not part of any specification yet. It should be discussed as part of the W3C's System Applications Working Group.