AnyMimiProcessingFeatureControlling

@available(iOS, deprecated: 16.0, message: "Use Swift's any keyword with MimiProcessingFeatureControlling")
public final class AnyMimiProcessingFeatureControlling<Feature> : MimiProcessingFeatureControlling

Type-eraser for the MimiProcessingFeatureControlling protocol.

Wraps any conforming controller as a concrete generic class so callers can store and pass it without using the parameterized existential any MimiProcessingFeatureControlling<Feature>, whose runtime metadata is only available on iOS 16+. Drop the wrapper and switch to any when the minimum deployment target moves to iOS 16.

  • Forwarded from the wrapped controller. Captured once at init so the underlying publisher box has a stable identity across reads — see featurePublisher.

    Declaration

    Swift

    public let featurePublisher: AnyPublisher<Feature?, Never>
  • Creates a new type-erased controller wrapping the given concrete controller.

    Declaration

    Swift

    public init<Controller>(_ wrapped: Controller) where Feature == Controller.Feature, Controller : MimiProcessingFeatureControlling
    Parameters
    wrapped

    The concrete controller to wrap.

  • Declaration

    Swift

    public func activate() async throws
  • Declaration

    Swift

    public func deactivate() async throws