| 1 |
/* |
| 2 |
* Copyright 2025 Vibhav Pant |
| 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.storage.streams.idl"; |
| 29 |
import "windows.devices.bluetooth.idl"; |
| 30 |
|
| 31 |
namespace Windows.Devices.Bluetooth { |
| 32 |
typedef enum BluetoothAddressType BluetoothAddressType; |
| 33 |
typedef enum BluetoothError BluetoothError; |
| 34 |
|
| 35 |
runtimeclass BluetoothSignalStrengthFilter; |
| 36 |
} |
| 37 |
|
| 38 |
namespace Windows.Devices.Bluetooth.Advertisement { |
| 39 |
typedef enum BluetoothLEAdvertisementFlags BluetoothLEAdvertisementFlags; |
| 40 |
typedef enum BluetoothLEAdvertisementWatcherStatus BluetoothLEAdvertisementWatcherStatus; |
| 41 |
typedef enum BluetoothLEScanningMode BluetoothLEScanningMode; |
| 42 |
typedef enum BluetoothLEAdvertisementType BluetoothLEAdvertisementType; |
| 43 |
typedef enum BluetoothLEAdvertisementPhyType BluetoothLEAdvertisementPhyType; |
| 44 |
|
| 45 |
interface IBluetoothLEManufacturerData; |
| 46 |
interface IBluetoothLEAdvertisementDataSection; |
| 47 |
interface IBluetoothLEAdvertisementDataSectionFactory; |
| 48 |
interface IBluetoothLEManufacturerData; |
| 49 |
interface IBluetoothLEManufacturerDataFactory; |
| 50 |
interface IBluetoothLEAdvertisementWatcher; |
| 51 |
interface IBluetoothLEAdvertisementWatcher2; |
| 52 |
interface IBluetoothLEAdvertisementWatcher3; |
| 53 |
interface IBluetoothLEAdvertisementFilter; |
| 54 |
interface IBluetoothLEAdvertisementReceivedEventArgs; |
| 55 |
interface IBluetoothLEAdvertisementReceivedEventArgs2; |
| 56 |
interface IBluetoothLEAdvertisementReceivedEventArgs3; |
| 57 |
interface IBluetoothLEAdvertisementWatcherStoppedEventArgs; |
| 58 |
interface IBluetoothLEAdvertisementBytePattern; |
| 59 |
interface IBluetoothLEAdvertisementBytePatternFactory; |
| 60 |
interface IBluetoothLEAdvertisementScanParameters; |
| 61 |
interface IBluetoothLEAdvertisementScanParametersStatics; |
| 62 |
|
| 63 |
|
| 64 |
runtimeclass BluetoothLEAdvertisement; |
| 65 |
runtimeclass BluetoothLEManufacturerData; |
| 66 |
runtimeclass BluetoothLEAdvertisementDataSection; |
| 67 |
runtimeclass BluetoothLEManufacturerData; |
| 68 |
runtimeclass BluetoothLEAdvertisementWatcher; |
| 69 |
runtimeclass BluetoothLEAdvertisementFilter; |
| 70 |
runtimeclass BluetoothLEAdvertisementReceivedEventArgs; |
| 71 |
runtimeclass BluetoothLEAdvertisementWatcherStoppedEventArgs; |
| 72 |
runtimeclass BluetoothLEAdvertisementBytePattern; |
| 73 |
runtimeclass BluetoothLEAdvertisementScanParameters; |
| 74 |
|
| 75 |
declare { |
| 76 |
interface Windows.Foundation.IReference<Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementFlags>; |
| 77 |
interface Windows.Foundation.Collections.IVector<GUID>; |
| 78 |
interface Windows.Foundation.Collections.IVector<Windows.Devices.Bluetooth.Advertisement.BluetoothLEManufacturerData *>; |
| 79 |
interface Windows.Foundation.Collections.IVector<Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementDataSection *>; |
| 80 |
interface Windows.Foundation.Collections.IVector<Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementBytePattern *>; |
| 81 |
interface Windows.Foundation.Collections.IVectorView<GUID>; |
| 82 |
interface Windows.Foundation.Collections.IVectorView<Windows.Devices.Bluetooth.Advertisement.BluetoothLEManufacturerData *>; |
| 83 |
interface Windows.Foundation.Collections.IVectorView<Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementDataSection *>; |
| 84 |
interface Windows.Foundation.Collections.IVectorView<Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementBytePattern *>; |
| 85 |
interface Windows.Foundation.Collections.IIterable<GUID>; |
| 86 |
interface Windows.Foundation.Collections.IIterable<Windows.Devices.Bluetooth.Advertisement.BluetoothLEManufacturerData *>; |
| 87 |
interface Windows.Foundation.Collections.IIterable<Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementDataSection *>; |
| 88 |
interface Windows.Foundation.Collections.IIterable<Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementBytePattern *>; |
| 89 |
interface Windows.Foundation.Collections.IIterator<GUID>; |
| 90 |
interface Windows.Foundation.Collections.IIterator<Windows.Devices.Bluetooth.Advertisement.BluetoothLEManufacturerData *>; |
| 91 |
interface Windows.Foundation.Collections.IIterator<Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementDataSection *>; |
| 92 |
interface Windows.Foundation.Collections.IIterator<Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementBytePattern *>; |
| 93 |
interface Windows.Foundation.TypedEventHandler<Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcher *, Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementReceivedEventArgs *>; |
| 94 |
interface Windows.Foundation.TypedEventHandler<Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcher *, Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcherStoppedEventArgs *>; |
| 95 |
} |
| 96 |
|
| 97 |
[ |
| 98 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 99 |
flags |
| 100 |
] |
| 101 |
enum BluetoothLEAdvertisementFlags |
| 102 |
{ |
| 103 |
None = 0x00, |
| 104 |
LimitedDiscoverableMode = 0x01, |
| 105 |
GeneralDiscoverableMode = 0x02, |
| 106 |
ClassicNotSupported = 0x04, |
| 107 |
DualModeControllerCapable = 0x08, |
| 108 |
DualModeHostCapable = 0x10, |
| 109 |
}; |
| 110 |
|
| 111 |
[ |
| 112 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 113 |
] |
| 114 |
enum BluetoothLEAdvertisementPublisherStatus |
| 115 |
{ |
| 116 |
Created = 0, |
| 117 |
Waiting = 1, |
| 118 |
Started = 2, |
| 119 |
Stopping = 3, |
| 120 |
Stopped = 4, |
| 121 |
Aborted = 5, |
| 122 |
}; |
| 123 |
|
| 124 |
[ |
| 125 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 126 |
] |
| 127 |
enum BluetoothLEAdvertisementType |
| 128 |
{ |
| 129 |
ConnectableUndirected = 0, |
| 130 |
ConnectableDirected = 1, |
| 131 |
ScannableUndirected = 2, |
| 132 |
NonConnectableUndirected = 3, |
| 133 |
ScanResponse = 4, |
| 134 |
[contract(Windows.Foundation.UniversalApiContract, 10.0)] |
| 135 |
Extended = 5, |
| 136 |
}; |
| 137 |
|
| 138 |
[ |
| 139 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 140 |
] |
| 141 |
enum BluetoothLEAdvertisementWatcherStatus |
| 142 |
{ |
| 143 |
Created = 0, |
| 144 |
Started = 1, |
| 145 |
Stopping = 2, |
| 146 |
Stopped = 3, |
| 147 |
Aborted = 4, |
| 148 |
}; |
| 149 |
|
| 150 |
[ |
| 151 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 152 |
] |
| 153 |
enum BluetoothLEScanningMode |
| 154 |
{ |
| 155 |
Passive = 0, |
| 156 |
Active = 1, |
| 157 |
[contract(Windows.Foundation.UniversalApiContract, 10.0)] |
| 158 |
None = 2, |
| 159 |
}; |
| 160 |
|
| 161 |
[ |
| 162 |
contract(Windows.Foundation.UniversalApiContract, 19.0), |
| 163 |
] |
| 164 |
enum BluetoothLEAdvertisementPhyType |
| 165 |
{ |
| 166 |
Unspecified = 0, |
| 167 |
Uncoded1MPhy = 1, |
| 168 |
Uncoded2MPhy = 2, |
| 169 |
CodedPhy = 3, |
| 170 |
}; |
| 171 |
|
| 172 |
[ |
| 173 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 174 |
exclusiveto(Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisement), |
| 175 |
uuid(066fb2b7-33d1-4e7d-8367-cf81d0f79653) |
| 176 |
] |
| 177 |
interface IBluetoothLEAdvertisement : IInspectable |
| 178 |
{ |
| 179 |
[propget] HRESULT Flags([out, retval] Windows.Foundation.IReference<Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementFlags> **value); |
| 180 |
[propput] HRESULT Flags([in] Windows.Foundation.IReference<Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementFlags> *value); |
| 181 |
[propget] HRESULT LocalName([out, retval] HSTRING *value); |
| 182 |
[propput] HRESULT LocalName([in] HSTRING value); |
| 183 |
[propget] HRESULT ServiceUuids([out, retval] Windows.Foundation.Collections.IVector<GUID> **value); |
| 184 |
[propget] HRESULT ManufacturerData([out, retval] Windows.Foundation.Collections.IVector<Windows.Devices.Bluetooth.Advertisement.BluetoothLEManufacturerData *> **value); |
| 185 |
[propget] HRESULT DataSections([out, retval] Windows.Foundation.Collections.IVector<Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementDataSection *> **value); |
| 186 |
HRESULT GetManufacturerDataByCompanyId([in] UINT16 id, [out, retval] Windows.Foundation.Collections.IVectorView<Windows.Devices.Bluetooth.Advertisement.BluetoothLEManufacturerData *> **value); |
| 187 |
HRESULT GetSectionsByType([in] BYTE type, [out, retval] Windows.Foundation.Collections.IVectorView<Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementDataSection *> **value); |
| 188 |
} |
| 189 |
|
| 190 |
[ |
| 191 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 192 |
activatable(Windows.Foundation.UniversalApiContract, 1.0), |
| 193 |
marshaling_behavior(agile), |
| 194 |
threading(both) |
| 195 |
] |
| 196 |
runtimeclass BluetoothLEAdvertisement |
| 197 |
{ |
| 198 |
[default] interface Windows.Devices.Bluetooth.Advertisement.IBluetoothLEAdvertisement; |
| 199 |
} |
| 200 |
|
| 201 |
[ |
| 202 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 203 |
exclusiveto(Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementDataSection), |
| 204 |
uuid(d7213314-3a43-40f9-b6f0-92bfefc34ae3) |
| 205 |
] |
| 206 |
interface IBluetoothLEAdvertisementDataSection : IInspectable |
| 207 |
{ |
| 208 |
[propget] HRESULT DataType([out, retval] BYTE *value); |
| 209 |
[propput] HRESULT DataType([in] BYTE value); |
| 210 |
[propget] HRESULT Data([out, retval] Windows.Storage.Streams.IBuffer **value); |
| 211 |
[propput] HRESULT Data([in] Windows.Storage.Streams.IBuffer *value); |
| 212 |
} |
| 213 |
|
| 214 |
[ |
| 215 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 216 |
exclusiveto(Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementDataSection), |
| 217 |
uuid(e7a40942-a845-4045-bf7e-3e9971db8a6b) |
| 218 |
] |
| 219 |
interface IBluetoothLEAdvertisementDataSectionFactory : IInspectable |
| 220 |
{ |
| 221 |
HRESULT Create([in] BYTE type, [in] Windows.Storage.Streams.IBuffer *data, |
| 222 |
[out, retval] Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementDataSection **value); |
| 223 |
} |
| 224 |
|
| 225 |
[ |
| 226 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 227 |
activatable(Windows.Foundation.UniversalApiContract, 1.0), |
| 228 |
activatable(Windows.Devices.Bluetooth.Advertisement.IBluetoothLEAdvertisementDataSectionFactory, Windows.Foundation.UniversalApiContract, 1.0), |
| 229 |
marshaling_behavior(agile), |
| 230 |
threading(both) |
| 231 |
] |
| 232 |
runtimeclass BluetoothLEAdvertisementDataSection |
| 233 |
{ |
| 234 |
[default] interface Windows.Devices.Bluetooth.Advertisement.IBluetoothLEAdvertisementDataSection; |
| 235 |
} |
| 236 |
|
| 237 |
[ |
| 238 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 239 |
exclusiveto(Windows.Devices.Bluetooth.Advertisement.BluetoothLEManufacturerData), |
| 240 |
uuid(912dba18-6963-4533-b061-4694dafb34e5) |
| 241 |
] |
| 242 |
interface IBluetoothLEManufacturerData : IInspectable |
| 243 |
{ |
| 244 |
[propget] HRESULT CompanyId([out, retval] UINT16 *value); |
| 245 |
[propput] HRESULT CompanyId([in] UINT16 value); |
| 246 |
[propget] HRESULT Data([out, retval] Windows.Storage.Streams.IBuffer **value); |
| 247 |
[propput] HRESULT Data([in] Windows.Storage.Streams.IBuffer *value); |
| 248 |
} |
| 249 |
|
| 250 |
[ |
| 251 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 252 |
exclusiveto(Windows.Devices.Bluetooth.Advertisement.BluetoothLEManufacturerData), |
| 253 |
uuid(c09b39f8-319a-441e-8de5-66a81e877a6c) |
| 254 |
] |
| 255 |
interface IBluetoothLEManufacturerDataFactory : IInspectable |
| 256 |
{ |
| 257 |
HRESULT Create([in] UINT16 id, [in] Windows.Storage.Streams.IBuffer *data, |
| 258 |
[out, retval] Windows.Devices.Bluetooth.Advertisement.BluetoothLEManufacturerData **value); |
| 259 |
} |
| 260 |
|
| 261 |
[ |
| 262 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 263 |
activatable(Windows.Foundation.UniversalApiContract, 1.0), |
| 264 |
activatable(Windows.Devices.Bluetooth.Advertisement.IBluetoothLEManufacturerDataFactory, Windows.Foundation.UniversalApiContract, 1.0), |
| 265 |
marshaling_behavior(agile), |
| 266 |
threading(both) |
| 267 |
] |
| 268 |
runtimeclass BluetoothLEManufacturerData |
| 269 |
{ |
| 270 |
[default] interface Windows.Devices.Bluetooth.Advertisement.IBluetoothLEManufacturerData; |
| 271 |
} |
| 272 |
|
| 273 |
[ |
| 274 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 275 |
exclusiveto(Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcher), |
| 276 |
uuid(a6ac336f-f3d3-4297-8d6c-c81ea6623f40) |
| 277 |
] |
| 278 |
interface IBluetoothLEAdvertisementWatcher : IInspectable |
| 279 |
{ |
| 280 |
[propget] HRESULT MinSamplingInterval([out, retval] Windows.Foundation.TimeSpan *value); |
| 281 |
[propget] HRESULT MaxSamplingInterval([out, retval] Windows.Foundation.TimeSpan *value); |
| 282 |
[propget] HRESULT MinOutOfRangeTimeout([out, retval] Windows.Foundation.TimeSpan *value); |
| 283 |
[propget] HRESULT MaxOutOfRangeTimeout([out, retval] Windows.Foundation.TimeSpan *value); |
| 284 |
[propget] HRESULT Status([out, retval] Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcherStatus *value); |
| 285 |
[propget] HRESULT ScanningMode([out, retval] Windows.Devices.Bluetooth.Advertisement.BluetoothLEScanningMode *value); |
| 286 |
[propput] HRESULT ScanningMode([in] Windows.Devices.Bluetooth.Advertisement.BluetoothLEScanningMode value); |
| 287 |
[propget] HRESULT SignalStrengthFilter([out, retval] Windows.Devices.Bluetooth.BluetoothSignalStrengthFilter **value); |
| 288 |
[propput] HRESULT SignalStrengthFilter([in] Windows.Devices.Bluetooth.BluetoothSignalStrengthFilter *value); |
| 289 |
[propget] HRESULT AdvertisementFilter([out, retval] Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementFilter **value); |
| 290 |
[propput] HRESULT AdvertisementFilter([in] Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementFilter *value); |
| 291 |
HRESULT Start(); |
| 292 |
HRESULT Stop(); |
| 293 |
[eventadd] HRESULT Received([in] Windows.Foundation.TypedEventHandler<Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcher *, Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementReceivedEventArgs *> *handler, |
| 294 |
[out, retval] EventRegistrationToken *token); |
| 295 |
[eventremove] HRESULT Received([in] EventRegistrationToken token); |
| 296 |
[eventadd] HRESULT Stopped([in] Windows.Foundation.TypedEventHandler<Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcher *, Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcherStoppedEventArgs *> *handler, |
| 297 |
[out, retval] EventRegistrationToken *token); |
| 298 |
[eventremove] HRESULT Stopped([in] EventRegistrationToken token); |
| 299 |
} |
| 300 |
|
| 301 |
[ |
| 302 |
contract(Windows.Foundation.UniversalApiContract, 10.0), |
| 303 |
exclusiveto(Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcher), |
| 304 |
uuid(01bf26bc-b164-5805-90a3-e8a7997ff225) |
| 305 |
] |
| 306 |
interface IBluetoothLEAdvertisementWatcher2 : IInspectable |
| 307 |
{ |
| 308 |
[propget] HRESULT AllowExtendedAdvertisements([out, retval] boolean *value); |
| 309 |
[propput] HRESULT AllowExtendedAdvertisements([in] boolean value); |
| 310 |
} |
| 311 |
|
| 312 |
[ |
| 313 |
contract(Windows.Foundation.UniversalApiContract, 19.0), |
| 314 |
exclusiveto(Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcher), |
| 315 |
uuid(14d980be-4002-5dbe-8519-ffca6ca389f0) |
| 316 |
] |
| 317 |
interface IBluetoothLEAdvertisementWatcher3 : IInspectable |
| 318 |
{ |
| 319 |
[propget] HRESULT UseUncoded1MPhy([out, retval] boolean *value); |
| 320 |
[propput] HRESULT UseUncoded1MPhy([in] boolean value); |
| 321 |
[propget] HRESULT UseCodedPhy([out, retval] boolean *value); |
| 322 |
[propput] HRESULT UseCodedPhy([in] boolean value); |
| 323 |
[propget] HRESULT ScanParameters([out, retval] Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementScanParameters **value); |
| 324 |
[propput] HRESULT ScanParameters([in] Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementScanParameters *value); |
| 325 |
[propget] HRESULT UseHardwareFilter([out, retval] boolean *value); |
| 326 |
[propput] HRESULT UseHardwareFilter([in] boolean value); |
| 327 |
} |
| 328 |
|
| 329 |
[ |
| 330 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 331 |
exclusiveto(Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcher), |
| 332 |
uuid(9aaf2d56-39ac-453e-b32a-85c657e017f1) |
| 333 |
] |
| 334 |
interface IBluetoothLEAdvertisementWatcherFactory : IInspectable |
| 335 |
{ |
| 336 |
HRESULT Create([in] Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementFilter *filter, |
| 337 |
[out, retval] Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcher **value); |
| 338 |
} |
| 339 |
|
| 340 |
[ |
| 341 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 342 |
activatable(Windows.Foundation.UniversalApiContract, 1.0), |
| 343 |
activatable(Windows.Devices.Bluetooth.Advertisement.IBluetoothLEAdvertisementWatcherFactory, Windows.Foundation.UniversalApiContract, 1.0), |
| 344 |
marshaling_behavior(agile), |
| 345 |
threading(both) |
| 346 |
] |
| 347 |
runtimeclass BluetoothLEAdvertisementWatcher |
| 348 |
{ |
| 349 |
[default] interface Windows.Devices.Bluetooth.Advertisement.IBluetoothLEAdvertisementWatcher; |
| 350 |
[contract(Windows.Foundation.UniversalApiContract, 10.0)] interface Windows.Devices.Bluetooth.Advertisement.IBluetoothLEAdvertisementWatcher2; |
| 351 |
[contract(Windows.Foundation.UniversalApiContract, 19.0)] interface Windows.Devices.Bluetooth.Advertisement.IBluetoothLEAdvertisementWatcher3; |
| 352 |
} |
| 353 |
|
| 354 |
[ |
| 355 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 356 |
exclusiveto(Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementFilter), |
| 357 |
uuid(131eb0d3-d04e-47b1-837e-49405bf6f80f) |
| 358 |
] |
| 359 |
interface IBluetoothLEAdvertisementFilter : IInspectable |
| 360 |
{ |
| 361 |
[propget] HRESULT Advertisement([out, retval] Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisement **value); |
| 362 |
[propput] HRESULT Advertisement([in] Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisement *value); |
| 363 |
[propget] HRESULT BytePatterns([out, retval] Windows.Foundation.Collections.IVector<Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementBytePattern *> **value); |
| 364 |
} |
| 365 |
|
| 366 |
[ |
| 367 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 368 |
activatable(Windows.Foundation.UniversalApiContract, 1.0), |
| 369 |
marshaling_behavior(agile), |
| 370 |
threading(both) |
| 371 |
] |
| 372 |
runtimeclass BluetoothLEAdvertisementFilter |
| 373 |
{ |
| 374 |
[default] interface Windows.Devices.Bluetooth.Advertisement.IBluetoothLEAdvertisementFilter; |
| 375 |
} |
| 376 |
|
| 377 |
[ |
| 378 |
contract(Windows.Foundation.UniversalApiContract, 10.0), |
| 379 |
exclusiveto(Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementReceivedEventArgs), |
| 380 |
uuid(27987ddf-e596-41be-8d43-9e6731d4a913) |
| 381 |
] |
| 382 |
interface IBluetoothLEAdvertisementReceivedEventArgs : IInspectable |
| 383 |
{ |
| 384 |
[propget] HRESULT RawSignalStrengthInDBm([out, retval] INT16 *value); |
| 385 |
[propget] HRESULT BluetoothAddress([out, retval] UINT64 *value); |
| 386 |
[propget] HRESULT AdvertisementType([out, retval] Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementType *value); |
| 387 |
[propget] HRESULT Timestamp([out, retval] Windows.Foundation.DateTime *value); |
| 388 |
[propget] HRESULT Advertisement([out, retval] Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisement **value); |
| 389 |
} |
| 390 |
|
| 391 |
[ |
| 392 |
contract(Windows.Foundation.UniversalApiContract, 10.0), |
| 393 |
exclusiveto(Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementReceivedEventArgs), |
| 394 |
uuid(12d9c87b-0399-5f0e-a348-53b02b6b162e) |
| 395 |
] |
| 396 |
interface IBluetoothLEAdvertisementReceivedEventArgs2 : IInspectable |
| 397 |
{ |
| 398 |
[propget] HRESULT BluetoothAddressType([out, retval] Windows.Devices.Bluetooth.BluetoothAddressType *value); |
| 399 |
[propget] HRESULT TransmitPowerLevelInDBm([out, retval] Windows.Foundation.IReference<INT16> **value); |
| 400 |
[propget] HRESULT IsAnonymous([out, retval] boolean *value); |
| 401 |
[propget] HRESULT IsConnectable([out, retval] boolean *value); |
| 402 |
[propget] HRESULT IsScannable([out, retval] boolean *value); |
| 403 |
[propget] HRESULT IsDirected([out, retval] boolean *value); |
| 404 |
[propget] HRESULT IsScanResponse([out, retval] boolean *value); |
| 405 |
} |
| 406 |
|
| 407 |
[ |
| 408 |
contract(Windows.Foundation.UniversalApiContract, 19.0), |
| 409 |
exclusiveto(Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementReceivedEventArgs), |
| 410 |
uuid(8d204b54-ff86-5d84-a25a-137dccd96f7a) |
| 411 |
] |
| 412 |
interface IBluetoothLEAdvertisementReceivedEventArgs3 : IInspectable |
| 413 |
{ |
| 414 |
[propget] HRESULT PrimaryPhy([out, retval] Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementPhyType *value); |
| 415 |
[propget] HRESULT SecondaryPhy([out, retval] Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementPhyType *value); |
| 416 |
} |
| 417 |
|
| 418 |
[ |
| 419 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 420 |
marshaling_behavior(agile), |
| 421 |
threading(both) |
| 422 |
] |
| 423 |
runtimeclass BluetoothLEAdvertisementReceivedEventArgs |
| 424 |
{ |
| 425 |
[default] interface Windows.Devices.Bluetooth.Advertisement.IBluetoothLEAdvertisementReceivedEventArgs; |
| 426 |
[contract(Windows.Foundation.UniversalApiContract, 10.0)] interface Windows.Devices.Bluetooth.Advertisement.IBluetoothLEAdvertisementReceivedEventArgs2; |
| 427 |
[contract(Windows.Foundation.UniversalApiContract, 19.0)] interface Windows.Devices.Bluetooth.Advertisement.IBluetoothLEAdvertisementReceivedEventArgs3; |
| 428 |
} |
| 429 |
|
| 430 |
[ |
| 431 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 432 |
exclusiveto(Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementWatcherStoppedEventArgs), |
| 433 |
uuid(dd40f84d-e7b9-43e3-9c04-0685d085fd8c) |
| 434 |
] |
| 435 |
interface IBluetoothLEAdvertisementWatcherStoppedEventArgs : IInspectable |
| 436 |
{ |
| 437 |
[propget] HRESULT Error([out, retval] Windows.Devices.Bluetooth.BluetoothError *value); |
| 438 |
} |
| 439 |
|
| 440 |
[ |
| 441 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 442 |
marshaling_behavior(agile), |
| 443 |
threading(both) |
| 444 |
] |
| 445 |
runtimeclass BluetoothLEAdvertisementWatcherStoppedEventArgs |
| 446 |
{ |
| 447 |
[default] interface Windows.Devices.Bluetooth.Advertisement.IBluetoothLEAdvertisementWatcherStoppedEventArgs; |
| 448 |
} |
| 449 |
|
| 450 |
[ |
| 451 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 452 |
exclusiveto(Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementBytePattern), |
| 453 |
uuid(fbfad7f2-b9c5-4a08-bc51-502f8ef68a79) |
| 454 |
] |
| 455 |
interface IBluetoothLEAdvertisementBytePattern : IInspectable |
| 456 |
{ |
| 457 |
[propget] HRESULT DataType([out, retval] BYTE *value); |
| 458 |
[propput] HRESULT DataType([in] BYTE value); |
| 459 |
[propget] HRESULT Offset([out, retval] INT16 *value); |
| 460 |
[propput] HRESULT Offset([in] INT16 value); |
| 461 |
[propget] HRESULT Data([out, retval] Windows.Storage.Streams.IBuffer **value); |
| 462 |
[propput] HRESULT Data([in] Windows.Storage.Streams.IBuffer *value); |
| 463 |
} |
| 464 |
|
| 465 |
[ |
| 466 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 467 |
exclusiveto(Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementBytePattern), |
| 468 |
uuid(c2e24d73-fd5c-4ec3-be2a-9ca6fa11b7bd) |
| 469 |
] |
| 470 |
interface IBluetoothLEAdvertisementBytePatternFactory : IInspectable |
| 471 |
{ |
| 472 |
HRESULT Create([in] BYTE type, [in] INT16 offset, [in] Windows.Storage.Streams.IBuffer *data, |
| 473 |
[out, retval] Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementBytePattern **value); |
| 474 |
} |
| 475 |
|
| 476 |
[ |
| 477 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 478 |
activatable(Windows.Foundation.UniversalApiContract, 1.0), |
| 479 |
activatable(Windows.Devices.Bluetooth.Advertisement.IBluetoothLEAdvertisementBytePatternFactory, Windows.Foundation.UniversalApiContract, 1.0), |
| 480 |
marshaling_behavior(agile), |
| 481 |
threading(both) |
| 482 |
] |
| 483 |
runtimeclass BluetoothLEAdvertisementBytePattern |
| 484 |
{ |
| 485 |
[default] interface Windows.Devices.Bluetooth.Advertisement.IBluetoothLEAdvertisementBytePattern; |
| 486 |
} |
| 487 |
|
| 488 |
[ |
| 489 |
contract(Windows.Foundation.UniversalApiContract, 19.0), |
| 490 |
exclusiveto(Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementScanParameters), |
| 491 |
uuid(94f91413-63d9-53bd-af4c-e6b1a6514595) |
| 492 |
] |
| 493 |
interface IBluetoothLEAdvertisementScanParameters : IInspectable |
| 494 |
{ |
| 495 |
[propget] HRESULT ScanWindow([out, retval] UINT16 *value); |
| 496 |
[propget] HRESULT ScanInterval([out, retval] UINT16 *value); |
| 497 |
} |
| 498 |
|
| 499 |
[ |
| 500 |
contract(Windows.Foundation.UniversalApiContract, 19.0), |
| 501 |
exclusiveto(Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementScanParameters), |
| 502 |
uuid(548e39cd-3c9e-5f8d-b5e1-adebed5c357c) |
| 503 |
] |
| 504 |
interface IBluetoothLEAdvertisementScanParametersStatics : IInspectable |
| 505 |
{ |
| 506 |
HRESULT CoexistenceOptimized([out, retval] Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementScanParameters **value); |
| 507 |
HRESULT LowLatency([out, retval] Windows.Devices.Bluetooth.Advertisement.BluetoothLEAdvertisementScanParameters **value); |
| 508 |
} |
| 509 |
|
| 510 |
[ |
| 511 |
contract(Windows.Foundation.UniversalApiContract, 19.0), |
| 512 |
static(Windows.Devices.Bluetooth.Advertisement.IBluetoothLEAdvertisementScanParametersStatics, Windows.Foundation.UniversalApiContract, 19.0), |
| 513 |
marshaling_behavior(agile), |
| 514 |
threading(both) |
| 515 |
] |
| 516 |
runtimeclass BluetoothLEAdvertisementScanParameters |
| 517 |
{ |
| 518 |
[default] interface Windows.Devices.Bluetooth.Advertisement.IBluetoothLEAdvertisementScanParameters; |
| 519 |
} |
| 520 |
} |