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.

  • Interrupt a processing session.

    This will attempt to disable the isEnabled processing parameter which shall remain disabled until the interruption has been resolved by calling resolve(interruption:).

    Declaration

    Swift

    public func interrupt<T>(reason: T) -> AnyPublisher<Bool, Error> where T : Hashable
    Parameters
    reason
    Return Value

    Publisher that wraps the the state of the interruption where true represents an interrupted and false an uninterrupted session.

  • Resolve an interrupted processing session.

    This will attempt to set the isEnabled processing 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 : Hashable
    Parameters
    interruption

    The interruption to resolve.

    Return Value

    Publisher that wraps the the state of the interruption where true represents an interrupted and false an uninterrupted session.