public interface BackgroundService
| Modifier and Type | Method and Description |
|---|---|
void |
clearEvents(ServiceName service)
Clears all stored data for the service.
|
EventListener |
onBackgroundServiceEventReceived(EventHandler<BackgroundServiceEventReceived> eventListener)
Called with all existing backgroundServiceEvents when enabled, and all new events afterwards if
enabled and recording.
|
EventListener |
onRecordingStateChanged(EventHandler<RecordingStateChanged> eventListener)
Called when the recording state for the service has been updated.
|
void |
setRecording(Boolean shouldRecord,
ServiceName service)
Set the recording state for the service.
|
void |
startObserving(ServiceName service)
Enables event updates for the service.
|
void |
stopObserving(ServiceName service)
Disables event updates for the service.
|
void startObserving(ServiceName service)
service - void stopObserving(ServiceName service)
service - void setRecording(Boolean shouldRecord, ServiceName service)
shouldRecord - service - void clearEvents(ServiceName service)
service - EventListener onRecordingStateChanged(EventHandler<RecordingStateChanged> eventListener)
EventListener onBackgroundServiceEventReceived(EventHandler<BackgroundServiceEventReceived> eventListener)
Copyright © 2020. All rights reserved.