class BackgroundServiceDomain
Defines events for background web platform features.
backgroundServiceEventReceived |
Called with all existing backgroundServiceEvents when enabled, and all new events afterwards if enabled and recording. fun backgroundServiceEventReceived(): Flow<BackgroundServiceEventReceivedEvent> |
clearEvents |
Clears all stored data for the service. suspend fun clearEvents(input: ClearEventsRequest): Unit |
events |
Subscribes to all events related to this domain. fun events(): Flow<BackgroundServiceEvent> |
recordingStateChanged |
Called when the recording state for the service has been updated. fun recordingStateChanged(): Flow<RecordingStateChangedEvent> |
setRecording |
Set the recording state for the service. suspend fun setRecording(input: SetRecordingRequest): Unit |
startObserving |
Enables event updates for the service. suspend fun startObserving(input: StartObservingRequest): Unit |
stopObserving |
Disables event updates for the service. suspend fun stopObserving(input: StopObservingRequest): Unit |