observe

abstract suspend fun observe(tag: String? = null, applying: ApplyingHandler<T>? = null, failed: FailedHandler<T>? = null, ready: ReadyHandler<T>? = null)

Receives updates indicating the current state of the MimiProcessingParameter.

The ProcessingParameter always emits the most recent state to the observe handler functions; a newly registered observer will immediately receive the current state of the ProcessingParameter.

IMPORTANT: DO NOT USE THIS TO RECEIVE UPDATES TO YOUR PROCESSING SYSTEM (e.g. headphones). Instead: use addApplicator to register a MimiParameterApplicator instance.

Parameters

tag

An optional logging identifier.

applying

A function called when the ProcessingParameter is currently attempt to update the ProcessingParameter.value.

failed

A function called when the ProcessingParameter has failed to update the ProcessingParameter.value.

ready

A function called when the ProcessingParameter has successfully updated the ProcessingParameter.value.