概要
「概要」Capacitor BLE 通信用低消費電力Bluetoothプラグイン。
主な機能
「主な機能」initialize- BLE プラグインを初期化する。どの他のメソッドよりも前に呼び出す必要がある。shimWebBluetooth- Capacitor Web Bluetooth シムをインストールする。navigator.bluetooth. Capacitor ネイティブ アプリから使用する前に、Web Bluetooth API を手動で呼び出す。isAvailable- このデバイスで Bluetooth が利用可能かどうかを確認する。isEnabled- このデバイスで Bluetooth が有効かどうかを確認する。
Public API
「Public API」というセクション| メソッド | 説明 |
|---|---|
initialize | BLE プラグインを初期化する。どの他のメソッドよりも前に呼び出す必要がある。 |
shimWebBluetooth | Capacitor Web Bluetooth シムをインストールする。 navigator.bluetooth. Capacitor ネイティブ アプリから使用する前に、Web Bluetooth API を手動で呼び出す。 |
isAvailable | __CAPGO_KEEP_0__が利用可能かどうかを確認します。 |
isEnabled | __CAPGO_KEEP_0__が有効かどうかを確認します。 |
isLocationEnabled | __CAPGO_KEEP_0__が有効かどうかを確認します (Android 限定)。 |
openAppSettings | アプリの設定画面を開きます。 |
openBluetoothSettings | __CAPGO_KEEP_0__の設定画面を開きます (Android 限定)。 |
openLocationSettings | __CAPGO_KEEP_0__の設定画面を開きます (Android 限定)。 |
checkPermissions | 現在の許可状態を確認します。 |
requestPermissions | __CAPGO_KEEP_0__の許可を求めます。 |
startScan | BLE デバイスをスキャンします。 |
stopScan | BLE デバイスのスキャンを停止します。 |
connect | BLE デバイスに接続します。 |
disconnect | BLE デバイスから切断します。 |
createBond | __CAPGO_KEEP_0__ (Android 限定) での BLE デバイスと接続する。 |
isBonded | __CAPGO_KEEP_0__ (Android 限定) でのデバイスが接続されているかどうかを確認する。 |
discoverServices | 接続されたデバイス上のサービスを検出する。 |
getServices | デバイスの検出されたサービスを取得する。 |
getConnectedDevices | 接続されたデバイスの一覧を取得する。 |
readCharacteristic | 特性値を読み取る。 |
writeCharacteristic | 特性値に値を書き込む。 |
startCharacteristicNotifications | 特性の通知を開始する。 |
stopCharacteristicNotifications | 特性の通知を停止する。 |
readDescriptor | 記述子値を読み取る。 |
writeDescriptor | 記述子値に値を書き込む。 |
readRssi | 接続されたデバイスのRSSI (信号強度) を読み取る。 |
requestMtu | Request MTU size change (Android only). |
requestConnectionPriority | Request connection priority (Android only). |
startAdvertising | BLEサーバーとしてペリフェラルとして広告を開始します。 |
stopAdvertising | 広告を停止します。 |
startForegroundService | Android用にバックグラウンドでBLE接続を維持するために、フォアグラウンドサービスを開始します。 |
stopForegroundService | フォアグラウンドサービスを停止します (Android only). |
getPluginVersion | native Capacitor プラグインのバージョンを取得します。 |
addListener | デバイスがスキャンされたイベントのリスナーを追加します。 |
addListener | デバイスが接続されたイベントのリスナーを追加します。 |
addListener | デバイスが切断されたイベントのリスナーを追加します。 |
addListener | 特性が変更されたイベントのリスナーを追加します。 |
removeAllListeners | このプラグインのすべてのリスナーを削除します。 |
真実の源
「真実の源」セクション__CAPGO_KEEP_0__から同期されたこのリファレンス src/definitions.ts で capacitor-Bluetooth Low Energy.
capgo/capacitor-Bluetooth Low Energyから続けて
「capgo/capacitor-Bluetooth Low Energyから続けて」セクション__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-Bluetooth Low Energyを使用している場合 capgo/capacitor-Bluetooth Low Energy __CAPGO_KEEP_0__/__CAPGO_KEEP_1__-Bluetooth Low Energyを使用して、移行とエンタープライズオペレーションの計画と接続 capgo/capacitor-Bluetooth Low Energyを使用して、capgo/capacitor-Bluetooth Low Energyのネイティブ機能 capgo/capacitor-Bluetooth Low Energyを使用して Capgo Enterprise Capgo Enterpriseの製品ワークフローについて Ionic Enterprise Plugin Alternatives Ionic Enterprise Plugin Alternativesの製品ワークフローについて Capgo Alternatives Capgo Alternativesの製品ワークフローについて Capgo Consulting Capgo Consultingの製品ワークフローについて