MimiProcessingSession
public final class MimiProcessingSession
extension MimiProcessingSession: CustomDebugStringConvertible
Object that represents the lifecycle of Mimi Processing availiability.
Once activated by a MimiProcessingController the session becomes the focal point for accessing processing parameters and state.
-
Whether the processing session is currently interrupted.
Declaration
Swift
@Published public var isInterrupted: Bool { get set } -
Parameter that describes whether processing is currently enabled.
Declaration
Swift
public var isEnabled: MimiProcessingParameter<Bool> { get } -
Parameter that describes the current intensity value of processing.
Declaration
Swift
public let intensity: MimiProcessingParameter<Float> -
Parameter that describes the currently applied preset for processing if one is available.
Declaration
Swift
public let preset: MimiRemoteProcessingParameter<MimiPersonalization.Preset?> -
Data source which provides remote preset data to the
presetparameter.Declaration
Swift
public let presetDataSource: MimiPresetParameterDataSource
-
Interrupt a processing session.
This will attempt to disable the
isEnabledprocessing parameter which shall remain disabled until the interruption has been resolved by callingresolve(interruption:).Declaration
Swift
public func interrupt<T>(reason: T) -> AnyPublisher<Bool, Error> where T : HashableParameters
reasonAn instance of
MimiProcessingSessionInterruptionReturn Value
Publisher that wraps the the state of the interruption where
truerepresents an interrupted andfalsean uninterrupted session. -
Resolve an interrupted processing session.
This will attempt to set the
isEnabledprocessing parameter with the value that was applied before the session was interrupted.Declaration
Swift
public func resolve<T>(interruption: T) -> AnyPublisher<Bool, Error> where T : HashableParameters
interruptionThe interruption to resolve.
Return Value
Publisher that wraps the the state of the interruption where
truerepresents an interrupted andfalsean uninterrupted session.
MimiProcessingSession Class Reference