Cette page fait partie de la documentation de la plate-forme d'applications Chrome, qui a été abandonnée en 2020. Les clients Enterprise et Education sur ChromeOS continueront d'y avoir accès au moins jusqu'en janvier 2025. En savoir plus sur la migration de votre application
La propriété du fichier manifeste bluetooth déclare les autorisations disponibles pour le Bluetooth.
API.
Exemple de fichier manifest.json
{"name":"MyBluetoothapp","bluetooth":{// Permission for chrome.bluetoothSocket:// The application is allowed to communicate with devices// using the protocols, profiles, or services identified by// the UUIDs 0x1105 and 0x1106 using the BluetoothSocket API."uuids":["1105","1106"],"socket":true},...}
{"name":"MyBluetoothapp","bluetooth":{// Permission for chrome.bluetoothLowEnergy:// The application is allowed to communicate with devices// using the profiles identified by the UUIDs 0x180D, 0x1809 and 0x180F// using the BluetoothLowEnergy API."uuids":["180D","1809","180F"],"low_energy":true},...}
Référence
uuids (tableau de chaînes) : facultatif
La propriété de fichier manifeste uuids déclare la liste des protocoles, profils et services utilisés par une application.
peuvent communiquer en utilisant.
socket (booléen) : facultatif
Si la valeur est true, autorise une application à utiliser l'API bluetoothSocket.
low_energy (booléen) : facultatif
Si la valeur est true, autorise une application à utiliser l'API bluetoothLowEnergy.
peripheral (booléen) : facultatif
Si la valeur est true, autorise une application à utiliser les fonctions d'annonce dans
API bluetoothLowEnergy
Ce contenu vous a-t-il été utile ?
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2014/03/11 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2014/03/11 (UTC)."],[],[]]