Skip to content

@capgo/capacitor-低エネルギーBluetooth

Capacitor 低エネルギーBluetooth プラグイン

概要

概要

CapacitorのBluetooth Low Energy プラグインはBLE通信に使用されます。

主な機能

主な機能
  • initialize - BLE プラグインを初期化する。どのメソッドも実行する前に必ず呼び出してください。
  • shimWebBluetooth - Capacitor Web Bluetooth shim を Capacitor にインストールする。 navigator.bluetooth- API を使用する前に、Capacitor ネイティブアプリから API Web Bluetooth shim を手動で呼び出してください。
  • isAvailable - デバイス上の Bluetooth が利用可能かどうかを確認する。
  • isEnabled - デバイス上の Bluetooth が有効かどうかを確認する。
- メソッド- 説明
initialize- BLE プラグインを初期化する。どのメソッドも実行する前に必ず呼び出してください。
shimWebBluetooth- Capacitor Web Bluetooth shim を Capacitor にインストールする。 navigator.bluetooth- API を使用する前に、Capacitor ネイティブアプリから API Web Bluetooth shim を手動で呼び出してください。
isAvailable__CAPGO_KEEP_0__
isEnabled__CAPGO_KEEP_1__
isLocationEnabled__CAPGO_KEEP_2__
openAppSettings__CAPGO_KEEP_3__
openBluetoothSettings__CAPGO_KEEP_4__
openLocationSettings__CAPGO_KEEP_5__
checkPermissions__CAPGO_KEEP_6__
requestPermissions__CAPGO_KEEP_7__
startScan__CAPGO_KEEP_8__
stopScan__CAPGO_KEEP_9__
connect__CAPGO_KEEP_10__
disconnect__CAPGO_KEEP_11__
createBondBLE デバイスとバインドする (Android 限定).
isBondedデバイスがバインドされているかどうかを確認する (Android 限定).
discoverServices接続されたデバイス上のサービスを検出する。
getServicesデバイスの検出されたサービスを取得する。
getConnectedDevices接続済みデバイスの一覧を取得する。
readCharacteristic特性値を読み取る。
writeCharacteristic特性値に値を書き込む。
startCharacteristicNotifications特性の通知を開始する。
stopCharacteristicNotifications特性の通知を停止する。
readDescriptor記述子値を読み取る。
writeDescriptor記述子に値を書き込む。
readRssi接続済みデバイスのRSSI (信号強度)を読み取る。
requestMtuAndroid専用: MTUサイズの変更を要求します。
requestConnectionPriorityAndroid専用: 接続優先度を要求します。
startAdvertisingBLEサーバーとしてアドバタイズを開始します。
stopAdvertisingアドバタイズを停止します。
startForegroundServiceAndroid専用: バックグラウンドでBLE接続を維持するために、前景サービスを開始します。
stopForegroundServiceAndroid専用: 前景サービスを停止します。
getPluginVersionGet the native Capacitor plugin version.
addListenerデバイスがスキャンされたイベントのリスナーを追加します。
addListenerデバイスが接続されたイベントのリスナーを追加します。
addListenerデバイスが切断されたイベントのリスナーを追加します。
addListener特性が変更されたイベントのリスナーを追加します。
removeAllListenersこのプラグインのすべてのリスナーを削除します。

このリファレンスは src/definitions.tscapacitor-Bluetooth Low Energy.

Keep going from @capgo/capacitor-bluetooth-low-energy

Section titled “Keep going from @capgo/capacitor-bluetooth-low-energy”

Capgoの「__CAPGO_KEEP_0__-Bluetooth Low Energy」を使用している場合 @capgo/capacitor-bluetooth-low-energy Capgoの「__CAPGO_KEEP_0__-Bluetooth Low Energy」を使用して Using @capgo/capacitor-bluetooth-low-energy for the native capability in Using @capgo/capacitor-bluetooth-low-energy, Capgo ビジネス Capgo ビジネス用製品フローに Ionic ビジネス用プラグインの代替 __CAPGO_KEEP_0__ ビジネス用プラグインの代替 Capgo の代替 Capgo ビジネス用プラグインの代替、そして Capgo コンサルティング Capgo コンサルティング用製品フローに