AppDestinationConfigurations
public final class AppDestinationConfigurations<EventType, DestinationType, ContentType, TabType> : DestinationConfigurationsContaining where EventType : EventTypeable, DestinationType : RoutableDestinations, ContentType : ContentTypeable, TabType : TabTypeable
A container class for Destination presentation configuration models, which are used by a Destination to present new Destinations.
-
A dictionary of presentation configuration objects, whose keys are an event type they’re associated with.
Declaration
Swift
public var configurations: [EventType : DestinationPresentation<DestinationType, ContentType, TabType>] -
A dictionary of interactor request configuration objects, whose keys are an event type they’re associated with.
Declaration
Swift
public var interactorConfigurations: [EventType : any InteractorConfiguring] -
Initializer.
Declaration
Swift
public init(configurations: [EventType : DestinationPresentation<DestinationType, ContentType, TabType>]? = nil, interactorConfigurations: [EventType : any InteractorConfiguring]? = nil)Parameters
configurationsA dictionary of presentation configuration objects, whose keys are an event type they’re associated with.
-
Adds a presentation configuration to the specified event type.
Declaration
Swift
public func addConfiguration(configuration: DestinationPresentation<DestinationType, ContentType, TabType>, for eventType: EventType)Parameters
configurationThe presentation configuration to add.
eventTypeThe event type to associate with the presentation.
-
Declaration
Swift
public func addInteractorConfiguration(configuration: any InteractorConfiguring, for eventType: EventType) -
Returns a presentation configuration object based on its associated event type.
Declaration
Swift
public func configuration(for eventType: EventType) -> DestinationPresentation<DestinationType, ContentType, TabType>?Parameters
eventTypeThe event type to find a configuration object for.
Return Value
A presentation configuration, if one is found.
-
Declaration
Swift
public func interactorConfiguration(for eventType: EventType) -> (any InteractorConfiguring)? -
Removes all model objects from the
configurationsdictionary.Declaration
Swift
public func removeAllConfigurations()
View on GitHub