AppDestinationConfigurations
public final class AppDestinationConfigurations<UserInteractionType, DestinationType, ContentType, TabType> : DestinationConfigurationsContaining where UserInteractionType : UserInteractionTypeable, 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 a user interaction type they’re associated with.
Declaration
Swift
public var configurations: [UserInteractionType : DestinationPresentation<DestinationType, ContentType, TabType>] -
A dictionary of interactor request configuration objects, whose keys are a user interaction type they’re associated with.
Declaration
Swift
public var interactorConfigurations: [UserInteractionType : any InteractorConfiguring] -
Initializer.
Declaration
Swift
public init(configurations: [UserInteractionType : DestinationPresentation<DestinationType, ContentType, TabType>]? = nil, interactorConfigurations: [UserInteractionType : any InteractorConfiguring]? = nil)Parameters
configurationsA dictionary of presentation configuration objects, whose keys are a user interaction type they’re associated with.
-
Adds a presentation configuration to the specified user interaction type.
Declaration
Swift
public func addConfiguration(configuration: DestinationPresentation<DestinationType, ContentType, TabType>, for interactionType: UserInteractionType)Parameters
configurationThe presentation configuration to add.
interactionTypeThe user interaction type to associate with the presentation.
-
Declaration
Swift
public func addInteractorConfiguration(configuration: any InteractorConfiguring, for interactionType: UserInteractionType) -
Returns a presentation configuration object based on its associated user interaction type.
Declaration
Swift
public func configuration(for interactionType: UserInteractionType) -> DestinationPresentation<DestinationType, ContentType, TabType>?Parameters
interactionTypeThe user interaction type to find a configuration object for.
Return Value
A presentation configuration, if one is found.
-
Declaration
Swift
public func interactorConfiguration(for interactionType: UserInteractionType) -> (any InteractorConfiguring)? -
Removes all model objects from the
configurationsdictionary.Declaration
Swift
public func removeAllConfigurations()
View on GitHub