BluetoothRemoteGATTService

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。

Web Bluetooth APIBluetoothRemoteGATTService インターフェイスは、GATT サーバーにより提供されるサービスを表します。デバイス、参照されるサービス、このサービスのキャラクタリスティックのリストも含みます。

EventTarget BluetoothRemoteGATTService

インスタンスプロパティ

BluetoothRemoteGATTService.device 読取専用 Experimental

BluetoothDevice のインスタンスを通じて、この Bluetooth デバイスの情報を返します。

BluetoothRemoteGATTService.isPrimary 読取専用 Experimental

これがプライマリーサービスなのかセカンダリーサービスなのかを表す論理値を返します。

BluetoothRemoteGATTService.uuid 読取専用 Experimental

このサービスの UUID を表す文字列を返します。

インスタンスメソッド

BluetoothRemoteGATTService.getCharacteristic() Experimental

指定の universally unique identifier (UUID) に対応する BluetoothRemoteGATTCharacteristic のインスタンスで解決する Promise を返します。

BluetoothRemoteGATTService.getCharacteristics() Experimental

省略可能な universally unique identifier (UUID) に対応する BluetoothRemoteGATTCharacteristic のインスタンスの Array で解決する Promise を返します。

仕様書

Specification
Web Bluetooth
# bluetoothgattservice-interface

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
BluetoothRemoteGATTService
Experimental
device
Experimental
getCharacteristic
Experimental
getCharacteristics
Experimental
isPrimary
Experimental
uuid
Experimental

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Partial support
Partial support
No support
No support
Experimental. Expect behavior to change in the future.
See implementation notes.
Has more compatibility info.