BluetoothLEAdvertisementWatcher 클래스

정의

Bluetooth LE(저에너지) 광고를 받을 개체입니다.

public ref class BluetoothLEAdvertisementWatcher sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.Bluetooth.Advertisement.IBluetoothLEAdvertisementWatcherFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class BluetoothLEAdvertisementWatcher final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.Bluetooth.Advertisement.IBluetoothLEAdvertisementWatcherFactory, 65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class BluetoothLEAdvertisementWatcher final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.Bluetooth.Advertisement.IBluetoothLEAdvertisementWatcherFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class BluetoothLEAdvertisementWatcher
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.Bluetooth.Advertisement.IBluetoothLEAdvertisementWatcherFactory), 65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class BluetoothLEAdvertisementWatcher
function BluetoothLEAdvertisementWatcher(advertisementFilter)
Public NotInheritable Class BluetoothLEAdvertisementWatcher
상속
Object Platform::Object IInspectable BluetoothLEAdvertisementWatcher
특성

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)
앱 기능
bluetooth

설명

버전 기록

Windows 버전 SDK 버전 추가된 값
2004 19041 AllowExtendedAdvertisements

생성자

BluetoothLEAdvertisementWatcher()

BluetoothLEAdvertisementWatcher 개체를 만듭니다.

BluetoothLEAdvertisementWatcher(BluetoothLEAdvertisementFilter)

감시자를 초기화하는 보급 알림 필터를 사용하여 새 BluetoothLEAdvertisementWatcher 개체를 만듭니다.

속성

AdvertisementFilter

페이로드 섹션 기반 필터링을 사용하는 Bluetooth LE 보급 필터링 구성에 사용되는 BluetoothLEAdvertisementFilter 개체를 가져오거나 설정합니다.

AllowExtendedAdvertisements

확장 광고 형식을 사용하여 광고를 수신할 수 있습니다. 기본값은 False입니다.

MaxOutOfRangeTimeout

범위 제한 시간 초과의 최대값을 가져옵니다.

MaxSamplingInterval

최대 샘플링 간격을 가져옵니다.

MinOutOfRangeTimeout

범위를 벗어난 최소 시간 제한을 가져옵니다.

MinSamplingInterval

최소 샘플링 간격을 가져옵니다.

ScanningMode

Bluetooth LE 스캔 모드를 가져오거나 설정합니다.

SignalStrengthFilter

신호 강도 기반 필터링을 사용하는 Bluetooth LE 보급 필터링 구성에 사용되는 BluetoothSignalStrengthFilter 개체를 가져오거나 설정합니다.

Status

BluetoothLEAdvertisementWatcher의 현재 상태 가져옵니다.

메서드

Start()

BluetoothLEAdvertisementWatcher를 시작하여 Bluetooth LE 광고를 검색합니다.

Stop()

BluetoothLEAdvertisementWatcher를 중지하고 Bluetooth LE 광고 검사를 사용하지 않도록 설정합니다.

이벤트

Received

받은 새 Bluetooth LE 광고 이벤트에 대한 알림입니다.

Stopped

앱에서 또는 오류로 인해 Bluetooth LE 광고 검색이 취소되거나 중단되었음을 앱에 알릴 수 있습니다.

적용 대상

추가 정보