pl.wendigo.chrome.domain.backgroundservice / BackgroundServiceDomain

BackgroundServiceDomain

class BackgroundServiceDomain (source)

Defines events for background web platform features.

Functions

backgroundServiceEventReceived

fun backgroundServiceEventReceived(): Flowable<BackgroundServiceEventReceivedEvent>

Called with all existing backgroundServiceEvents when enabled, and all new events afterwards if enabled and recording.

backgroundServiceEventReceivedTimed

fun backgroundServiceEventReceivedTimed(): Flowable<Timed<BackgroundServiceEventReceivedEvent>>

Called with all existing backgroundServiceEvents when enabled, and all new events afterwards if enabled and recording.

clearEvents

fun clearEvents(input: ClearEventsRequest): Single<ResponseFrame>

Clears all stored data for the service.

events

fun events(): Flowable<ProtocolEvent>

Returns flowable capturing all BackgroundService domains events.

recordingStateChanged

fun recordingStateChanged(): Flowable<RecordingStateChangedEvent>

Called when the recording state for the service has been updated.

recordingStateChangedTimed

fun recordingStateChangedTimed(): Flowable<Timed<RecordingStateChangedEvent>>

Called when the recording state for the service has been updated.

setRecording

fun setRecording(input: SetRecordingRequest): Single<ResponseFrame>

Set the recording state for the service.

startObserving

fun startObserving(input: StartObservingRequest): Single<ResponseFrame>

Enables event updates for the service.

stopObserving

fun stopObserving(input: StopObservingRequest): Single<ResponseFrame>

Disables event updates for the service.