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>]
-
Initializer.
Declaration
Swift
public init(configurations: [UserInteractionType : DestinationPresentation<DestinationType, ContentType, TabType>]? = nil)
Parameters
configurations
A 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
configuration
The presentation configuration to add.
interactionType
The user interaction type to associate with the presentation.
-
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
interactionType
The user interaction type to find a configuration object for.
Return Value
A presentation configuration, if one is found.
-
Removes all model objects from the
configurations
dictionary.Declaration
Swift
public func removeAllConfigurations()