-
public final class BackgroundServiceDomainDefines events for background web platform features.
-
-
Method Summary
Modifier and Type Method Description final Flow<BackgroundServiceEvent>events()Subscribes to all events related to this domain. final Flow<BackgroundServiceEvent.RecordingStateChangedEvent>recordingStateChanged()Called when the recording state for the service has been updated. final Flow<BackgroundServiceEvent.BackgroundServiceEventReceivedEvent>backgroundServiceEventReceived()Called with all existing backgroundServiceEvents when enabled, and all new events afterwards if enabled and recording. final UnitstartObserving(StartObservingRequest input)Enables event updates for the service. final UnitstopObserving(StopObservingRequest input)Disables event updates for the service. final UnitsetRecording(SetRecordingRequest input)Set the recording state for the service. final UnitclearEvents(ClearEventsRequest input)Clears all stored data for the service. -
-
Method Detail
-
events
final Flow<BackgroundServiceEvent> events()
Subscribes to all events related to this domain.
-
recordingStateChanged
final Flow<BackgroundServiceEvent.RecordingStateChangedEvent> recordingStateChanged()
Called when the recording state for the service has been updated.
-
backgroundServiceEventReceived
final Flow<BackgroundServiceEvent.BackgroundServiceEventReceivedEvent> backgroundServiceEventReceived()
Called with all existing backgroundServiceEvents when enabled, and all new events afterwards if enabled and recording.
-
startObserving
final Unit startObserving(StartObservingRequest input)
Enables event updates for the service.
-
stopObserving
final Unit stopObserving(StopObservingRequest input)
Disables event updates for the service.
-
setRecording
final Unit setRecording(SetRecordingRequest input)
Set the recording state for the service.
-
clearEvents
final Unit clearEvents(ClearEventsRequest input)
Clears all stored data for the service.
-
-
-
-