C# 클래스 SensorbergSDK.Internal.Scanner

Bluetooth LE advertisement scanner helper class with beacon list management.
상속: IBeaconScanner, IDisposable
파일 보기 프로젝트 열기: sensorberg-dev/windows10-sdk

공개 메소드들

메소드 설명
Dispose ( ) : void
FilterBeaconByUuid ( Beacon beacon ) : bool
NotifyBeaconEvent ( Beacon beacon ) : void

Notifies any listeners about the beacon event.

Scanner ( ) : System

Create new Scanner Object.

StartWatcher ( ushort manufacturerId, ushort beaconCode, ulong beaconExitTimeoutInMiliseconds, short rssiEnterThreshold = null, ulong enterDistanceThreshold = null ) : void

Starts the watcher and hooks its events to callbacks.

StopWatcher ( ) : void

Stops the watcher. The events are unhooked in the callback (OnWatcherStopped).

비공개 메소드들

메소드 설명
OnAdvertisementReceived ( BluetoothLEAdvertisementWatcher sender, BluetoothLEAdvertisementReceivedEventArgs args ) : void

Triggered when the watcher receives an advertisement. If the advertisement came from a beacon, a Beacon instance is created based on the received data. A new beacon is added to the list and an existing one is only updated.

OnNotifyStartedDelayTimeout ( object state ) : void

Sends a delayed notifications about watcher started event.

OnWatcherStopped ( BluetoothLEAdvertisementWatcher sender, BluetoothLEAdvertisementWatcherStoppedEventArgs args ) : void

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

FilterBeaconByUuid() 공개 메소드

public FilterBeaconByUuid ( Beacon beacon ) : bool
beacon Beacon
리턴 bool

NotifyBeaconEvent() 공개 메소드

Notifies any listeners about the beacon event.
public NotifyBeaconEvent ( Beacon beacon ) : void
beacon Beacon
리턴 void

Scanner() 공개 메소드

Create new Scanner Object.
public Scanner ( ) : System
리턴 System

StartWatcher() 공개 메소드

Starts the watcher and hooks its events to callbacks.
public StartWatcher ( ushort manufacturerId, ushort beaconCode, ulong beaconExitTimeoutInMiliseconds, short rssiEnterThreshold = null, ulong enterDistanceThreshold = null ) : void
manufacturerId ushort The manufacturer ID.
beaconCode ushort The beacon code.
beaconExitTimeoutInMiliseconds ulong Time in miliseconds after beacon will be trated as lost.
rssiEnterThreshold short Optional rssi threshold which will trigger beacon discover event. Value must be between -128 and 127.
enterDistanceThreshold ulong Optional minimal distance in meters that will trigger beacon discover event.
리턴 void

StopWatcher() 공개 메소드

Stops the watcher. The events are unhooked in the callback (OnWatcherStopped).
public StopWatcher ( ) : void
리턴 void