winrt-Windows.Devices.Bluetooth 2.2.0__cp313-cp313-win_amd64.whl

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.
@@ -0,0 +1,444 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.devices.bluetooth.genericattributeprofile as windows_devices_bluetooth_genericattributeprofile
13
+ import winrt.windows.devices.bluetooth.rfcomm as windows_devices_bluetooth_rfcomm
14
+ import winrt.windows.devices.enumeration as windows_devices_enumeration
15
+ import winrt.windows.devices.radios as windows_devices_radios
16
+ import winrt.windows.foundation as windows_foundation
17
+ import winrt.windows.foundation.collections as windows_foundation_collections
18
+ import winrt.windows.networking as windows_networking
19
+ import winrt.windows.storage.streams as windows_storage_streams
20
+
21
+ from winrt.windows.devices.bluetooth import BluetoothAddressType, BluetoothCacheMode, BluetoothConnectionStatus, BluetoothError, BluetoothLEPreferredConnectionParametersRequestStatus, BluetoothMajorClass, BluetoothMinorClass, BluetoothServiceCapabilities
22
+
23
+ Self = typing.TypeVar('Self')
24
+
25
+ @typing.final
26
+ class BluetoothAdapter_Static(type):
27
+ def from_id_async(cls, device_id: str, /) -> windows_foundation.IAsyncOperation[BluetoothAdapter]: ...
28
+ def get_default_async(cls) -> windows_foundation.IAsyncOperation[BluetoothAdapter]: ...
29
+ def get_device_selector(cls) -> str: ...
30
+
31
+ @typing.final
32
+ class BluetoothAdapter(winrt.system.Object, metaclass=BluetoothAdapter_Static):
33
+ @staticmethod
34
+ def _from(obj: winrt.system.Object, /) -> BluetoothAdapter: ...
35
+ def get_radio_async(self) -> windows_foundation.IAsyncOperation[windows_devices_radios.Radio]: ...
36
+ @_property
37
+ def bluetooth_address(self) -> winrt.system.UInt64: ...
38
+ @_property
39
+ def device_id(self) -> str: ...
40
+ @_property
41
+ def is_advertisement_offload_supported(self) -> bool: ...
42
+ @_property
43
+ def is_central_role_supported(self) -> bool: ...
44
+ @_property
45
+ def is_classic_supported(self) -> bool: ...
46
+ @_property
47
+ def is_low_energy_supported(self) -> bool: ...
48
+ @_property
49
+ def is_peripheral_role_supported(self) -> bool: ...
50
+ @_property
51
+ def are_classic_secure_connections_supported(self) -> bool: ...
52
+ @_property
53
+ def are_low_energy_secure_connections_supported(self) -> bool: ...
54
+ @_property
55
+ def is_extended_advertising_supported(self) -> bool: ...
56
+ @_property
57
+ def max_advertisement_data_length(self) -> winrt.system.UInt32: ...
58
+
59
+ @typing.final
60
+ class BluetoothClassOfDevice_Static(type):
61
+ def from_parts(cls, major_class: BluetoothMajorClass, minor_class: BluetoothMinorClass, service_capabilities: BluetoothServiceCapabilities, /) -> typing.Optional[BluetoothClassOfDevice]: ...
62
+ def from_raw_value(cls, raw_value: winrt.system.UInt32, /) -> typing.Optional[BluetoothClassOfDevice]: ...
63
+
64
+ @typing.final
65
+ class BluetoothClassOfDevice(winrt.system.Object, metaclass=BluetoothClassOfDevice_Static):
66
+ @staticmethod
67
+ def _from(obj: winrt.system.Object, /) -> BluetoothClassOfDevice: ...
68
+ @_property
69
+ def major_class(self) -> BluetoothMajorClass: ...
70
+ @_property
71
+ def minor_class(self) -> BluetoothMinorClass: ...
72
+ @_property
73
+ def raw_value(self) -> winrt.system.UInt32: ...
74
+ @_property
75
+ def service_capabilities(self) -> BluetoothServiceCapabilities: ...
76
+
77
+ @typing.final
78
+ class BluetoothDevice_Static(type):
79
+ def from_bluetooth_address_async(cls, address: winrt.system.UInt64, /) -> windows_foundation.IAsyncOperation[BluetoothDevice]: ...
80
+ def from_host_name_async(cls, host_name: typing.Optional[windows_networking.HostName], /) -> windows_foundation.IAsyncOperation[BluetoothDevice]: ...
81
+ def from_id_async(cls, device_id: str, /) -> windows_foundation.IAsyncOperation[BluetoothDevice]: ...
82
+ def get_device_selector(cls) -> str: ...
83
+ def get_device_selector_from_bluetooth_address(cls, bluetooth_address: winrt.system.UInt64, /) -> str: ...
84
+ def get_device_selector_from_class_of_device(cls, class_of_device: typing.Optional[BluetoothClassOfDevice], /) -> str: ...
85
+ def get_device_selector_from_connection_status(cls, connection_status: BluetoothConnectionStatus, /) -> str: ...
86
+ def get_device_selector_from_device_name(cls, device_name: str, /) -> str: ...
87
+ def get_device_selector_from_pairing_state(cls, pairing_state: bool, /) -> str: ...
88
+
89
+ @typing.final
90
+ class BluetoothDevice(winrt.system.Object, metaclass=BluetoothDevice_Static):
91
+ def __enter__(self: Self) -> Self: ...
92
+ def __exit__(self, *args) -> None: ...
93
+ @staticmethod
94
+ def _from(obj: winrt.system.Object, /) -> BluetoothDevice: ...
95
+ def close(self) -> None: ...
96
+ @typing.overload
97
+ def get_rfcomm_services_async(self) -> windows_foundation.IAsyncOperation[windows_devices_bluetooth_rfcomm.RfcommDeviceServicesResult]: ...
98
+ @typing.overload
99
+ def get_rfcomm_services_async(self, cache_mode: BluetoothCacheMode, /) -> windows_foundation.IAsyncOperation[windows_devices_bluetooth_rfcomm.RfcommDeviceServicesResult]: ...
100
+ @typing.overload
101
+ def get_rfcomm_services_for_id_async(self, service_id: typing.Optional[windows_devices_bluetooth_rfcomm.RfcommServiceId], /) -> windows_foundation.IAsyncOperation[windows_devices_bluetooth_rfcomm.RfcommDeviceServicesResult]: ...
102
+ @typing.overload
103
+ def get_rfcomm_services_for_id_async(self, service_id: typing.Optional[windows_devices_bluetooth_rfcomm.RfcommServiceId], cache_mode: BluetoothCacheMode, /) -> windows_foundation.IAsyncOperation[windows_devices_bluetooth_rfcomm.RfcommDeviceServicesResult]: ...
104
+ def request_access_async(self) -> windows_foundation.IAsyncOperation[windows_devices_enumeration.DeviceAccessStatus]: ...
105
+ def add_connection_status_changed(self, handler: windows_foundation.TypedEventHandler[BluetoothDevice, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
106
+ def remove_connection_status_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
107
+ def add_name_changed(self, handler: windows_foundation.TypedEventHandler[BluetoothDevice, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
108
+ def remove_name_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
109
+ def add_sdp_records_changed(self, handler: windows_foundation.TypedEventHandler[BluetoothDevice, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
110
+ def remove_sdp_records_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
111
+ @_property
112
+ def bluetooth_address(self) -> winrt.system.UInt64: ...
113
+ @_property
114
+ def class_of_device(self) -> typing.Optional[BluetoothClassOfDevice]: ...
115
+ @_property
116
+ def connection_status(self) -> BluetoothConnectionStatus: ...
117
+ @_property
118
+ def device_id(self) -> str: ...
119
+ @_property
120
+ def host_name(self) -> typing.Optional[windows_networking.HostName]: ...
121
+ @_property
122
+ def name(self) -> str: ...
123
+ @_property
124
+ def rfcomm_services(self) -> typing.Optional[windows_foundation_collections.IVectorView[windows_devices_bluetooth_rfcomm.RfcommDeviceService]]: ...
125
+ @_property
126
+ def sdp_records(self) -> typing.Optional[windows_foundation_collections.IVectorView[windows_storage_streams.IBuffer]]: ...
127
+ @_property
128
+ def device_information(self) -> typing.Optional[windows_devices_enumeration.DeviceInformation]: ...
129
+ @_property
130
+ def device_access_information(self) -> typing.Optional[windows_devices_enumeration.DeviceAccessInformation]: ...
131
+ @_property
132
+ def bluetooth_device_id(self) -> typing.Optional[BluetoothDeviceId]: ...
133
+ @_property
134
+ def was_secure_connection_used_for_pairing(self) -> bool: ...
135
+
136
+ @typing.final
137
+ class BluetoothDeviceId_Static(type):
138
+ def from_id(cls, device_id: str, /) -> typing.Optional[BluetoothDeviceId]: ...
139
+
140
+ @typing.final
141
+ class BluetoothDeviceId(winrt.system.Object, metaclass=BluetoothDeviceId_Static):
142
+ @staticmethod
143
+ def _from(obj: winrt.system.Object, /) -> BluetoothDeviceId: ...
144
+ @_property
145
+ def id(self) -> str: ...
146
+ @_property
147
+ def is_classic_device(self) -> bool: ...
148
+ @_property
149
+ def is_low_energy_device(self) -> bool: ...
150
+
151
+ @typing.final
152
+ class BluetoothLEAppearance_Static(type):
153
+ def from_parts(cls, appearance_category: winrt.system.UInt16, appearance_sub_category: winrt.system.UInt16, /) -> typing.Optional[BluetoothLEAppearance]: ...
154
+ def from_raw_value(cls, raw_value: winrt.system.UInt16, /) -> typing.Optional[BluetoothLEAppearance]: ...
155
+
156
+ @typing.final
157
+ class BluetoothLEAppearance(winrt.system.Object, metaclass=BluetoothLEAppearance_Static):
158
+ @staticmethod
159
+ def _from(obj: winrt.system.Object, /) -> BluetoothLEAppearance: ...
160
+ @_property
161
+ def category(self) -> winrt.system.UInt16: ...
162
+ @_property
163
+ def raw_value(self) -> winrt.system.UInt16: ...
164
+ @_property
165
+ def sub_category(self) -> winrt.system.UInt16: ...
166
+
167
+ @typing.final
168
+ class BluetoothLEAppearanceCategories_Static(type):
169
+ @_property
170
+ def barcode_scanner(cls) -> winrt.system.UInt16: ...
171
+ @_property
172
+ def blood_pressure(cls) -> winrt.system.UInt16: ...
173
+ @_property
174
+ def clock(cls) -> winrt.system.UInt16: ...
175
+ @_property
176
+ def computer(cls) -> winrt.system.UInt16: ...
177
+ @_property
178
+ def cycling(cls) -> winrt.system.UInt16: ...
179
+ @_property
180
+ def display(cls) -> winrt.system.UInt16: ...
181
+ @_property
182
+ def eye_glasses(cls) -> winrt.system.UInt16: ...
183
+ @_property
184
+ def glucose_meter(cls) -> winrt.system.UInt16: ...
185
+ @_property
186
+ def heart_rate(cls) -> winrt.system.UInt16: ...
187
+ @_property
188
+ def human_interface_device(cls) -> winrt.system.UInt16: ...
189
+ @_property
190
+ def keyring(cls) -> winrt.system.UInt16: ...
191
+ @_property
192
+ def media_player(cls) -> winrt.system.UInt16: ...
193
+ @_property
194
+ def outdoor_sport_activity(cls) -> winrt.system.UInt16: ...
195
+ @_property
196
+ def phone(cls) -> winrt.system.UInt16: ...
197
+ @_property
198
+ def pulse_oximeter(cls) -> winrt.system.UInt16: ...
199
+ @_property
200
+ def remote_control(cls) -> winrt.system.UInt16: ...
201
+ @_property
202
+ def running_walking(cls) -> winrt.system.UInt16: ...
203
+ @_property
204
+ def tag(cls) -> winrt.system.UInt16: ...
205
+ @_property
206
+ def thermometer(cls) -> winrt.system.UInt16: ...
207
+ @_property
208
+ def uncategorized(cls) -> winrt.system.UInt16: ...
209
+ @_property
210
+ def watch(cls) -> winrt.system.UInt16: ...
211
+ @_property
212
+ def weight_scale(cls) -> winrt.system.UInt16: ...
213
+
214
+ @typing.final
215
+ class BluetoothLEAppearanceCategories(winrt.system.Object, metaclass=BluetoothLEAppearanceCategories_Static):
216
+ pass
217
+
218
+ @typing.final
219
+ class BluetoothLEAppearanceSubcategories_Static(type):
220
+ @_property
221
+ def barcode_scanner(cls) -> winrt.system.UInt16: ...
222
+ @_property
223
+ def blood_pressure_arm(cls) -> winrt.system.UInt16: ...
224
+ @_property
225
+ def blood_pressure_wrist(cls) -> winrt.system.UInt16: ...
226
+ @_property
227
+ def card_reader(cls) -> winrt.system.UInt16: ...
228
+ @_property
229
+ def cycling_cadence_sensor(cls) -> winrt.system.UInt16: ...
230
+ @_property
231
+ def cycling_computer(cls) -> winrt.system.UInt16: ...
232
+ @_property
233
+ def cycling_power_sensor(cls) -> winrt.system.UInt16: ...
234
+ @_property
235
+ def cycling_speed_cadence_sensor(cls) -> winrt.system.UInt16: ...
236
+ @_property
237
+ def cycling_speed_sensor(cls) -> winrt.system.UInt16: ...
238
+ @_property
239
+ def digital_pen(cls) -> winrt.system.UInt16: ...
240
+ @_property
241
+ def digitizer_tablet(cls) -> winrt.system.UInt16: ...
242
+ @_property
243
+ def gamepad(cls) -> winrt.system.UInt16: ...
244
+ @_property
245
+ def generic(cls) -> winrt.system.UInt16: ...
246
+ @_property
247
+ def heart_rate_belt(cls) -> winrt.system.UInt16: ...
248
+ @_property
249
+ def joystick(cls) -> winrt.system.UInt16: ...
250
+ @_property
251
+ def keyboard(cls) -> winrt.system.UInt16: ...
252
+ @_property
253
+ def location_display(cls) -> winrt.system.UInt16: ...
254
+ @_property
255
+ def location_navigation_display(cls) -> winrt.system.UInt16: ...
256
+ @_property
257
+ def location_navigation_pod(cls) -> winrt.system.UInt16: ...
258
+ @_property
259
+ def location_pod(cls) -> winrt.system.UInt16: ...
260
+ @_property
261
+ def mouse(cls) -> winrt.system.UInt16: ...
262
+ @_property
263
+ def oximeter_fingertip(cls) -> winrt.system.UInt16: ...
264
+ @_property
265
+ def oximeter_wrist_worn(cls) -> winrt.system.UInt16: ...
266
+ @_property
267
+ def running_walking_in_shoe(cls) -> winrt.system.UInt16: ...
268
+ @_property
269
+ def running_walking_on_hip(cls) -> winrt.system.UInt16: ...
270
+ @_property
271
+ def running_walking_on_shoe(cls) -> winrt.system.UInt16: ...
272
+ @_property
273
+ def sports_watch(cls) -> winrt.system.UInt16: ...
274
+ @_property
275
+ def thermometer_ear(cls) -> winrt.system.UInt16: ...
276
+
277
+ @typing.final
278
+ class BluetoothLEAppearanceSubcategories(winrt.system.Object, metaclass=BluetoothLEAppearanceSubcategories_Static):
279
+ pass
280
+
281
+ @typing.final
282
+ class BluetoothLEConnectionParameters(winrt.system.Object):
283
+ @staticmethod
284
+ def _from(obj: winrt.system.Object, /) -> BluetoothLEConnectionParameters: ...
285
+ @_property
286
+ def connection_interval(self) -> winrt.system.UInt16: ...
287
+ @_property
288
+ def connection_latency(self) -> winrt.system.UInt16: ...
289
+ @_property
290
+ def link_timeout(self) -> winrt.system.UInt16: ...
291
+
292
+ @typing.final
293
+ class BluetoothLEConnectionPhy(winrt.system.Object):
294
+ @staticmethod
295
+ def _from(obj: winrt.system.Object, /) -> BluetoothLEConnectionPhy: ...
296
+ @_property
297
+ def receive_info(self) -> typing.Optional[BluetoothLEConnectionPhyInfo]: ...
298
+ @_property
299
+ def transmit_info(self) -> typing.Optional[BluetoothLEConnectionPhyInfo]: ...
300
+
301
+ @typing.final
302
+ class BluetoothLEConnectionPhyInfo(winrt.system.Object):
303
+ @staticmethod
304
+ def _from(obj: winrt.system.Object, /) -> BluetoothLEConnectionPhyInfo: ...
305
+ @_property
306
+ def is_coded_phy(self) -> bool: ...
307
+ @_property
308
+ def is_uncoded1_m_phy(self) -> bool: ...
309
+ @_property
310
+ def is_uncoded2_m_phy(self) -> bool: ...
311
+
312
+ @typing.final
313
+ class BluetoothLEDevice_Static(type):
314
+ @typing.overload
315
+ def from_bluetooth_address_async(cls, bluetooth_address: winrt.system.UInt64, /) -> windows_foundation.IAsyncOperation[BluetoothLEDevice]: ...
316
+ @typing.overload
317
+ def from_bluetooth_address_async(cls, bluetooth_address: winrt.system.UInt64, bluetooth_address_type: BluetoothAddressType, /) -> windows_foundation.IAsyncOperation[BluetoothLEDevice]: ...
318
+ def from_id_async(cls, device_id: str, /) -> windows_foundation.IAsyncOperation[BluetoothLEDevice]: ...
319
+ def get_device_selector(cls) -> str: ...
320
+ def get_device_selector_from_appearance(cls, appearance: typing.Optional[BluetoothLEAppearance], /) -> str: ...
321
+ @typing.overload
322
+ def get_device_selector_from_bluetooth_address(cls, bluetooth_address: winrt.system.UInt64, /) -> str: ...
323
+ @typing.overload
324
+ def get_device_selector_from_bluetooth_address(cls, bluetooth_address: winrt.system.UInt64, bluetooth_address_type: BluetoothAddressType, /) -> str: ...
325
+ def get_device_selector_from_connection_status(cls, connection_status: BluetoothConnectionStatus, /) -> str: ...
326
+ def get_device_selector_from_device_name(cls, device_name: str, /) -> str: ...
327
+ def get_device_selector_from_pairing_state(cls, pairing_state: bool, /) -> str: ...
328
+
329
+ @typing.final
330
+ class BluetoothLEDevice(winrt.system.Object, metaclass=BluetoothLEDevice_Static):
331
+ def __enter__(self: Self) -> Self: ...
332
+ def __exit__(self, *args) -> None: ...
333
+ @staticmethod
334
+ def _from(obj: winrt.system.Object, /) -> BluetoothLEDevice: ...
335
+ def close(self) -> None: ...
336
+ def get_connection_parameters(self) -> typing.Optional[BluetoothLEConnectionParameters]: ...
337
+ def get_connection_phy(self) -> typing.Optional[BluetoothLEConnectionPhy]: ...
338
+ def get_gatt_service(self, service_uuid: _uuid.UUID, /) -> typing.Optional[windows_devices_bluetooth_genericattributeprofile.GattDeviceService]: ...
339
+ @typing.overload
340
+ def get_gatt_services_async(self) -> windows_foundation.IAsyncOperation[windows_devices_bluetooth_genericattributeprofile.GattDeviceServicesResult]: ...
341
+ @typing.overload
342
+ def get_gatt_services_async(self, cache_mode: BluetoothCacheMode, /) -> windows_foundation.IAsyncOperation[windows_devices_bluetooth_genericattributeprofile.GattDeviceServicesResult]: ...
343
+ @typing.overload
344
+ def get_gatt_services_for_uuid_async(self, service_uuid: _uuid.UUID, /) -> windows_foundation.IAsyncOperation[windows_devices_bluetooth_genericattributeprofile.GattDeviceServicesResult]: ...
345
+ @typing.overload
346
+ def get_gatt_services_for_uuid_async(self, service_uuid: _uuid.UUID, cache_mode: BluetoothCacheMode, /) -> windows_foundation.IAsyncOperation[windows_devices_bluetooth_genericattributeprofile.GattDeviceServicesResult]: ...
347
+ def request_access_async(self) -> windows_foundation.IAsyncOperation[windows_devices_enumeration.DeviceAccessStatus]: ...
348
+ def request_preferred_connection_parameters(self, preferred_connection_parameters: typing.Optional[BluetoothLEPreferredConnectionParameters], /) -> typing.Optional[BluetoothLEPreferredConnectionParametersRequest]: ...
349
+ def add_connection_status_changed(self, handler: windows_foundation.TypedEventHandler[BluetoothLEDevice, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
350
+ def remove_connection_status_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
351
+ def add_gatt_services_changed(self, handler: windows_foundation.TypedEventHandler[BluetoothLEDevice, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
352
+ def remove_gatt_services_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
353
+ def add_name_changed(self, handler: windows_foundation.TypedEventHandler[BluetoothLEDevice, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
354
+ def remove_name_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
355
+ def add_connection_parameters_changed(self, handler: windows_foundation.TypedEventHandler[BluetoothLEDevice, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
356
+ def remove_connection_parameters_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
357
+ def add_connection_phy_changed(self, handler: windows_foundation.TypedEventHandler[BluetoothLEDevice, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
358
+ def remove_connection_phy_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
359
+ @_property
360
+ def bluetooth_address(self) -> winrt.system.UInt64: ...
361
+ @_property
362
+ def connection_status(self) -> BluetoothConnectionStatus: ...
363
+ @_property
364
+ def device_id(self) -> str: ...
365
+ @_property
366
+ def gatt_services(self) -> typing.Optional[windows_foundation_collections.IVectorView[windows_devices_bluetooth_genericattributeprofile.GattDeviceService]]: ...
367
+ @_property
368
+ def name(self) -> str: ...
369
+ @_property
370
+ def appearance(self) -> typing.Optional[BluetoothLEAppearance]: ...
371
+ @_property
372
+ def bluetooth_address_type(self) -> BluetoothAddressType: ...
373
+ @_property
374
+ def device_information(self) -> typing.Optional[windows_devices_enumeration.DeviceInformation]: ...
375
+ @_property
376
+ def device_access_information(self) -> typing.Optional[windows_devices_enumeration.DeviceAccessInformation]: ...
377
+ @_property
378
+ def bluetooth_device_id(self) -> typing.Optional[BluetoothDeviceId]: ...
379
+ @_property
380
+ def was_secure_connection_used_for_pairing(self) -> bool: ...
381
+
382
+ @typing.final
383
+ class BluetoothLEPreferredConnectionParameters_Static(type):
384
+ @_property
385
+ def balanced(cls) -> typing.Optional[BluetoothLEPreferredConnectionParameters]: ...
386
+ @_property
387
+ def power_optimized(cls) -> typing.Optional[BluetoothLEPreferredConnectionParameters]: ...
388
+ @_property
389
+ def throughput_optimized(cls) -> typing.Optional[BluetoothLEPreferredConnectionParameters]: ...
390
+
391
+ @typing.final
392
+ class BluetoothLEPreferredConnectionParameters(winrt.system.Object, metaclass=BluetoothLEPreferredConnectionParameters_Static):
393
+ @staticmethod
394
+ def _from(obj: winrt.system.Object, /) -> BluetoothLEPreferredConnectionParameters: ...
395
+ @_property
396
+ def connection_latency(self) -> winrt.system.UInt16: ...
397
+ @_property
398
+ def link_timeout(self) -> winrt.system.UInt16: ...
399
+ @_property
400
+ def max_connection_interval(self) -> winrt.system.UInt16: ...
401
+ @_property
402
+ def min_connection_interval(self) -> winrt.system.UInt16: ...
403
+
404
+ @typing.final
405
+ class BluetoothLEPreferredConnectionParametersRequest(winrt.system.Object):
406
+ def __enter__(self: Self) -> Self: ...
407
+ def __exit__(self, *args) -> None: ...
408
+ @staticmethod
409
+ def _from(obj: winrt.system.Object, /) -> BluetoothLEPreferredConnectionParametersRequest: ...
410
+ def close(self) -> None: ...
411
+ @_property
412
+ def status(self) -> BluetoothLEPreferredConnectionParametersRequestStatus: ...
413
+
414
+ @typing.final
415
+ class BluetoothSignalStrengthFilter(winrt.system.Object):
416
+ @staticmethod
417
+ def _from(obj: winrt.system.Object, /) -> BluetoothSignalStrengthFilter: ...
418
+ def __new__(cls: typing.Type[BluetoothSignalStrengthFilter]) -> BluetoothSignalStrengthFilter: ...
419
+ @_property
420
+ def sampling_interval(self) -> typing.Optional[typing.Optional[datetime.timedelta]]: ...
421
+ @sampling_interval.setter
422
+ def sampling_interval(self, value: typing.Optional[typing.Optional[datetime.timedelta]]) -> None: ...
423
+ @_property
424
+ def out_of_range_timeout(self) -> typing.Optional[typing.Optional[datetime.timedelta]]: ...
425
+ @out_of_range_timeout.setter
426
+ def out_of_range_timeout(self, value: typing.Optional[typing.Optional[datetime.timedelta]]) -> None: ...
427
+ @_property
428
+ def out_of_range_threshold_in_d_bm(self) -> typing.Optional[typing.Optional[winrt.system.Int16]]: ...
429
+ @out_of_range_threshold_in_d_bm.setter
430
+ def out_of_range_threshold_in_d_bm(self, value: typing.Optional[typing.Optional[winrt.system.Int16]]) -> None: ...
431
+ @_property
432
+ def in_range_threshold_in_d_bm(self) -> typing.Optional[typing.Optional[winrt.system.Int16]]: ...
433
+ @in_range_threshold_in_d_bm.setter
434
+ def in_range_threshold_in_d_bm(self, value: typing.Optional[typing.Optional[winrt.system.Int16]]) -> None: ...
435
+
436
+ @typing.final
437
+ class BluetoothUuidHelper_Static(type):
438
+ def from_short_id(cls, short_id: winrt.system.UInt32, /) -> _uuid.UUID: ...
439
+ def try_get_short_id(cls, uuid: _uuid.UUID, /) -> typing.Optional[typing.Optional[winrt.system.UInt32]]: ...
440
+
441
+ @typing.final
442
+ class BluetoothUuidHelper(winrt.system.Object, metaclass=BluetoothUuidHelper_Static):
443
+ pass
444
+
@@ -0,0 +1,176 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ import enum
4
+
5
+ import winrt.system
6
+ from winrt import _winrt_windows_devices_bluetooth
7
+
8
+ __all__ = [
9
+ "BluetoothAddressType",
10
+ "BluetoothCacheMode",
11
+ "BluetoothConnectionStatus",
12
+ "BluetoothError",
13
+ "BluetoothLEPreferredConnectionParametersRequestStatus",
14
+ "BluetoothMajorClass",
15
+ "BluetoothMinorClass",
16
+ "BluetoothServiceCapabilities",
17
+ "BluetoothAdapter",
18
+ "BluetoothClassOfDevice",
19
+ "BluetoothDevice",
20
+ "BluetoothDeviceId",
21
+ "BluetoothLEAppearance",
22
+ "BluetoothLEAppearanceCategories",
23
+ "BluetoothLEAppearanceSubcategories",
24
+ "BluetoothLEConnectionParameters",
25
+ "BluetoothLEConnectionPhy",
26
+ "BluetoothLEConnectionPhyInfo",
27
+ "BluetoothLEDevice",
28
+ "BluetoothLEPreferredConnectionParameters",
29
+ "BluetoothLEPreferredConnectionParametersRequest",
30
+ "BluetoothSignalStrengthFilter",
31
+ "BluetoothUuidHelper",
32
+ ]
33
+
34
+ class BluetoothAddressType(enum.IntEnum):
35
+ PUBLIC = 0
36
+ RANDOM = 1
37
+ UNSPECIFIED = 2
38
+
39
+ class BluetoothCacheMode(enum.IntEnum):
40
+ CACHED = 0
41
+ UNCACHED = 1
42
+
43
+ class BluetoothConnectionStatus(enum.IntEnum):
44
+ DISCONNECTED = 0
45
+ CONNECTED = 1
46
+
47
+ class BluetoothError(enum.IntEnum):
48
+ SUCCESS = 0
49
+ RADIO_NOT_AVAILABLE = 1
50
+ RESOURCE_IN_USE = 2
51
+ DEVICE_NOT_CONNECTED = 3
52
+ OTHER_ERROR = 4
53
+ DISABLED_BY_POLICY = 5
54
+ NOT_SUPPORTED = 6
55
+ DISABLED_BY_USER = 7
56
+ CONSENT_REQUIRED = 8
57
+ TRANSPORT_NOT_SUPPORTED = 9
58
+
59
+ class BluetoothLEPreferredConnectionParametersRequestStatus(enum.IntEnum):
60
+ UNSPECIFIED = 0
61
+ SUCCESS = 1
62
+ DEVICE_NOT_AVAILABLE = 2
63
+ ACCESS_DENIED = 3
64
+
65
+ class BluetoothMajorClass(enum.IntEnum):
66
+ MISCELLANEOUS = 0
67
+ COMPUTER = 1
68
+ PHONE = 2
69
+ NETWORK_ACCESS_POINT = 3
70
+ AUDIO_VIDEO = 4
71
+ PERIPHERAL = 5
72
+ IMAGING = 6
73
+ WEARABLE = 7
74
+ TOY = 8
75
+ HEALTH = 9
76
+
77
+ class BluetoothMinorClass(enum.IntEnum):
78
+ UNCATEGORIZED = 0
79
+ COMPUTER_DESKTOP = 1
80
+ COMPUTER_SERVER = 2
81
+ COMPUTER_LAPTOP = 3
82
+ COMPUTER_HANDHELD = 4
83
+ COMPUTER_PALM_SIZE = 5
84
+ COMPUTER_WEARABLE = 6
85
+ COMPUTER_TABLET = 7
86
+ PHONE_CELLULAR = 1
87
+ PHONE_CORDLESS = 2
88
+ PHONE_SMART_PHONE = 3
89
+ PHONE_WIRED = 4
90
+ PHONE_ISDN = 5
91
+ NETWORK_FULLY_AVAILABLE = 0
92
+ NETWORK_USED01_TO17_PERCENT = 8
93
+ NETWORK_USED17_TO33_PERCENT = 16
94
+ NETWORK_USED33_TO50_PERCENT = 24
95
+ NETWORK_USED50_TO67_PERCENT = 32
96
+ NETWORK_USED67_TO83_PERCENT = 40
97
+ NETWORK_USED83_TO99_PERCENT = 48
98
+ NETWORK_NO_SERVICE_AVAILABLE = 56
99
+ AUDIO_VIDEO_WEARABLE_HEADSET = 1
100
+ AUDIO_VIDEO_HANDS_FREE = 2
101
+ AUDIO_VIDEO_MICROPHONE = 4
102
+ AUDIO_VIDEO_LOUDSPEAKER = 5
103
+ AUDIO_VIDEO_HEADPHONES = 6
104
+ AUDIO_VIDEO_PORTABLE_AUDIO = 7
105
+ AUDIO_VIDEO_CAR_AUDIO = 8
106
+ AUDIO_VIDEO_SET_TOP_BOX = 9
107
+ AUDIO_VIDEO_HIFI_AUDIO_DEVICE = 10
108
+ AUDIO_VIDEO_VCR = 11
109
+ AUDIO_VIDEO_VIDEO_CAMERA = 12
110
+ AUDIO_VIDEO_CAMCORDER = 13
111
+ AUDIO_VIDEO_VIDEO_MONITOR = 14
112
+ AUDIO_VIDEO_VIDEO_DISPLAY_AND_LOUDSPEAKER = 15
113
+ AUDIO_VIDEO_VIDEO_CONFERENCING = 16
114
+ AUDIO_VIDEO_GAMING_OR_TOY = 18
115
+ PERIPHERAL_JOYSTICK = 1
116
+ PERIPHERAL_GAMEPAD = 2
117
+ PERIPHERAL_REMOTE_CONTROL = 3
118
+ PERIPHERAL_SENSING = 4
119
+ PERIPHERAL_DIGITIZER_TABLET = 5
120
+ PERIPHERAL_CARD_READER = 6
121
+ PERIPHERAL_DIGITAL_PEN = 7
122
+ PERIPHERAL_HANDHELD_SCANNER = 8
123
+ PERIPHERAL_HANDHELD_GESTURE = 9
124
+ WEARABLE_WRISTWATCH = 1
125
+ WEARABLE_PAGER = 2
126
+ WEARABLE_JACKET = 3
127
+ WEARABLE_HELMET = 4
128
+ WEARABLE_GLASSES = 5
129
+ TOY_ROBOT = 1
130
+ TOY_VEHICLE = 2
131
+ TOY_DOLL = 3
132
+ TOY_CONTROLLER = 4
133
+ TOY_GAME = 5
134
+ HEALTH_BLOOD_PRESSURE_MONITOR = 1
135
+ HEALTH_THERMOMETER = 2
136
+ HEALTH_WEIGHING_SCALE = 3
137
+ HEALTH_GLUCOSE_METER = 4
138
+ HEALTH_PULSE_OXIMETER = 5
139
+ HEALTH_HEART_RATE_MONITOR = 6
140
+ HEALTH_HEALTH_DATA_DISPLAY = 7
141
+ HEALTH_STEP_COUNTER = 8
142
+ HEALTH_BODY_COMPOSITION_ANALYZER = 9
143
+ HEALTH_PEAK_FLOW_MONITOR = 10
144
+ HEALTH_MEDICATION_MONITOR = 11
145
+ HEALTH_KNEE_PROSTHESIS = 12
146
+ HEALTH_ANKLE_PROSTHESIS = 13
147
+ HEALTH_GENERIC_HEALTH_MANAGER = 14
148
+ HEALTH_PERSONAL_MOBILITY_DEVICE = 15
149
+
150
+ class BluetoothServiceCapabilities(enum.IntFlag):
151
+ NONE = 0x0
152
+ LIMITED_DISCOVERABLE_MODE = 0x1
153
+ POSITIONING_SERVICE = 0x8
154
+ NETWORKING_SERVICE = 0x10
155
+ RENDERING_SERVICE = 0x20
156
+ CAPTURING_SERVICE = 0x40
157
+ OBJECT_TRANSFER_SERVICE = 0x80
158
+ AUDIO_SERVICE = 0x100
159
+ TELEPHONE_SERVICE = 0x200
160
+ INFORMATION_SERVICE = 0x400
161
+
162
+ BluetoothAdapter = _winrt_windows_devices_bluetooth.BluetoothAdapter
163
+ BluetoothClassOfDevice = _winrt_windows_devices_bluetooth.BluetoothClassOfDevice
164
+ BluetoothDevice = _winrt_windows_devices_bluetooth.BluetoothDevice
165
+ BluetoothDeviceId = _winrt_windows_devices_bluetooth.BluetoothDeviceId
166
+ BluetoothLEAppearance = _winrt_windows_devices_bluetooth.BluetoothLEAppearance
167
+ BluetoothLEAppearanceCategories = _winrt_windows_devices_bluetooth.BluetoothLEAppearanceCategories
168
+ BluetoothLEAppearanceSubcategories = _winrt_windows_devices_bluetooth.BluetoothLEAppearanceSubcategories
169
+ BluetoothLEConnectionParameters = _winrt_windows_devices_bluetooth.BluetoothLEConnectionParameters
170
+ BluetoothLEConnectionPhy = _winrt_windows_devices_bluetooth.BluetoothLEConnectionPhy
171
+ BluetoothLEConnectionPhyInfo = _winrt_windows_devices_bluetooth.BluetoothLEConnectionPhyInfo
172
+ BluetoothLEDevice = _winrt_windows_devices_bluetooth.BluetoothLEDevice
173
+ BluetoothLEPreferredConnectionParameters = _winrt_windows_devices_bluetooth.BluetoothLEPreferredConnectionParameters
174
+ BluetoothLEPreferredConnectionParametersRequest = _winrt_windows_devices_bluetooth.BluetoothLEPreferredConnectionParametersRequest
175
+ BluetoothSignalStrengthFilter = _winrt_windows_devices_bluetooth.BluetoothSignalStrengthFilter
176
+ BluetoothUuidHelper = _winrt_windows_devices_bluetooth.BluetoothUuidHelper
File without changes
@@ -0,0 +1,32 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.Devices.Bluetooth
3
+ Version: 2.2.0
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License: MIT
6
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
7
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
9
+ Classifier: Operating System :: Microsoft :: Windows
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: Implementation :: CPython
12
+ Classifier: Intended Audience :: Developers
13
+ Requires-Python: <3.14,>=3.9
14
+ Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime ==2.2.0
16
+ Provides-Extra: all
17
+ Requires-Dist: winrt-Windows.Devices.Bluetooth.GenericAttributeProfile[all] ==2.2.0 ; extra == 'all'
18
+ Requires-Dist: winrt-Windows.Devices.Bluetooth.Rfcomm[all] ==2.2.0 ; extra == 'all'
19
+ Requires-Dist: winrt-Windows.Devices.Enumeration[all] ==2.2.0 ; extra == 'all'
20
+ Requires-Dist: winrt-Windows.Devices.Radios[all] ==2.2.0 ; extra == 'all'
21
+ Requires-Dist: winrt-Windows.Foundation[all] ==2.2.0 ; extra == 'all'
22
+ Requires-Dist: winrt-Windows.Foundation.Collections[all] ==2.2.0 ; extra == 'all'
23
+ Requires-Dist: winrt-Windows.Networking[all] ==2.2.0 ; extra == 'all'
24
+ Requires-Dist: winrt-Windows.Storage.Streams[all] ==2.2.0 ; extra == 'all'
25
+
26
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
27
+
28
+ # winrt-Windows.Devices.Bluetooth
29
+
30
+ Windows Runtime (WinRT) APIs for for the `Windows.Devices.Bluetooth` namespace.
31
+
32
+ This package provides the `winrt.windows.devices.bluetooth` module.
@@ -0,0 +1,8 @@
1
+ winrt/_winrt_windows_devices_bluetooth.cp313-win_amd64.pyd,sha256=X_op3pC4Ww0hDKP5Q9THkY_iXZUCna3bElmAsVTjc0Y,325632
2
+ winrt/_winrt_windows_devices_bluetooth.pyi,sha256=1a4evhEL7oXwSG_1DAIxfXoV0LF0On2IkGwTreddAas,22681
3
+ winrt/windows/devices/bluetooth/__init__.py,sha256=KfefaaJBrG3vedF6Az-DHECb3ldhtT3aLjIijV8v1HU,5758
4
+ winrt/windows/devices/bluetooth/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ winrt_Windows.Devices.Bluetooth-2.2.0.dist-info/METADATA,sha256=613UqQSF6v2c3K6Y9hjIhriiRgojyMxEYmgmS_QRBcQ,1623
6
+ winrt_Windows.Devices.Bluetooth-2.2.0.dist-info/WHEEL,sha256=CdxowNJ2RPRCxUxJWAQ4R_o8uA51cjotGywc47Ht6wA,101
7
+ winrt_Windows.Devices.Bluetooth-2.2.0.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
8
+ winrt_Windows.Devices.Bluetooth-2.2.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (73.0.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp313-cp313-win_amd64
5
+