@capgo/capacitor-bluetooth-low-energy 8.1.7 → 8.2.1
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 +262 -0
- package/android/src/main/java/ee/forgr/plugin/bluetooth_low_energy/BluetoothLowEnergyPlugin.java +366 -1
- package/dist/docs.json +765 -27
- package/dist/esm/definitions.d.ts +300 -0
- package/dist/esm/definitions.js +0 -5
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/web.d.ts +5 -1
- package/dist/esm/web.js +12 -0
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +12 -5
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +12 -5
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/BluetoothLowEnergyPlugin/BluetoothLowEnergy.swift +214 -0
- package/ios/Sources/BluetoothLowEnergyPlugin/BluetoothLowEnergyPlugin.swift +103 -1
- package/package.json +4 -2
package/dist/docs.json
CHANGED
|
@@ -934,6 +934,134 @@
|
|
|
934
934
|
"complexTypes": [],
|
|
935
935
|
"slug": "stopadvertising"
|
|
936
936
|
},
|
|
937
|
+
{
|
|
938
|
+
"name": "addGattService",
|
|
939
|
+
"signature": "(options: AddGattServiceOptions) => Promise<void>",
|
|
940
|
+
"parameters": [
|
|
941
|
+
{
|
|
942
|
+
"name": "options",
|
|
943
|
+
"docs": "- GATT service definition",
|
|
944
|
+
"type": "AddGattServiceOptions"
|
|
945
|
+
}
|
|
946
|
+
],
|
|
947
|
+
"returns": "Promise<void>",
|
|
948
|
+
"tags": [
|
|
949
|
+
{
|
|
950
|
+
"name": "param",
|
|
951
|
+
"text": "options - GATT service definition"
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
"name": "returns",
|
|
955
|
+
"text": "Promise that resolves when the service is added"
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
"name": "since",
|
|
959
|
+
"text": "8.2.0"
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
"name": "example",
|
|
963
|
+
"text": "```typescript\nawait BluetoothLowEnergy.addGattService({\n service: '180D',\n characteristics: [{\n uuid: '2A37',\n properties: { read: true, notify: true, write: false, writeWithoutResponse: false, broadcast: false, indicate: false, authenticatedSignedWrites: false, extendedProperties: false },\n value: [0x00]\n }]\n});\n```"
|
|
964
|
+
}
|
|
965
|
+
],
|
|
966
|
+
"docs": "Add a GATT service with characteristics to the local GATT server.\nMust be called in peripheral mode before starting advertising.",
|
|
967
|
+
"complexTypes": [
|
|
968
|
+
"AddGattServiceOptions"
|
|
969
|
+
],
|
|
970
|
+
"slug": "addgattservice"
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
"name": "removeGattService",
|
|
974
|
+
"signature": "(options: RemoveGattServiceOptions) => Promise<void>",
|
|
975
|
+
"parameters": [
|
|
976
|
+
{
|
|
977
|
+
"name": "options",
|
|
978
|
+
"docs": "- Service removal options",
|
|
979
|
+
"type": "RemoveGattServiceOptions"
|
|
980
|
+
}
|
|
981
|
+
],
|
|
982
|
+
"returns": "Promise<void>",
|
|
983
|
+
"tags": [
|
|
984
|
+
{
|
|
985
|
+
"name": "param",
|
|
986
|
+
"text": "options - Service removal options"
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
"name": "returns",
|
|
990
|
+
"text": "Promise that resolves when the service is removed"
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
"name": "since",
|
|
994
|
+
"text": "8.2.0"
|
|
995
|
+
}
|
|
996
|
+
],
|
|
997
|
+
"docs": "Remove a GATT service from the local GATT server.",
|
|
998
|
+
"complexTypes": [
|
|
999
|
+
"RemoveGattServiceOptions"
|
|
1000
|
+
],
|
|
1001
|
+
"slug": "removegattservice"
|
|
1002
|
+
},
|
|
1003
|
+
{
|
|
1004
|
+
"name": "setGattCharacteristicValue",
|
|
1005
|
+
"signature": "(options: SetGattCharacteristicValueOptions) => Promise<void>",
|
|
1006
|
+
"parameters": [
|
|
1007
|
+
{
|
|
1008
|
+
"name": "options",
|
|
1009
|
+
"docs": "- Characteristic value options",
|
|
1010
|
+
"type": "SetGattCharacteristicValueOptions"
|
|
1011
|
+
}
|
|
1012
|
+
],
|
|
1013
|
+
"returns": "Promise<void>",
|
|
1014
|
+
"tags": [
|
|
1015
|
+
{
|
|
1016
|
+
"name": "param",
|
|
1017
|
+
"text": "options - Characteristic value options"
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
"name": "returns",
|
|
1021
|
+
"text": "Promise that resolves when the value is set"
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
"name": "since",
|
|
1025
|
+
"text": "8.2.0"
|
|
1026
|
+
}
|
|
1027
|
+
],
|
|
1028
|
+
"docs": "Set the value of a local GATT characteristic.",
|
|
1029
|
+
"complexTypes": [
|
|
1030
|
+
"SetGattCharacteristicValueOptions"
|
|
1031
|
+
],
|
|
1032
|
+
"slug": "setgattcharacteristicvalue"
|
|
1033
|
+
},
|
|
1034
|
+
{
|
|
1035
|
+
"name": "notifyGattCharacteristicChanged",
|
|
1036
|
+
"signature": "(options: NotifyGattCharacteristicChangedOptions) => Promise<void>",
|
|
1037
|
+
"parameters": [
|
|
1038
|
+
{
|
|
1039
|
+
"name": "options",
|
|
1040
|
+
"docs": "- Notification options",
|
|
1041
|
+
"type": "NotifyGattCharacteristicChangedOptions"
|
|
1042
|
+
}
|
|
1043
|
+
],
|
|
1044
|
+
"returns": "Promise<void>",
|
|
1045
|
+
"tags": [
|
|
1046
|
+
{
|
|
1047
|
+
"name": "param",
|
|
1048
|
+
"text": "options - Notification options"
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
"name": "returns",
|
|
1052
|
+
"text": "Promise that resolves when the notification is sent"
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
"name": "since",
|
|
1056
|
+
"text": "8.2.0"
|
|
1057
|
+
}
|
|
1058
|
+
],
|
|
1059
|
+
"docs": "Notify connected centrals that a local GATT characteristic value changed.",
|
|
1060
|
+
"complexTypes": [
|
|
1061
|
+
"NotifyGattCharacteristicChangedOptions"
|
|
1062
|
+
],
|
|
1063
|
+
"slug": "notifygattcharacteristicchanged"
|
|
1064
|
+
},
|
|
937
1065
|
{
|
|
938
1066
|
"name": "startForegroundService",
|
|
939
1067
|
"signature": "(options: StartForegroundServiceOptions) => Promise<void>",
|
|
@@ -1181,6 +1309,170 @@
|
|
|
1181
1309
|
],
|
|
1182
1310
|
"slug": "addlistenercharacteristicchanged-"
|
|
1183
1311
|
},
|
|
1312
|
+
{
|
|
1313
|
+
"name": "addListener",
|
|
1314
|
+
"signature": "(eventName: 'centralConnected', listenerFunc: (event: CentralConnectedEvent) => void) => Promise<PluginListenerHandle>",
|
|
1315
|
+
"parameters": [
|
|
1316
|
+
{
|
|
1317
|
+
"name": "eventName",
|
|
1318
|
+
"docs": "- The event name",
|
|
1319
|
+
"type": "'centralConnected'"
|
|
1320
|
+
},
|
|
1321
|
+
{
|
|
1322
|
+
"name": "listenerFunc",
|
|
1323
|
+
"docs": "- The listener function",
|
|
1324
|
+
"type": "(event: CentralConnectedEvent) => void"
|
|
1325
|
+
}
|
|
1326
|
+
],
|
|
1327
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
1328
|
+
"tags": [
|
|
1329
|
+
{
|
|
1330
|
+
"name": "param",
|
|
1331
|
+
"text": "eventName - The event name"
|
|
1332
|
+
},
|
|
1333
|
+
{
|
|
1334
|
+
"name": "param",
|
|
1335
|
+
"text": "listenerFunc - The listener function"
|
|
1336
|
+
},
|
|
1337
|
+
{
|
|
1338
|
+
"name": "returns",
|
|
1339
|
+
"text": "Promise that resolves with a handle to remove the listener"
|
|
1340
|
+
},
|
|
1341
|
+
{
|
|
1342
|
+
"name": "since",
|
|
1343
|
+
"text": "8.2.0"
|
|
1344
|
+
}
|
|
1345
|
+
],
|
|
1346
|
+
"docs": "Add a listener for central connected events (peripheral mode).",
|
|
1347
|
+
"complexTypes": [
|
|
1348
|
+
"PluginListenerHandle",
|
|
1349
|
+
"CentralConnectedEvent"
|
|
1350
|
+
],
|
|
1351
|
+
"slug": "addlistenercentralconnected-"
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
"name": "addListener",
|
|
1355
|
+
"signature": "(eventName: 'centralDisconnected', listenerFunc: (event: CentralDisconnectedEvent) => void) => Promise<PluginListenerHandle>",
|
|
1356
|
+
"parameters": [
|
|
1357
|
+
{
|
|
1358
|
+
"name": "eventName",
|
|
1359
|
+
"docs": "- The event name",
|
|
1360
|
+
"type": "'centralDisconnected'"
|
|
1361
|
+
},
|
|
1362
|
+
{
|
|
1363
|
+
"name": "listenerFunc",
|
|
1364
|
+
"docs": "- The listener function",
|
|
1365
|
+
"type": "(event: CentralDisconnectedEvent) => void"
|
|
1366
|
+
}
|
|
1367
|
+
],
|
|
1368
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
1369
|
+
"tags": [
|
|
1370
|
+
{
|
|
1371
|
+
"name": "param",
|
|
1372
|
+
"text": "eventName - The event name"
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
"name": "param",
|
|
1376
|
+
"text": "listenerFunc - The listener function"
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
"name": "returns",
|
|
1380
|
+
"text": "Promise that resolves with a handle to remove the listener"
|
|
1381
|
+
},
|
|
1382
|
+
{
|
|
1383
|
+
"name": "since",
|
|
1384
|
+
"text": "8.2.0"
|
|
1385
|
+
}
|
|
1386
|
+
],
|
|
1387
|
+
"docs": "Add a listener for central disconnected events (peripheral mode).",
|
|
1388
|
+
"complexTypes": [
|
|
1389
|
+
"PluginListenerHandle",
|
|
1390
|
+
"CentralDisconnectedEvent"
|
|
1391
|
+
],
|
|
1392
|
+
"slug": "addlistenercentraldisconnected-"
|
|
1393
|
+
},
|
|
1394
|
+
{
|
|
1395
|
+
"name": "addListener",
|
|
1396
|
+
"signature": "(eventName: 'gattCharacteristicReadRequest', listenerFunc: (event: GattCharacteristicReadRequestEvent) => void) => Promise<PluginListenerHandle>",
|
|
1397
|
+
"parameters": [
|
|
1398
|
+
{
|
|
1399
|
+
"name": "eventName",
|
|
1400
|
+
"docs": "- The event name",
|
|
1401
|
+
"type": "'gattCharacteristicReadRequest'"
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
"name": "listenerFunc",
|
|
1405
|
+
"docs": "- The listener function",
|
|
1406
|
+
"type": "(event: GattCharacteristicReadRequestEvent) => void"
|
|
1407
|
+
}
|
|
1408
|
+
],
|
|
1409
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
1410
|
+
"tags": [
|
|
1411
|
+
{
|
|
1412
|
+
"name": "param",
|
|
1413
|
+
"text": "eventName - The event name"
|
|
1414
|
+
},
|
|
1415
|
+
{
|
|
1416
|
+
"name": "param",
|
|
1417
|
+
"text": "listenerFunc - The listener function"
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
"name": "returns",
|
|
1421
|
+
"text": "Promise that resolves with a handle to remove the listener"
|
|
1422
|
+
},
|
|
1423
|
+
{
|
|
1424
|
+
"name": "since",
|
|
1425
|
+
"text": "8.2.0"
|
|
1426
|
+
}
|
|
1427
|
+
],
|
|
1428
|
+
"docs": "Add a listener for GATT characteristic read requests (peripheral mode).",
|
|
1429
|
+
"complexTypes": [
|
|
1430
|
+
"PluginListenerHandle",
|
|
1431
|
+
"GattCharacteristicReadRequestEvent"
|
|
1432
|
+
],
|
|
1433
|
+
"slug": "addlistenergattcharacteristicreadrequest-"
|
|
1434
|
+
},
|
|
1435
|
+
{
|
|
1436
|
+
"name": "addListener",
|
|
1437
|
+
"signature": "(eventName: 'gattCharacteristicWriteRequest', listenerFunc: (event: GattCharacteristicWriteRequestEvent) => void) => Promise<PluginListenerHandle>",
|
|
1438
|
+
"parameters": [
|
|
1439
|
+
{
|
|
1440
|
+
"name": "eventName",
|
|
1441
|
+
"docs": "- The event name",
|
|
1442
|
+
"type": "'gattCharacteristicWriteRequest'"
|
|
1443
|
+
},
|
|
1444
|
+
{
|
|
1445
|
+
"name": "listenerFunc",
|
|
1446
|
+
"docs": "- The listener function",
|
|
1447
|
+
"type": "(event: GattCharacteristicWriteRequestEvent) => void"
|
|
1448
|
+
}
|
|
1449
|
+
],
|
|
1450
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
1451
|
+
"tags": [
|
|
1452
|
+
{
|
|
1453
|
+
"name": "param",
|
|
1454
|
+
"text": "eventName - The event name"
|
|
1455
|
+
},
|
|
1456
|
+
{
|
|
1457
|
+
"name": "param",
|
|
1458
|
+
"text": "listenerFunc - The listener function"
|
|
1459
|
+
},
|
|
1460
|
+
{
|
|
1461
|
+
"name": "returns",
|
|
1462
|
+
"text": "Promise that resolves with a handle to remove the listener"
|
|
1463
|
+
},
|
|
1464
|
+
{
|
|
1465
|
+
"name": "since",
|
|
1466
|
+
"text": "8.2.0"
|
|
1467
|
+
}
|
|
1468
|
+
],
|
|
1469
|
+
"docs": "Add a listener for GATT characteristic write requests (peripheral mode).",
|
|
1470
|
+
"complexTypes": [
|
|
1471
|
+
"PluginListenerHandle",
|
|
1472
|
+
"GattCharacteristicWriteRequestEvent"
|
|
1473
|
+
],
|
|
1474
|
+
"slug": "addlistenergattcharacteristicwriterequest-"
|
|
1475
|
+
},
|
|
1184
1476
|
{
|
|
1185
1477
|
"name": "removeAllListeners",
|
|
1186
1478
|
"signature": "() => Promise<void>",
|
|
@@ -2627,62 +2919,344 @@
|
|
|
2627
2919
|
]
|
|
2628
2920
|
},
|
|
2629
2921
|
{
|
|
2630
|
-
"name": "
|
|
2631
|
-
"slug": "
|
|
2632
|
-
"docs": "Options for
|
|
2922
|
+
"name": "AddGattServiceOptions",
|
|
2923
|
+
"slug": "addgattserviceoptions",
|
|
2924
|
+
"docs": "Options for adding a GATT service.",
|
|
2633
2925
|
"tags": [
|
|
2634
2926
|
{
|
|
2635
|
-
"text": "
|
|
2927
|
+
"text": "8.2.0",
|
|
2636
2928
|
"name": "since"
|
|
2637
2929
|
}
|
|
2638
2930
|
],
|
|
2639
2931
|
"methods": [],
|
|
2640
2932
|
"properties": [
|
|
2641
2933
|
{
|
|
2642
|
-
"name": "
|
|
2934
|
+
"name": "service",
|
|
2643
2935
|
"tags": [
|
|
2644
2936
|
{
|
|
2645
|
-
"text": "
|
|
2937
|
+
"text": "8.2.0",
|
|
2646
2938
|
"name": "since"
|
|
2647
2939
|
}
|
|
2648
2940
|
],
|
|
2649
|
-
"docs": "The
|
|
2941
|
+
"docs": "The service UUID.",
|
|
2650
2942
|
"complexTypes": [],
|
|
2651
2943
|
"type": "string"
|
|
2652
2944
|
},
|
|
2653
2945
|
{
|
|
2654
|
-
"name": "
|
|
2946
|
+
"name": "characteristics",
|
|
2655
2947
|
"tags": [
|
|
2656
2948
|
{
|
|
2657
|
-
"text": "
|
|
2949
|
+
"text": "8.2.0",
|
|
2658
2950
|
"name": "since"
|
|
2659
2951
|
}
|
|
2660
2952
|
],
|
|
2661
|
-
"docs": "
|
|
2662
|
-
"complexTypes": [
|
|
2663
|
-
|
|
2664
|
-
},
|
|
2665
|
-
{
|
|
2666
|
-
"name": "smallIcon",
|
|
2667
|
-
"tags": [
|
|
2668
|
-
{
|
|
2669
|
-
"text": "1.0.0",
|
|
2670
|
-
"name": "since"
|
|
2671
|
-
}
|
|
2953
|
+
"docs": "Characteristics to expose in this service.",
|
|
2954
|
+
"complexTypes": [
|
|
2955
|
+
"GattCharacteristicDefinition"
|
|
2672
2956
|
],
|
|
2673
|
-
"
|
|
2674
|
-
"complexTypes": [],
|
|
2675
|
-
"type": "string | undefined"
|
|
2957
|
+
"type": "GattCharacteristicDefinition[]"
|
|
2676
2958
|
}
|
|
2677
2959
|
]
|
|
2678
2960
|
},
|
|
2679
2961
|
{
|
|
2680
|
-
"name": "
|
|
2681
|
-
"slug": "
|
|
2682
|
-
"docs": "
|
|
2962
|
+
"name": "GattCharacteristicDefinition",
|
|
2963
|
+
"slug": "gattcharacteristicdefinition",
|
|
2964
|
+
"docs": "A GATT characteristic definition for the local GATT server.",
|
|
2683
2965
|
"tags": [
|
|
2684
2966
|
{
|
|
2685
|
-
"text": "
|
|
2967
|
+
"text": "8.2.0",
|
|
2968
|
+
"name": "since"
|
|
2969
|
+
}
|
|
2970
|
+
],
|
|
2971
|
+
"methods": [],
|
|
2972
|
+
"properties": [
|
|
2973
|
+
{
|
|
2974
|
+
"name": "uuid",
|
|
2975
|
+
"tags": [
|
|
2976
|
+
{
|
|
2977
|
+
"text": "8.2.0",
|
|
2978
|
+
"name": "since"
|
|
2979
|
+
}
|
|
2980
|
+
],
|
|
2981
|
+
"docs": "The characteristic UUID.",
|
|
2982
|
+
"complexTypes": [],
|
|
2983
|
+
"type": "string"
|
|
2984
|
+
},
|
|
2985
|
+
{
|
|
2986
|
+
"name": "properties",
|
|
2987
|
+
"tags": [
|
|
2988
|
+
{
|
|
2989
|
+
"text": "8.2.0",
|
|
2990
|
+
"name": "since"
|
|
2991
|
+
}
|
|
2992
|
+
],
|
|
2993
|
+
"docs": "Properties of this characteristic.",
|
|
2994
|
+
"complexTypes": [
|
|
2995
|
+
"CharacteristicProperties"
|
|
2996
|
+
],
|
|
2997
|
+
"type": "CharacteristicProperties"
|
|
2998
|
+
},
|
|
2999
|
+
{
|
|
3000
|
+
"name": "value",
|
|
3001
|
+
"tags": [
|
|
3002
|
+
{
|
|
3003
|
+
"text": "8.2.0",
|
|
3004
|
+
"name": "since"
|
|
3005
|
+
}
|
|
3006
|
+
],
|
|
3007
|
+
"docs": "Initial value as an array of bytes.",
|
|
3008
|
+
"complexTypes": [],
|
|
3009
|
+
"type": "number[] | undefined"
|
|
3010
|
+
},
|
|
3011
|
+
{
|
|
3012
|
+
"name": "descriptors",
|
|
3013
|
+
"tags": [
|
|
3014
|
+
{
|
|
3015
|
+
"text": "8.2.0",
|
|
3016
|
+
"name": "since"
|
|
3017
|
+
}
|
|
3018
|
+
],
|
|
3019
|
+
"docs": "Optional descriptors for this characteristic.",
|
|
3020
|
+
"complexTypes": [
|
|
3021
|
+
"GattDescriptorDefinition"
|
|
3022
|
+
],
|
|
3023
|
+
"type": "GattDescriptorDefinition[] | undefined"
|
|
3024
|
+
}
|
|
3025
|
+
]
|
|
3026
|
+
},
|
|
3027
|
+
{
|
|
3028
|
+
"name": "GattDescriptorDefinition",
|
|
3029
|
+
"slug": "gattdescriptordefinition",
|
|
3030
|
+
"docs": "A GATT descriptor definition for the local GATT server.",
|
|
3031
|
+
"tags": [
|
|
3032
|
+
{
|
|
3033
|
+
"text": "8.2.0",
|
|
3034
|
+
"name": "since"
|
|
3035
|
+
}
|
|
3036
|
+
],
|
|
3037
|
+
"methods": [],
|
|
3038
|
+
"properties": [
|
|
3039
|
+
{
|
|
3040
|
+
"name": "uuid",
|
|
3041
|
+
"tags": [
|
|
3042
|
+
{
|
|
3043
|
+
"text": "8.2.0",
|
|
3044
|
+
"name": "since"
|
|
3045
|
+
}
|
|
3046
|
+
],
|
|
3047
|
+
"docs": "The descriptor UUID.",
|
|
3048
|
+
"complexTypes": [],
|
|
3049
|
+
"type": "string"
|
|
3050
|
+
},
|
|
3051
|
+
{
|
|
3052
|
+
"name": "value",
|
|
3053
|
+
"tags": [
|
|
3054
|
+
{
|
|
3055
|
+
"text": "8.2.0",
|
|
3056
|
+
"name": "since"
|
|
3057
|
+
}
|
|
3058
|
+
],
|
|
3059
|
+
"docs": "Initial value as an array of bytes.",
|
|
3060
|
+
"complexTypes": [],
|
|
3061
|
+
"type": "number[] | undefined"
|
|
3062
|
+
}
|
|
3063
|
+
]
|
|
3064
|
+
},
|
|
3065
|
+
{
|
|
3066
|
+
"name": "RemoveGattServiceOptions",
|
|
3067
|
+
"slug": "removegattserviceoptions",
|
|
3068
|
+
"docs": "Options for removing a GATT service.",
|
|
3069
|
+
"tags": [
|
|
3070
|
+
{
|
|
3071
|
+
"text": "8.2.0",
|
|
3072
|
+
"name": "since"
|
|
3073
|
+
}
|
|
3074
|
+
],
|
|
3075
|
+
"methods": [],
|
|
3076
|
+
"properties": [
|
|
3077
|
+
{
|
|
3078
|
+
"name": "service",
|
|
3079
|
+
"tags": [
|
|
3080
|
+
{
|
|
3081
|
+
"text": "8.2.0",
|
|
3082
|
+
"name": "since"
|
|
3083
|
+
}
|
|
3084
|
+
],
|
|
3085
|
+
"docs": "The service UUID.",
|
|
3086
|
+
"complexTypes": [],
|
|
3087
|
+
"type": "string"
|
|
3088
|
+
}
|
|
3089
|
+
]
|
|
3090
|
+
},
|
|
3091
|
+
{
|
|
3092
|
+
"name": "SetGattCharacteristicValueOptions",
|
|
3093
|
+
"slug": "setgattcharacteristicvalueoptions",
|
|
3094
|
+
"docs": "Options for setting a local GATT characteristic value.",
|
|
3095
|
+
"tags": [
|
|
3096
|
+
{
|
|
3097
|
+
"text": "8.2.0",
|
|
3098
|
+
"name": "since"
|
|
3099
|
+
}
|
|
3100
|
+
],
|
|
3101
|
+
"methods": [],
|
|
3102
|
+
"properties": [
|
|
3103
|
+
{
|
|
3104
|
+
"name": "service",
|
|
3105
|
+
"tags": [
|
|
3106
|
+
{
|
|
3107
|
+
"text": "8.2.0",
|
|
3108
|
+
"name": "since"
|
|
3109
|
+
}
|
|
3110
|
+
],
|
|
3111
|
+
"docs": "The service UUID.",
|
|
3112
|
+
"complexTypes": [],
|
|
3113
|
+
"type": "string"
|
|
3114
|
+
},
|
|
3115
|
+
{
|
|
3116
|
+
"name": "characteristic",
|
|
3117
|
+
"tags": [
|
|
3118
|
+
{
|
|
3119
|
+
"text": "8.2.0",
|
|
3120
|
+
"name": "since"
|
|
3121
|
+
}
|
|
3122
|
+
],
|
|
3123
|
+
"docs": "The characteristic UUID.",
|
|
3124
|
+
"complexTypes": [],
|
|
3125
|
+
"type": "string"
|
|
3126
|
+
},
|
|
3127
|
+
{
|
|
3128
|
+
"name": "value",
|
|
3129
|
+
"tags": [
|
|
3130
|
+
{
|
|
3131
|
+
"text": "8.2.0",
|
|
3132
|
+
"name": "since"
|
|
3133
|
+
}
|
|
3134
|
+
],
|
|
3135
|
+
"docs": "The value as an array of bytes.",
|
|
3136
|
+
"complexTypes": [],
|
|
3137
|
+
"type": "number[]"
|
|
3138
|
+
}
|
|
3139
|
+
]
|
|
3140
|
+
},
|
|
3141
|
+
{
|
|
3142
|
+
"name": "NotifyGattCharacteristicChangedOptions",
|
|
3143
|
+
"slug": "notifygattcharacteristicchangedoptions",
|
|
3144
|
+
"docs": "Options for notifying connected centrals of a characteristic change.",
|
|
3145
|
+
"tags": [
|
|
3146
|
+
{
|
|
3147
|
+
"text": "8.2.0",
|
|
3148
|
+
"name": "since"
|
|
3149
|
+
}
|
|
3150
|
+
],
|
|
3151
|
+
"methods": [],
|
|
3152
|
+
"properties": [
|
|
3153
|
+
{
|
|
3154
|
+
"name": "service",
|
|
3155
|
+
"tags": [
|
|
3156
|
+
{
|
|
3157
|
+
"text": "8.2.0",
|
|
3158
|
+
"name": "since"
|
|
3159
|
+
}
|
|
3160
|
+
],
|
|
3161
|
+
"docs": "The service UUID.",
|
|
3162
|
+
"complexTypes": [],
|
|
3163
|
+
"type": "string"
|
|
3164
|
+
},
|
|
3165
|
+
{
|
|
3166
|
+
"name": "characteristic",
|
|
3167
|
+
"tags": [
|
|
3168
|
+
{
|
|
3169
|
+
"text": "8.2.0",
|
|
3170
|
+
"name": "since"
|
|
3171
|
+
}
|
|
3172
|
+
],
|
|
3173
|
+
"docs": "The characteristic UUID.",
|
|
3174
|
+
"complexTypes": [],
|
|
3175
|
+
"type": "string"
|
|
3176
|
+
},
|
|
3177
|
+
{
|
|
3178
|
+
"name": "value",
|
|
3179
|
+
"tags": [
|
|
3180
|
+
{
|
|
3181
|
+
"text": "8.2.0",
|
|
3182
|
+
"name": "since"
|
|
3183
|
+
}
|
|
3184
|
+
],
|
|
3185
|
+
"docs": "The value as an array of bytes.",
|
|
3186
|
+
"complexTypes": [],
|
|
3187
|
+
"type": "number[]"
|
|
3188
|
+
},
|
|
3189
|
+
{
|
|
3190
|
+
"name": "deviceId",
|
|
3191
|
+
"tags": [
|
|
3192
|
+
{
|
|
3193
|
+
"text": "8.2.0",
|
|
3194
|
+
"name": "since"
|
|
3195
|
+
}
|
|
3196
|
+
],
|
|
3197
|
+
"docs": "Optional central device ID. When omitted, all subscribed centrals are notified.",
|
|
3198
|
+
"complexTypes": [],
|
|
3199
|
+
"type": "string | undefined"
|
|
3200
|
+
}
|
|
3201
|
+
]
|
|
3202
|
+
},
|
|
3203
|
+
{
|
|
3204
|
+
"name": "StartForegroundServiceOptions",
|
|
3205
|
+
"slug": "startforegroundserviceoptions",
|
|
3206
|
+
"docs": "Options for starting the foreground service.",
|
|
3207
|
+
"tags": [
|
|
3208
|
+
{
|
|
3209
|
+
"text": "1.0.0",
|
|
3210
|
+
"name": "since"
|
|
3211
|
+
}
|
|
3212
|
+
],
|
|
3213
|
+
"methods": [],
|
|
3214
|
+
"properties": [
|
|
3215
|
+
{
|
|
3216
|
+
"name": "title",
|
|
3217
|
+
"tags": [
|
|
3218
|
+
{
|
|
3219
|
+
"text": "1.0.0",
|
|
3220
|
+
"name": "since"
|
|
3221
|
+
}
|
|
3222
|
+
],
|
|
3223
|
+
"docs": "The notification title.",
|
|
3224
|
+
"complexTypes": [],
|
|
3225
|
+
"type": "string"
|
|
3226
|
+
},
|
|
3227
|
+
{
|
|
3228
|
+
"name": "body",
|
|
3229
|
+
"tags": [
|
|
3230
|
+
{
|
|
3231
|
+
"text": "1.0.0",
|
|
3232
|
+
"name": "since"
|
|
3233
|
+
}
|
|
3234
|
+
],
|
|
3235
|
+
"docs": "The notification body.",
|
|
3236
|
+
"complexTypes": [],
|
|
3237
|
+
"type": "string"
|
|
3238
|
+
},
|
|
3239
|
+
{
|
|
3240
|
+
"name": "smallIcon",
|
|
3241
|
+
"tags": [
|
|
3242
|
+
{
|
|
3243
|
+
"text": "1.0.0",
|
|
3244
|
+
"name": "since"
|
|
3245
|
+
}
|
|
3246
|
+
],
|
|
3247
|
+
"docs": "The notification small icon resource name.",
|
|
3248
|
+
"complexTypes": [],
|
|
3249
|
+
"type": "string | undefined"
|
|
3250
|
+
}
|
|
3251
|
+
]
|
|
3252
|
+
},
|
|
3253
|
+
{
|
|
3254
|
+
"name": "GetPluginVersionResult",
|
|
3255
|
+
"slug": "getpluginversionresult",
|
|
3256
|
+
"docs": "Result of getPluginVersion.",
|
|
3257
|
+
"tags": [
|
|
3258
|
+
{
|
|
3259
|
+
"text": "1.0.0",
|
|
2686
3260
|
"name": "since"
|
|
2687
3261
|
}
|
|
2688
3262
|
],
|
|
@@ -2859,6 +3433,170 @@
|
|
|
2859
3433
|
"type": "number[]"
|
|
2860
3434
|
}
|
|
2861
3435
|
]
|
|
3436
|
+
},
|
|
3437
|
+
{
|
|
3438
|
+
"name": "CentralConnectedEvent",
|
|
3439
|
+
"slug": "centralconnectedevent",
|
|
3440
|
+
"docs": "Event emitted when a central connects to the local GATT server.",
|
|
3441
|
+
"tags": [
|
|
3442
|
+
{
|
|
3443
|
+
"text": "8.2.0",
|
|
3444
|
+
"name": "since"
|
|
3445
|
+
}
|
|
3446
|
+
],
|
|
3447
|
+
"methods": [],
|
|
3448
|
+
"properties": [
|
|
3449
|
+
{
|
|
3450
|
+
"name": "deviceId",
|
|
3451
|
+
"tags": [
|
|
3452
|
+
{
|
|
3453
|
+
"text": "8.2.0",
|
|
3454
|
+
"name": "since"
|
|
3455
|
+
}
|
|
3456
|
+
],
|
|
3457
|
+
"docs": "The central device ID.",
|
|
3458
|
+
"complexTypes": [],
|
|
3459
|
+
"type": "string"
|
|
3460
|
+
}
|
|
3461
|
+
]
|
|
3462
|
+
},
|
|
3463
|
+
{
|
|
3464
|
+
"name": "CentralDisconnectedEvent",
|
|
3465
|
+
"slug": "centraldisconnectedevent",
|
|
3466
|
+
"docs": "Event emitted when a central disconnects from the local GATT server.",
|
|
3467
|
+
"tags": [
|
|
3468
|
+
{
|
|
3469
|
+
"text": "8.2.0",
|
|
3470
|
+
"name": "since"
|
|
3471
|
+
}
|
|
3472
|
+
],
|
|
3473
|
+
"methods": [],
|
|
3474
|
+
"properties": [
|
|
3475
|
+
{
|
|
3476
|
+
"name": "deviceId",
|
|
3477
|
+
"tags": [
|
|
3478
|
+
{
|
|
3479
|
+
"text": "8.2.0",
|
|
3480
|
+
"name": "since"
|
|
3481
|
+
}
|
|
3482
|
+
],
|
|
3483
|
+
"docs": "The central device ID.",
|
|
3484
|
+
"complexTypes": [],
|
|
3485
|
+
"type": "string"
|
|
3486
|
+
}
|
|
3487
|
+
]
|
|
3488
|
+
},
|
|
3489
|
+
{
|
|
3490
|
+
"name": "GattCharacteristicReadRequestEvent",
|
|
3491
|
+
"slug": "gattcharacteristicreadrequestevent",
|
|
3492
|
+
"docs": "Event emitted when a central reads a local GATT characteristic.",
|
|
3493
|
+
"tags": [
|
|
3494
|
+
{
|
|
3495
|
+
"text": "8.2.0",
|
|
3496
|
+
"name": "since"
|
|
3497
|
+
}
|
|
3498
|
+
],
|
|
3499
|
+
"methods": [],
|
|
3500
|
+
"properties": [
|
|
3501
|
+
{
|
|
3502
|
+
"name": "deviceId",
|
|
3503
|
+
"tags": [
|
|
3504
|
+
{
|
|
3505
|
+
"text": "8.2.0",
|
|
3506
|
+
"name": "since"
|
|
3507
|
+
}
|
|
3508
|
+
],
|
|
3509
|
+
"docs": "The central device ID.",
|
|
3510
|
+
"complexTypes": [],
|
|
3511
|
+
"type": "string"
|
|
3512
|
+
},
|
|
3513
|
+
{
|
|
3514
|
+
"name": "service",
|
|
3515
|
+
"tags": [
|
|
3516
|
+
{
|
|
3517
|
+
"text": "8.2.0",
|
|
3518
|
+
"name": "since"
|
|
3519
|
+
}
|
|
3520
|
+
],
|
|
3521
|
+
"docs": "The service UUID.",
|
|
3522
|
+
"complexTypes": [],
|
|
3523
|
+
"type": "string"
|
|
3524
|
+
},
|
|
3525
|
+
{
|
|
3526
|
+
"name": "characteristic",
|
|
3527
|
+
"tags": [
|
|
3528
|
+
{
|
|
3529
|
+
"text": "8.2.0",
|
|
3530
|
+
"name": "since"
|
|
3531
|
+
}
|
|
3532
|
+
],
|
|
3533
|
+
"docs": "The characteristic UUID.",
|
|
3534
|
+
"complexTypes": [],
|
|
3535
|
+
"type": "string"
|
|
3536
|
+
}
|
|
3537
|
+
]
|
|
3538
|
+
},
|
|
3539
|
+
{
|
|
3540
|
+
"name": "GattCharacteristicWriteRequestEvent",
|
|
3541
|
+
"slug": "gattcharacteristicwriterequestevent",
|
|
3542
|
+
"docs": "Event emitted when a central writes to a local GATT characteristic.",
|
|
3543
|
+
"tags": [
|
|
3544
|
+
{
|
|
3545
|
+
"text": "8.2.0",
|
|
3546
|
+
"name": "since"
|
|
3547
|
+
}
|
|
3548
|
+
],
|
|
3549
|
+
"methods": [],
|
|
3550
|
+
"properties": [
|
|
3551
|
+
{
|
|
3552
|
+
"name": "deviceId",
|
|
3553
|
+
"tags": [
|
|
3554
|
+
{
|
|
3555
|
+
"text": "8.2.0",
|
|
3556
|
+
"name": "since"
|
|
3557
|
+
}
|
|
3558
|
+
],
|
|
3559
|
+
"docs": "The central device ID.",
|
|
3560
|
+
"complexTypes": [],
|
|
3561
|
+
"type": "string"
|
|
3562
|
+
},
|
|
3563
|
+
{
|
|
3564
|
+
"name": "service",
|
|
3565
|
+
"tags": [
|
|
3566
|
+
{
|
|
3567
|
+
"text": "8.2.0",
|
|
3568
|
+
"name": "since"
|
|
3569
|
+
}
|
|
3570
|
+
],
|
|
3571
|
+
"docs": "The service UUID.",
|
|
3572
|
+
"complexTypes": [],
|
|
3573
|
+
"type": "string"
|
|
3574
|
+
},
|
|
3575
|
+
{
|
|
3576
|
+
"name": "characteristic",
|
|
3577
|
+
"tags": [
|
|
3578
|
+
{
|
|
3579
|
+
"text": "8.2.0",
|
|
3580
|
+
"name": "since"
|
|
3581
|
+
}
|
|
3582
|
+
],
|
|
3583
|
+
"docs": "The characteristic UUID.",
|
|
3584
|
+
"complexTypes": [],
|
|
3585
|
+
"type": "string"
|
|
3586
|
+
},
|
|
3587
|
+
{
|
|
3588
|
+
"name": "value",
|
|
3589
|
+
"tags": [
|
|
3590
|
+
{
|
|
3591
|
+
"text": "8.2.0",
|
|
3592
|
+
"name": "since"
|
|
3593
|
+
}
|
|
3594
|
+
],
|
|
3595
|
+
"docs": "The written value as an array of bytes.",
|
|
3596
|
+
"complexTypes": [],
|
|
3597
|
+
"type": "number[]"
|
|
3598
|
+
}
|
|
3599
|
+
]
|
|
2862
3600
|
}
|
|
2863
3601
|
],
|
|
2864
3602
|
"enums": [],
|