Trang này là một phần của tài liệu về nền tảng Ứng dụng Chrome. Nền tảng này đã ngừng hoạt động vào năm 2020. Chính sách này vẫn được hỗ trợ cho khách hàng Enterprise và Education trên ChromeOS cho đến ít nhất là tháng 1 năm 2025. Hãy tìm hiểu thêm về cách di chuyển ứng dụng.
Tài sản tệp kê khai bluetooth khai báo những quyền nào dành cho Bluetooth
API.
Tệp manifest.json mẫu
{"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},...}
Tài liệu tham khảo
uuids (mảng chuỗi) – không bắt buộc
Tài sản tệp kê khai uuids khai báo danh sách các giao thức, hồ sơ và dịch vụ mà một ứng dụng
có thể giao tiếp bằng.
socket (boolean) – không bắt buộc
Nếu là true, hãy cấp quyền cho ứng dụng dùng API bluetoothSocket
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2014-03-11 UTC."],[],[]]