C# Класс SensorbergSDK.Internal.SdkEngine

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Dispose ( ) : void
FlushHistory ( ) : Task
InitializeAsync ( ) : Task

Initializes the SDK engine.

ProcessDelayedActionsAsync ( ) : Task

Handles delayed beacon actions resolved earlier.

ResolveBeaconAction ( BeaconEventArgs eventArgs ) : Task

Tries to find a beacon action based on the given beacon event arguments.

SdkEngine ( bool createdOnForeground ) : System

Creates a new Engine object.

UpdateCacheAsync ( bool forceUpdate ) : Task

Updates the layout cache.

Приватные методы

Метод Описание
CleanDatabaseAsync ( ) : Task

Cleans old entries from database. Called when the UI application is started.

ExecuteActionAsync ( ResolvedAction resolvedAction, string beaconPid, BeaconEventType beaconEventType, string location ) : Task

Executes the given action, stores the event in event history and notifies the listeners.

OnBeaconActionResolvedAsync ( object sender, ResolvedActionsEventArgs e ) : void
OnFlushHistoryTimerTimeoutAsync ( object state ) : void
OnLayoutUpdatedAsync ( object state ) : void
OnProcessDelayedActionsTimerTimeoutAsync ( object state ) : void
OnResolverFailedToResolveActions ( object sender, string e ) : void

This method simply forwards the event to listeners.

OnSettingsUpdated ( object sender, SettingsEventArgs settingsEventArgs ) : void
OnUpdateVisibilityTimerTimeout ( object state ) : void
ResetProcessDelayedActionsTimer ( DateTimeOffset nextDueTime ) : void

(Re)sets the process delayed actions timer to trigger based on the given due time.

Описание методов

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

FlushHistory() публичный Метод

public FlushHistory ( ) : Task
Результат Task

InitializeAsync() публичный Метод

Initializes the SDK engine.
public InitializeAsync ( ) : Task
Результат Task

ProcessDelayedActionsAsync() публичный Метод

Handles delayed beacon actions resolved earlier.
public ProcessDelayedActionsAsync ( ) : Task
Результат Task

ResolveBeaconAction() публичный Метод

Tries to find a beacon action based on the given beacon event arguments.
public ResolveBeaconAction ( BeaconEventArgs eventArgs ) : Task
eventArgs BeaconEventArgs The arguments of a beacon event.
Результат Task

SdkEngine() публичный Метод

Creates a new Engine object.
public SdkEngine ( bool createdOnForeground ) : System
createdOnForeground bool bool for indication if the engine works on foreground.
Результат System

UpdateCacheAsync() публичный Метод

Updates the layout cache.
public UpdateCacheAsync ( bool forceUpdate ) : Task
forceUpdate bool
Результат Task