C# 클래스 SensorbergSDK.BackgroundTaskManager

Manager class for the Background work.
파일 보기 프로젝트 열기: sensorberg-dev/windows10-sdk 1 사용 예제들

공개 메소드들

메소드 설명
CheckIfBackgroundFilterUpdateIsRequired ( ) : bool

Checks if the background filters are up-to-date or not. To update the filters, unregister and register background task again (call BackgroundTaskManager.UpdateBackgroundTaskAsync()).

RegisterBackgroundTaskAsync ( SdkConfiguration configuration ) : Task

Register background tasks, by the given configuration.

RegisterOnProgressEventHandler ( ) : void

Will remove OnProgress event handlers from advertisement background task OnProgress events are used to indicate UI tasks on beacon actions resolved in background.

RegisterTimedBackgroundTask ( string timerClassName ) : BackgroundTaskRegistrationResult

Registers the timed background task.

UnRegisterOnProgressEventHandler ( ) : void

Will remove OnProgress event handlers from advertisement background task OnProgress events are used to indicate UI tasks on beacon actions resolved in background.

UnregisterBackgroundTask ( ) : void

Unregister all backgroundtasks.

UpdateBackgroundTaskAsync ( SdkConfiguration configuration ) : Task

Renew the registrations of the background taks.

비공개 메소드들

메소드 설명
BackgroundTaskRegistered ( string taskName ) : bool

Checks if a background task with the given name is registered.

LoadBackgroundActions ( ) : System.Threading.Tasks.Task
OnAdvertisementWatcherBackgroundTaskCompleted ( IBackgroundTaskRegistration sender, BackgroundTaskCompletedEventArgs args ) : void

Note: This handler is called only if the task completed while the application was in the foreground.

OnAdvertisementWatcherBackgroundTaskProgress ( BackgroundTaskRegistration sender, BackgroundTaskProgressEventArgs args ) : void
OnTimedBackgroundTaskCompleted ( IBackgroundTaskRegistration sender, BackgroundTaskCompletedEventArgs args ) : void

Note: This handler is called only if the task completed while the application was in the foreground.

RegisterAdvertisementWatcherBackgroundTaskAsync ( SdkConfiguration configuration ) : Task

Registers the BLE advertisement watcher background task.

메소드 상세

CheckIfBackgroundFilterUpdateIsRequired() 공개 정적인 메소드

Checks if the background filters are up-to-date or not. To update the filters, unregister and register background task again (call BackgroundTaskManager.UpdateBackgroundTaskAsync()).
public static CheckIfBackgroundFilterUpdateIsRequired ( ) : bool
리턴 bool

RegisterBackgroundTaskAsync() 공개 메소드

Register background tasks, by the given configuration.
public RegisterBackgroundTaskAsync ( SdkConfiguration configuration ) : Task
configuration SdkConfiguration Configuration for the new registration.
리턴 Task

RegisterOnProgressEventHandler() 공개 메소드

Will remove OnProgress event handlers from advertisement background task OnProgress events are used to indicate UI tasks on beacon actions resolved in background.
public RegisterOnProgressEventHandler ( ) : void
리턴 void

RegisterTimedBackgroundTask() 공개 메소드

Registers the timed background task.
public RegisterTimedBackgroundTask ( string timerClassName ) : BackgroundTaskRegistrationResult
timerClassName string Classname of the timer background service.
리턴 BackgroundTaskRegistrationResult

UnRegisterOnProgressEventHandler() 공개 메소드

Will remove OnProgress event handlers from advertisement background task OnProgress events are used to indicate UI tasks on beacon actions resolved in background.
public UnRegisterOnProgressEventHandler ( ) : void
리턴 void

UnregisterBackgroundTask() 공개 메소드

Unregister all backgroundtasks.
public UnregisterBackgroundTask ( ) : void
리턴 void

UpdateBackgroundTaskAsync() 공개 메소드

Renew the registrations of the background taks.
public UpdateBackgroundTaskAsync ( SdkConfiguration configuration ) : Task
configuration SdkConfiguration Configuration for the new registration.
리턴 Task