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 -
interactorTypeDefault implementationAn enum type representing the kind of interactor to be configured.
Default Implementation
Declaration
Swift
@MainActor var interactorType: InteractorType? { get } -
actionTypeDefault implementationAn enum type representing the type of interactor request action.
Default Implementation
Declaration
Swift
@MainActor var actionType: (any InteractorRequestActionTypeable)? { get } -
assistantTypeDefault implementationThe 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 } -
assignInteractorAssistant(to:Default implementationeventType: ) Assigns an interactor assistant to a Destination, dispatched through a type-erased channel.
The destination performs a runtime check to ensure its
InteractorType/ContentTypeandEventTypeare compatible with this configuration’s assistant before assignment.Default Implementation
Declaration
Swift
@MainActor func assignInteractorAssistant(to assignable: any AssistantAssigning, eventType: any Hashable)Parameters
assignableThe destination (as an erased
AssistantAssigning) to apply this assistant to.eventTypeThe event type to associate this assistant with.
View on GitHub