Debian Codegraph @

mingw-w64-headers/include/windows.devices.bluetooth.idl

raw
1 /*
2 * Copyright (C) 2023 Mohamad Al-Jaf
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19 #ifdef __WIDL__
20 #pragma winrt ns_prefix
21 #endif
22
23 import "inspectable.idl";
24 import "asyncinfo.idl";
25 import "eventtoken.idl";
26 import "windowscontracts.idl";
27 import "windows.foundation.idl";
28 import "windows.devices.bluetooth.genericattributeprofile.idl";
29 import "windows.devices.bluetooth.rfcomm.idl";
30 import "windows.devices.enumeration.idl";
31 import "windows.devices.radios.idl";
32 import "windows.networking.idl";
33 import "windows.storage.streams.idl";
34
35 namespace Windows.Devices.Bluetooth {
36 typedef enum BluetoothCacheMode BluetoothCacheMode;
37 typedef enum BluetoothConnectionStatus BluetoothConnectionStatus;
38 typedef enum BluetoothMajorClass BluetoothMajorClass;
39 typedef enum BluetoothMinorClass BluetoothMinorClass;
40 typedef enum BluetoothServiceCapabilities BluetoothServiceCapabilities;
41 typedef enum BluetoothError BluetoothError;
42 typedef enum BluetoothAddressType BluetoothAddressType;
43
44 interface IBluetoothAdapter;
45 interface IBluetoothAdapter2;
46 interface IBluetoothAdapter3;
47 interface IBluetoothAdapterStatics;
48 interface IBluetoothClassOfDevice;
49 interface IBluetoothClassOfDeviceStatics;
50 interface IBluetoothDevice;
51 interface IBluetoothDevice2;
52 interface IBluetoothDevice3;
53 interface IBluetoothDevice4;
54 interface IBluetoothDevice5;
55 interface IBluetoothDeviceStatics;
56 interface IBluetoothDeviceStatics2;
57 interface IBluetoothDeviceId;
58 interface IBluetoothDeviceIdStatics;
59 interface IBluetoothLEDevice;
60 interface IBluetoothLEDevice2;
61 interface IBluetoothLEDevice3;
62 interface IBluetoothLEDevice4;
63 interface IBluetoothLEDevice5;
64 interface IBluetoothLEDevice6;
65 interface IBluetoothLEDeviceStatics;
66 interface IBluetoothLEDeviceStatics2;
67 interface IBluetoothSignalStrengthFilter;
68
69 runtimeclass BluetoothAdapter;
70 runtimeclass BluetoothClassOfDevice;
71 runtimeclass BluetoothDevice;
72 runtimeclass BluetoothDeviceId;
73 runtimeclass BluetoothLEDevice;
74 runtimeclass BluetoothSignalStrengthFilter;
75
76 namespace Rfcomm {
77 runtimeclass RfcommDeviceService;
78 }
79
80 namespace GenericAttributeProfile {
81 runtimeclass GattDeviceService;
82 }
83
84 declare {
85 interface Windows.Foundation.AsyncOperationCompletedHandler<Windows.Devices.Bluetooth.BluetoothAdapter *>;
86 interface Windows.Foundation.IAsyncOperation<Windows.Devices.Bluetooth.BluetoothAdapter *>;
87 interface Windows.Foundation.TypedEventHandler<Windows.Devices.Bluetooth.BluetoothDevice *, IInspectable *>;
88 interface Windows.Foundation.AsyncOperationCompletedHandler<Windows.Devices.Bluetooth.BluetoothDevice *>;
89 interface Windows.Foundation.IAsyncOperation<Windows.Devices.Bluetooth.BluetoothDevice *>;
90 interface Windows.Foundation.AsyncOperationCompletedHandler<Windows.Devices.Bluetooth.BluetoothLEDevice *>;
91 interface Windows.Foundation.IAsyncOperation<Windows.Devices.Bluetooth.BluetoothLEDevice *>;
92 interface Windows.Foundation.TypedEventHandler<Windows.Devices.Bluetooth.BluetoothLEDevice *, IInspectable *>;
93 interface Windows.Foundation.Collections.IVectorView<Windows.Storage.Streams.IBuffer *>;
94 interface Windows.Foundation.Collections.IVectorView<Windows.Devices.Bluetooth.Rfcomm.RfcommDeviceService *>;
95 interface Windows.Foundation.Collections.IVectorView<Windows.Devices.Bluetooth.GenericAttributeProfile.GattDeviceService *>;
96 }
97
98 [
99 contract(Windows.Foundation.UniversalApiContract, 1.0)
100 ]
101 enum BluetoothCacheMode
102 {
103 Cached = 0,
104 Uncached = 1,
105 };
106
107 [
108 contract(Windows.Foundation.UniversalApiContract, 1.0)
109 ]
110 enum BluetoothConnectionStatus
111 {
112 Disconnected = 0,
113 Connected = 1,
114 };
115
116 [
117 contract(Windows.Foundation.UniversalApiContract, 1.0)
118 ]
119 enum BluetoothMajorClass
120 {
121 Miscellaneous = 0,
122 Computer = 1,
123 Phone = 2,
124 NetworkAccessPoint = 3,
125 AudioVideo = 4,
126 Peripheral = 5,
127 Imaging = 6,
128 Wearable = 7,
129 Toy = 8,
130 Health = 9,
131 };
132
133 [
134 contract(Windows.Foundation.UniversalApiContract, 1.0)
135 ]
136 enum BluetoothMinorClass
137 {
138 Uncategorized = 0,
139 ComputerDesktop = 1,
140 ComputerServer = 2,
141 ComputerLaptop = 3,
142 ComputerHandheld = 4,
143 ComputerPalmSize = 5,
144 ComputerWearable = 6,
145 ComputerTablet = 7,
146 PhoneCellular = 1,
147 PhoneCordless = 2,
148 PhoneSmartPhone = 3,
149 PhoneWired = 4,
150 PhoneIsdn = 5,
151 NetworkFullyAvailable = 0,
152 NetworkUsed01To17Percent = 8,
153 NetworkUsed17To33Percent = 16,
154 NetworkUsed33To50Percent = 24,
155 NetworkUsed50To67Percent = 32,
156 NetworkUsed67To83Percent = 40,
157 NetworkUsed83To99Percent = 48,
158 NetworkNoServiceAvailable = 56,
159 AudioVideoWearableHeadset = 1,
160 AudioVideoHandsFree = 2,
161 AudioVideoMicrophone = 4,
162 AudioVideoLoudspeaker = 5,
163 AudioVideoHeadphones = 6,
164 AudioVideoPortableAudio = 7,
165 AudioVideoCarAudio = 8,
166 AudioVideoSetTopBox = 9,
167 AudioVideoHifiAudioDevice = 10,
168 AudioVideoVcr = 11,
169 AudioVideoVideoCamera = 12,
170 AudioVideoCamcorder = 13,
171 AudioVideoVideoMonitor = 14,
172 AudioVideoVideoDisplayAndLoudspeaker = 15,
173 AudioVideoVideoConferencing = 16,
174 AudioVideoGamingOrToy = 18,
175 PeripheralJoystick = 1,
176 PeripheralGamepad = 2,
177 PeripheralRemoteControl = 3,
178 PeripheralSensing = 4,
179 PeripheralDigitizerTablet = 5,
180 PeripheralCardReader = 6,
181 PeripheralDigitalPen = 7,
182 PeripheralHandheldScanner = 8,
183 PeripheralHandheldGesture = 9,
184 WearableWristwatch = 1,
185 WearablePager = 2,
186 WearableJacket = 3,
187 WearableHelmet = 4,
188 WearableGlasses = 5,
189 ToyRobot = 1,
190 ToyVehicle = 2,
191 ToyDoll = 3,
192 ToyController = 4,
193 ToyGame = 5,
194 HealthBloodPressureMonitor = 1,
195 HealthThermometer = 2,
196 HealthWeighingScale = 3,
197 HealthGlucoseMeter = 4,
198 HealthPulseOximeter = 5,
199 HealthHeartRateMonitor = 6,
200 HealthHealthDataDisplay = 7,
201 HealthStepCounter = 8,
202 HealthBodyCompositionAnalyzer = 9,
203 HealthPeakFlowMonitor = 10,
204 HealthMedicationMonitor = 11,
205 HealthKneeProsthesis = 12,
206 HealthAnkleProsthesis = 13,
207 HealthGenericHealthManager = 14,
208 HealthPersonalMobilityDevice = 15,
209 };
210
211 [
212 contract(Windows.Foundation.UniversalApiContract, 1.0),
213 flags
214 ]
215 enum BluetoothServiceCapabilities
216 {
217 None = 0x0,
218 LimitedDiscoverableMode = 0x1,
219 PositioningService = 0x8,
220 NetworkingService = 0x10,
221 RenderingService = 0x20,
222 CapturingService = 0x40,
223 ObjectTransferService = 0x80,
224 AudioService = 0x100,
225 TelephoneService = 0x200,
226 InformationService = 0x400,
227 };
228
229 [
230 contract(Windows.Foundation.UniversalApiContract, 1.0)
231 ]
232 enum BluetoothError
233 {
234 Success = 0,
235 RadioNotAvailable = 1,
236 ResourceInUse = 2,
237 DeviceNotConnected = 3,
238 OtherError = 4,
239 DisabledByPolicy = 5,
240 NotSupported = 6,
241 [contract(Windows.Foundation.UniversalApiContract, 2.0)]
242 DisabledByUser = 7,
243 [contract(Windows.Foundation.UniversalApiContract, 3.0)]
244 ConsentRequired = 8,
245 [contract(Windows.Foundation.UniversalApiContract, 4.0)]
246 TransportNotSupported = 9,
247 };
248
249 [
250 contract(Windows.Foundation.UniversalApiContract, 2.0)
251 ]
252 enum BluetoothAddressType
253 {
254 Public = 0,
255 Random = 1,
256 [contract(Windows.Foundation.UniversalApiContract, 4.0)]
257 Unspecified = 2,
258 };
259
260 [
261 contract(Windows.Foundation.UniversalApiContract, 4.0),
262 exclusiveto(Windows.Devices.Bluetooth.BluetoothAdapter),
263 uuid(7974f04c-5f7a-4a34-9225-a855f84b1a8b)
264 ]
265 interface IBluetoothAdapter : IInspectable
266 {
267 [propget] HRESULT DeviceId([out, retval] HSTRING *value);
268 [propget] HRESULT BluetoothAddress([out, retval] UINT64 *value);
269 [propget] HRESULT IsClassicSupported([out, retval] boolean *value);
270 [propget] HRESULT IsLowEnergySupported([out, retval] boolean *value);
271 [propget] HRESULT IsPeripheralRoleSupported([out, retval] boolean *value);
272 [propget] HRESULT IsCentralRoleSupported([out, retval] boolean *value);
273 [propget] HRESULT IsAdvertisementOffloadSupported([out, retval] boolean *value);
274 HRESULT GetRadioAsync([out, retval] Windows.Foundation.IAsyncOperation<Windows.Devices.Radios.Radio *> **operation);
275 }
276
277 [
278 contract(Windows.Foundation.UniversalApiContract, 4.0),
279 exclusiveto(Windows.Devices.Bluetooth.BluetoothAdapter),
280 uuid(8b02fb6a-ac4c-4741-8661-8eab7d17ea9f)
281 ]
282 interface IBluetoothAdapterStatics : IInspectable
283 {
284 HRESULT GetDeviceSelector([out, retval] HSTRING *result);
285 HRESULT FromIdAsync([in] HSTRING id, [out, retval] Windows.Foundation.IAsyncOperation<Windows.Devices.Bluetooth.BluetoothAdapter *> **operation);
286 HRESULT GetDefaultAsync([out, retval] Windows.Foundation.IAsyncOperation<Windows.Devices.Bluetooth.BluetoothAdapter *> **operation);
287 }
288
289 [
290 contract(Windows.Foundation.UniversalApiContract, 4.0),
291 marshaling_behavior(agile),
292 static(Windows.Devices.Bluetooth.IBluetoothAdapterStatics, Windows.Foundation.UniversalApiContract, 4.0),
293 threading(both)
294 ]
295 runtimeclass BluetoothAdapter
296 {
297 [default] interface Windows.Devices.Bluetooth.IBluetoothAdapter;
298 /* [contract(Windows.Foundation.UniversalApiContract, 6.0)] interface Windows.Devices.Bluetooth.IBluetoothAdapter2; */
299 /* [contract(Windows.Foundation.UniversalApiContract, 10.0)] interface Windows.Devices.Bluetooth.IBluetoothAdapter3; */
300 }
301
302 [
303 contract(Windows.Foundation.UniversalApiContract, 1.0),
304 exclusiveto(Windows.Devices.Bluetooth.BluetoothClassOfDevice),
305 uuid(d640227e-d7d7-4661-9454-65039ca17a2b)
306 ]
307 interface IBluetoothClassOfDevice : IInspectable
308 {
309 [propget] HRESULT RawValue([out, retval] UINT32 *value);
310 [propget] HRESULT MajorClass([out, retval] Windows.Devices.Bluetooth.BluetoothMajorClass *value);
311 [propget] HRESULT MinorClass([out, retval] Windows.Devices.Bluetooth.BluetoothMinorClass *value);
312 [propget] HRESULT ServiceCapabilities([out, retval] Windows.Devices.Bluetooth.BluetoothServiceCapabilities *value);
313 }
314
315 [
316 contract(Windows.Foundation.UniversalApiContract, 1.0),
317 exclusiveto(Windows.Devices.Bluetooth.BluetoothClassOfDevice),
318 uuid(e46135bd-0fa2-416c-91b4-c1e48ca061c1)
319 ]
320 interface IBluetoothClassOfDeviceStatics : IInspectable
321 {
322 HRESULT FromRawValue([in] UINT32 raw_value, [out, retval] Windows.Devices.Bluetooth.BluetoothClassOfDevice **cod);
323 HRESULT FromParts([in] Windows.Devices.Bluetooth.BluetoothMajorClass major,
324 [in] Windows.Devices.Bluetooth.BluetoothMinorClass minor,
325 [in] Windows.Devices.Bluetooth.BluetoothServiceCapabilities capabilities,
326 [out, retval] Windows.Devices.Bluetooth.BluetoothClassOfDevice **cod);
327 }
328
329 [
330 contract(Windows.Foundation.UniversalApiContract, 1.0),
331 marshaling_behavior(agile),
332 static(Windows.Devices.Bluetooth.IBluetoothClassOfDeviceStatics, Windows.Foundation.UniversalApiContract, 1.0),
333 threading(both)
334 ]
335 runtimeclass BluetoothClassOfDevice
336 {
337 [default] interface Windows.Devices.Bluetooth.IBluetoothClassOfDevice;
338 }
339
340 [
341 contract(Windows.Foundation.UniversalApiContract, 1.0),
342 exclusiveto(Windows.Devices.Bluetooth.BluetoothDevice),
343 uuid(2335b156-90d2-4a04-aef5-0e20b9e6b707)
344 ]
345 interface IBluetoothDevice : IInspectable
346 {
347 [propget] HRESULT DeviceId([out, retval] HSTRING *value);
348 [propget] HRESULT HostName([out, retval] Windows.Networking.HostName **value);
349 [propget] HRESULT Name([out, retval] HSTRING *value);
350 [propget] HRESULT ClassOfDevice([out, retval] Windows.Devices.Bluetooth.BluetoothClassOfDevice **value);
351 [propget] HRESULT SdpRecords([out, retval] Windows.Foundation.Collections.IVectorView<Windows.Storage.Streams.IBuffer *> **value);
352 [propget] HRESULT RfcommServices([out, retval] Windows.Foundation.Collections.IVectorView<Windows.Devices.Bluetooth.Rfcomm.RfcommDeviceService *> **value);
353 [propget] HRESULT ConnectionStatus([out, retval] Windows.Devices.Bluetooth.BluetoothConnectionStatus *value);
354 [propget] HRESULT BluetoothAddress([out, retval] UINT64 *value);
355 [eventadd] HRESULT NameChanged([in] Windows.Foundation.TypedEventHandler<Windows.Devices.Bluetooth.BluetoothDevice *, IInspectable *> *handler,
356 [out, retval] EventRegistrationToken *token);
357 [eventremove] HRESULT NameChanged([in] EventRegistrationToken token);
358 [eventadd] HRESULT SdpRecordsChanged([in] Windows.Foundation.TypedEventHandler<Windows.Devices.Bluetooth.BluetoothDevice*, IInspectable *> *handler,
359 [out, retval] EventRegistrationToken *token);
360 [eventremove] HRESULT SdpRecordsChanged([in] EventRegistrationToken token);
361 [eventadd] HRESULT ConnectionStatusChanged([in] Windows.Foundation.TypedEventHandler<Windows.Devices.Bluetooth.BluetoothDevice *, IInspectable *> *handler,
362 [out, retval] EventRegistrationToken *token);
363 [eventremove] HRESULT ConnectionStatusChanged([in] EventRegistrationToken token);
364 }
365
366 [
367 contract(Windows.Foundation.UniversalApiContract, 1.0),
368 exclusiveto(Windows.Devices.Bluetooth.BluetoothDevice),
369 uuid(0991df51-57db-4725-bbd7-84f64327ec2c)
370 ]
371 interface IBluetoothDeviceStatics : IInspectable
372 {
373 HRESULT FromIdAsync([in] HSTRING id, [out, retval] Windows.Foundation.IAsyncOperation<Windows.Devices.Bluetooth.BluetoothDevice *> **operation);
374 HRESULT FromHostNameAsync([in] Windows.Networking.HostName *name,
375 [out, retval] Windows.Foundation.IAsyncOperation<Windows.Devices.Bluetooth.BluetoothDevice *> **operation);
376 HRESULT FromBluetoothAddressAsync([in] UINT64 address,
377 [out, retval] Windows.Foundation.IAsyncOperation<Windows.Devices.Bluetooth.BluetoothDevice *> **operation);
378 HRESULT GetDeviceSelector([out, retval] HSTRING *selector);
379 }
380
381 [
382 contract(Windows.Foundation.UniversalApiContract, 1.0),
383 marshaling_behavior(agile),
384 static(Windows.Devices.Bluetooth.IBluetoothDeviceStatics, Windows.Foundation.UniversalApiContract, 1.0),
385 /* static(Windows.Devices.Bluetooth.IBluetoothDeviceStatics2, Windows.Foundation.UniversalApiContract, 2.0), */
386 threading(both)
387 ]
388 runtimeclass BluetoothDevice
389 {
390 [default] interface Windows.Devices.Bluetooth.IBluetoothDevice;
391 /* [contract(Windows.Foundation.UniversalApiContract, 2.0)] interface Windows.Devices.Bluetooth.IBluetoothDevice2; */
392 /* [contract(Windows.Foundation.UniversalApiContract, 3.0)] interface Windows.Devices.Bluetooth.IBluetoothDevice3; */
393 /* [contract(Windows.Foundation.UniversalApiContract, 5.0)] interface Windows.Devices.Bluetooth.IBluetoothDevice4; */
394 /* [contract(Windows.Foundation.UniversalApiContract, 6.0)] interface Windows.Devices.Bluetooth.IBluetoothDevice5; */
395 interface Windows.Foundation.IClosable;
396 }
397
398 [
399 contract(Windows.Foundation.UniversalApiContract, 4.0),
400 exclusiveto(Windows.Devices.Bluetooth.BluetoothDeviceId),
401 uuid(c17949af-57c1-4642-bcce-e6c06b20ae76)
402 ]
403 interface IBluetoothDeviceId : IInspectable
404 {
405 [propget] HRESULT Id([out, retval] HSTRING *value);
406 [propget] HRESULT IsClassicDevice([out, retval] boolean *value);
407 [propget] HRESULT IsLowEnergyDevice([out, retval] boolean *value);
408 }
409
410 [
411 contract(Windows.Foundation.UniversalApiContract, 5.0),
412 exclusiveto(Windows.Devices.Bluetooth.BluetoothDeviceId),
413 uuid(a7884e67-3efb-4f31-bbc2-810e09977404)
414 ]
415 interface IBluetoothDeviceIdStatics : IInspectable
416 {
417 HRESULT FromId([in] HSTRING id, [out, retval] Windows.Devices.Bluetooth.BluetoothDeviceId **result);
418 }
419
420 [
421 contract(Windows.Foundation.UniversalApiContract, 4.0),
422 marshaling_behavior(agile),
423 static(Windows.Devices.Bluetooth.IBluetoothDeviceIdStatics, Windows.Foundation.UniversalApiContract, 5.0),
424 threading(both)
425 ]
426 runtimeclass BluetoothDeviceId
427 {
428 [default] interface Windows.Devices.Bluetooth.IBluetoothDeviceId;
429 }
430
431 [
432 contract(Windows.Foundation.UniversalApiContract, 1.0),
433 exclusiveto(Windows.Devices.Bluetooth.BluetoothLEDevice),
434 uuid(b5ee2f7b-4ad8-4642-ac48-80a0b500e887)
435 ]
436 interface IBluetoothLEDevice : IInspectable
437 {
438 [propget] HRESULT DeviceId([out, retval] HSTRING *value);
439 [propget] HRESULT Name([out, retval] HSTRING *value);
440 [propget] HRESULT GattServices([out, retval] Windows.Foundation.Collections.IVectorView<Windows.Devices.Bluetooth.GenericAttributeProfile.GattDeviceService *> **value);
441 [propget] HRESULT ConnectionStatus([out, retval] Windows.Devices.Bluetooth.BluetoothConnectionStatus *value);
442 [propget] HRESULT BluetoothAddress([out, retval] UINT64 *value);
443 HRESULT GetGattService([in] GUID uuid,
444 [out, retval] Windows.Devices.Bluetooth.GenericAttributeProfile.GattDeviceService **service);
445 [eventadd] HRESULT NameChanged([in] Windows.Foundation.TypedEventHandler<Windows.Devices.Bluetooth.BluetoothLEDevice *, IInspectable *> *handler,
446 [out, retval] EventRegistrationToken *token);
447 [eventremove] HRESULT NameChanged([in] EventRegistrationToken token);
448 [eventadd] HRESULT GattServicesChanged([in] Windows.Foundation.TypedEventHandler<Windows.Devices.Bluetooth.BluetoothLEDevice *, IInspectable *> *handler,
449 [out, retval] EventRegistrationToken *token);
450 [eventremove] HRESULT GattServicesChanged([in] EventRegistrationToken token);
451 [eventadd] HRESULT ConnectionStatusChanged([in] Windows.Foundation.TypedEventHandler<Windows.Devices.Bluetooth.BluetoothLEDevice *, IInspectable *> *handler,
452 [out, retval] EventRegistrationToken *token);
453 [eventremove] HRESULT ConnectionStatusChanged([in] EventRegistrationToken token);
454 }
455
456 [
457 contract(Windows.Foundation.UniversalApiContract, 1.0),
458 exclusiveto(Windows.Devices.Bluetooth.BluetoothLEDevice),
459 uuid(c8cf1a19-f0b6-4bf0-8689-41303de2d9f4)
460 ]
461 interface IBluetoothLEDeviceStatics : IInspectable
462 {
463 HRESULT FromIdAsync([in] HSTRING id,
464 [out, retval] Windows.Foundation.IAsyncOperation<Windows.Devices.Bluetooth.BluetoothLEDevice *> **async);
465 [overload("FromBluetoothAddressAsync")]
466 HRESULT FromBluetoothAddressAsync([in] UINT64 addr,
467 [out, retval] Windows.Foundation.IAsyncOperation<Windows.Devices.Bluetooth.BluetoothLEDevice *> **async);
468 HRESULT GetDeviceSelector([out, retval] HSTRING *result);
469 }
470
471 [
472 contract(Windows.Foundation.UniversalApiContract, 1.0),
473 marshaling_behavior(agile),
474 static(Windows.Devices.Bluetooth.IBluetoothLEDeviceStatics, Windows.Foundation.UniversalApiContract, 1.0),
475 /* static(Windows.Devices.Bluetooth.IBluetoothLEDeviceStatics2, Windows.Foundation.UniversalApiContract, 2.0), */
476 threading(both)
477 ]
478 runtimeclass BluetoothLEDevice
479 {
480 [default] interface Windows.Devices.Bluetooth.IBluetoothLEDevice;
481 /* [contract(Windows.Foundation.UniversalApiContract, 2.0)] interface Windows.Devices.Bluetooth.IBluetoothLEDevice2; */
482 /* [contract(Windows.Foundation.UniversalApiContract, 4.0)] interface Windows.Devices.Bluetooth.IBluetoothLEDevice3; */
483 /* [contract(Windows.Foundation.UniversalApiContract, 5.0)] interface Windows.Devices.Bluetooth.IBluetoothLEDevice4; */
484 /* [contract(Windows.Foundation.UniversalApiContract, 6.0)] interface Windows.Devices.Bluetooth.IBluetoothLEDevice5; */
485 /* [contract(Windows.Foundation.UniversalApiContract, 13.0)] interface Windows.Devices.Bluetooth.IBluetoothLEDevice6; */
486 interface Windows.Foundation.IClosable;
487 }
488
489 [
490 contract(Windows.Foundation.UniversalApiContract, 1.0),
491 exclusiveto(Windows.Devices.Bluetooth.BluetoothSignalStrengthFilter),
492 uuid(df7b7391-6bb5-4cfe-90b1-5d7324edcf7f)
493 ]
494 interface IBluetoothSignalStrengthFilter : IInspectable
495 {
496 [propget] HRESULT InRangeThresholdInDBm([out, retval] Windows.Foundation.IReference<INT16> **value);
497 [propput] HRESULT InRangeThresholdInDBm([in] Windows.Foundation.IReference<INT16> *value);
498 [propget] HRESULT OutOfRangeThresholdInDBm([out, retval] Windows.Foundation.IReference<INT16> **value);
499 [propput] HRESULT OutOfRangeThresholdInDBm([in] Windows.Foundation.IReference<INT16> *value);
500 [propget] HRESULT OutOfRangeTimeout([out, retval] Windows.Foundation.IReference<Windows.Foundation.TimeSpan> **value);
501 [propput] HRESULT OutOfRangeTimeout([in] Windows.Foundation.IReference<Windows.Foundation.TimeSpan> *value);
502 [propget] HRESULT SamplingInterval([out, retval] Windows.Foundation.IReference<Windows.Foundation.TimeSpan> **value);
503 [propput] HRESULT SamplingInterval([in] Windows.Foundation.IReference<Windows.Foundation.TimeSpan> *value);
504 }
505
506 [
507 contract(Windows.Foundation.UniversalApiContract, 1.0),
508 activatable(Windows.Foundation.UniversalApiContract, 1.0),
509 marshaling_behavior(agile),
510 threading(both)
511 ]
512 runtimeclass BluetoothSignalStrengthFilter
513 {
514 [default] interface Windows.Devices.Bluetooth.IBluetoothSignalStrengthFilter;
515 }
516 }