InteractorConfiguring

@MainActor
public protocol InteractorConfiguring<InteractorType>

This protocol represents a configuration for a specific action an Interactor should take.

  • An enum which represents types of Interactors. Each Destination may have its own Interactor types.

    Declaration

    Swift

    associatedtype InteractorType : InteractorTypeable
  • interactorType Default implementation

    An enum type representing the kind of interactor to be configured.

    Default Implementation

    Declaration

    Swift

    @MainActor
    var interactorType: InteractorType? { get }
  • actionType Default implementation

    An enum type representing the type of interactor request action.

    Default Implementation

    Declaration

    Swift

    @MainActor
    var actionType: (any InteractorRequestActionTypeable)? { get }
  • assistantType Default implementation

    The type of interactor assistant associated with the interactor to be configured.

    Default Implementation

    Declaration

    Swift

    @MainActor
    var assistantType: InteractorAssistantType? { get }
  • Represents the type of action this object should configure.

    Declaration

    Swift

    @MainActor
    var configurationType: ActionConfigurationType { get }
  • Assigns an interactor assistant to a Destination, dispatched through a type-erased channel.

    The destination performs a runtime check to ensure its InteractorType/ContentType and EventType are compatible with this configuration’s assistant before assignment.

    Default Implementation

    Declaration

    Swift

    @MainActor
    func assignInteractorAssistant(to assignable: any AssistantAssigning, eventType: any Hashable)

    Parameters

    assignable

    The destination (as an erased AssistantAssigning) to apply this assistant to.

    eventType

    The event type to associate this assistant with.