C# 클래스 SensorbergSDK.Background.BackgroundEngine

BackgroundEngine resolves actions from BluetoothLEAdvertisementWatcherTriggerDetails object and resolves delayed actions. This is not part of the public API. Making modifications into background tasks is not required in order to use the SDK.
상속: IDisposable
파일 보기 프로젝트 열기: sensorberg-dev/windows10-sdk 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AddBeaconArgs void
AddBeaconsToBeaconArgsAsync System.Threading.Tasks.Task
IsOutOfRange bool
IsValidEnterEvent bool
OnBeaconActionResolvedAsync void

공개 메소드들

메소드 설명
BackgroundEngine ( ) : System
Dispose ( ) : void

Finishes background processing and releases all resources.

InitializeAsync ( ) : System.Threading.Tasks.Task

Initializes BackgroundEngine.

ProcessDelayedActionsAsync ( bool flushHistory = true ) : System.Threading.Tasks.Task

Processes the delayed actions, executes them as necessary and sends history statistics.

ResolveBeaconActionsAsync ( List beacons, int outOfRangeDb ) : System.Threading.Tasks.Task

Resolves beacons, which triggered the background task.

비공개 메소드들

메소드 설명
AddBeaconArgs ( Beacon beacon, BeaconEventType eventType ) : void
AddBeaconsToBeaconArgsAsync ( int outOfRangeDb ) : System.Threading.Tasks.Task

Generates BeaconArgs from beacon events. For instance if a beacon is seen for the first time, BeaconArgs with enter type is generated.

IsOutOfRange ( int outOfRangeDb, Beacon beacon ) : bool
IsValidEnterEvent ( BackgroundEvent history, Beacon beacon, int outOfRangeDb ) : bool
OnBeaconActionResolvedAsync ( object sender, BeaconAction beaconAction ) : void

Handles BeaconActions that are resolved in the SDKEngine. All resolved actions are stored into local database. And the UI app will show actions to the user. When the UI app is not running, toast notification is shown for the user.

메소드 상세

BackgroundEngine() 공개 메소드

public BackgroundEngine ( ) : System
리턴 System

Dispose() 공개 메소드

Finishes background processing and releases all resources.
public Dispose ( ) : void
리턴 void

InitializeAsync() 공개 메소드

Initializes BackgroundEngine.
public InitializeAsync ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

ProcessDelayedActionsAsync() 공개 메소드

Processes the delayed actions, executes them as necessary and sends history statistics.
public ProcessDelayedActionsAsync ( bool flushHistory = true ) : System.Threading.Tasks.Task
flushHistory bool
리턴 System.Threading.Tasks.Task

ResolveBeaconActionsAsync() 공개 메소드

Resolves beacons, which triggered the background task.
public ResolveBeaconActionsAsync ( List beacons, int outOfRangeDb ) : System.Threading.Tasks.Task
beacons List
outOfRangeDb int
리턴 System.Threading.Tasks.Task