@capgo/capacitor-bluetooth-low-energy 8.2.11 → 8.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/android/src/main/java/ee/forgr/plugin/bluetooth_low_energy/BluetoothLowEnergyPlugin.java +1 -1
- package/dist/docs.json +3 -3
- package/dist/esm/definitions.d.ts +3 -3
- package/ios/Sources/BluetoothLowEnergyPlugin/BluetoothLowEnergyPlugin.swift +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -939,7 +939,7 @@ Add a listener for Bluetooth adapter power state changes.
|
|
|
939
939
|
|
|
940
940
|
**Returns:** <code>Promise<<a href="#pluginlistenerhandle">PluginListenerHandle</a>></code>
|
|
941
941
|
|
|
942
|
-
**Since:** 8.
|
|
942
|
+
**Since:** 8.2.11
|
|
943
943
|
|
|
944
944
|
--------------------
|
|
945
945
|
|
|
@@ -1499,9 +1499,9 @@ Event emitted when a central disconnects from the local GATT server.
|
|
|
1499
1499
|
|
|
1500
1500
|
Event emitted when the Bluetooth adapter is turned on or off.
|
|
1501
1501
|
|
|
1502
|
-
| Prop | Type | Description | Since
|
|
1503
|
-
| ------------- | -------------------- | -------------------------------------------------- |
|
|
1504
|
-
| **`enabled`** | <code>boolean</code> | Whether Bluetooth is enabled (adapter powered on). | 8.
|
|
1502
|
+
| Prop | Type | Description | Since |
|
|
1503
|
+
| ------------- | -------------------- | -------------------------------------------------- | ------ |
|
|
1504
|
+
| **`enabled`** | <code>boolean</code> | Whether Bluetooth is enabled (adapter powered on). | 8.2.11 |
|
|
1505
1505
|
|
|
1506
1506
|
|
|
1507
1507
|
#### GattCharacteristicReadRequestEvent
|
package/android/src/main/java/ee/forgr/plugin/bluetooth_low_energy/BluetoothLowEnergyPlugin.java
CHANGED
|
@@ -79,7 +79,7 @@ import java.util.UUID;
|
|
|
79
79
|
)
|
|
80
80
|
public class BluetoothLowEnergyPlugin extends Plugin {
|
|
81
81
|
|
|
82
|
-
private final String pluginVersion = "8.2.
|
|
82
|
+
private final String pluginVersion = "8.2.12";
|
|
83
83
|
private BluetoothManager bluetoothManager;
|
|
84
84
|
private BluetoothAdapter bluetoothAdapter;
|
|
85
85
|
private BluetoothLeScanner bluetoothLeScanner;
|
package/dist/docs.json
CHANGED
|
@@ -1422,7 +1422,7 @@
|
|
|
1422
1422
|
},
|
|
1423
1423
|
{
|
|
1424
1424
|
"name": "since",
|
|
1425
|
-
"text": "8.
|
|
1425
|
+
"text": "8.2.11"
|
|
1426
1426
|
}
|
|
1427
1427
|
],
|
|
1428
1428
|
"docs": "Add a listener for Bluetooth adapter power state changes.",
|
|
@@ -3533,7 +3533,7 @@
|
|
|
3533
3533
|
"docs": "Event emitted when the Bluetooth adapter is turned on or off.",
|
|
3534
3534
|
"tags": [
|
|
3535
3535
|
{
|
|
3536
|
-
"text": "8.
|
|
3536
|
+
"text": "8.2.11",
|
|
3537
3537
|
"name": "since"
|
|
3538
3538
|
}
|
|
3539
3539
|
],
|
|
@@ -3543,7 +3543,7 @@
|
|
|
3543
3543
|
"name": "enabled",
|
|
3544
3544
|
"tags": [
|
|
3545
3545
|
{
|
|
3546
|
-
"text": "8.
|
|
3546
|
+
"text": "8.2.11",
|
|
3547
3547
|
"name": "since"
|
|
3548
3548
|
}
|
|
3549
3549
|
],
|
|
@@ -536,7 +536,7 @@ export interface BluetoothLowEnergyPlugin {
|
|
|
536
536
|
* @param eventName - The event name
|
|
537
537
|
* @param listenerFunc - The listener function
|
|
538
538
|
* @returns Promise that resolves with a handle to remove the listener
|
|
539
|
-
* @since 8.
|
|
539
|
+
* @since 8.2.11
|
|
540
540
|
*/
|
|
541
541
|
addListener(eventName: 'adapterStateChanged', listenerFunc: (event: AdapterStateChangedEvent) => void): Promise<PluginListenerHandle>;
|
|
542
542
|
/**
|
|
@@ -1554,13 +1554,13 @@ export interface CentralDisconnectedEvent {
|
|
|
1554
1554
|
/**
|
|
1555
1555
|
* Event emitted when the Bluetooth adapter is turned on or off.
|
|
1556
1556
|
*
|
|
1557
|
-
* @since 8.
|
|
1557
|
+
* @since 8.2.11
|
|
1558
1558
|
*/
|
|
1559
1559
|
export interface AdapterStateChangedEvent {
|
|
1560
1560
|
/**
|
|
1561
1561
|
* Whether Bluetooth is enabled (adapter powered on).
|
|
1562
1562
|
*
|
|
1563
|
-
* @since 8.
|
|
1563
|
+
* @since 8.2.11
|
|
1564
1564
|
*/
|
|
1565
1565
|
enabled: boolean;
|
|
1566
1566
|
}
|
|
@@ -5,7 +5,7 @@ import CoreBluetooth
|
|
|
5
5
|
// swiftlint:disable type_body_length file_length
|
|
6
6
|
@objc(BluetoothLowEnergyPlugin)
|
|
7
7
|
public class BluetoothLowEnergyPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
8
|
-
private let pluginVersion: String = "8.2.
|
|
8
|
+
private let pluginVersion: String = "8.2.12"
|
|
9
9
|
public let identifier = "BluetoothLowEnergyPlugin"
|
|
10
10
|
public let jsName = "BluetoothLowEnergy"
|
|
11
11
|
public let pluginMethods: [CAPPluginMethod] = [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/capacitor-bluetooth-low-energy",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.12",
|
|
4
4
|
"description": "Bluetooth Low Energy (BLE) plugin for Capacitor with support for scanning, connecting, reading, writing, and notifications.",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|