AppDestinationConfigurations
public final class AppDestinationConfigurations<UserInteractionType, PresentationConfiguration> : DestinationConfigurationsContaining where UserInteractionType : UserInteractionTypeable, PresentationConfiguration : DestinationPresentationConfiguring
A container class for Destination presentation configuration models, which are used by a Destination to present new Destinations.
-
Declaration
Swift
public typealias PresentationConfiguration = PresentationConfiguration
-
Declaration
Swift
public typealias UserInteractionType = UserInteractionType
-
Declaration
Swift
public typealias DestinationType = PresentationConfiguration.DestinationType
-
Declaration
Swift
public typealias TabType = PresentationConfiguration.TabType
-
Declaration
Swift
public typealias ContentType = PresentationConfiguration.ContentType
-
A dictionary of presentation configuration objects, whose keys are a user interaction type they’re associated with.
Declaration
Swift
public var configurations: [UserInteractionType : PresentationConfiguration]
-
Initializer.
Declaration
Swift
public init(configurations: [UserInteractionType : PresentationConfiguration]? = 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: PresentationConfiguration, 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) -> PresentationConfiguration?
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()