DestinationConfigurationsContaining
public protocol DestinationConfigurationsContaining<UserInteractionType, DestinationType, TabType, PresentationConfiguration, ContentType>
This protocol represents an object that holds Destination presentation objects.
-
An enum which defines user interaction types for this Destination’s interface.
Declaration
Swift
associatedtype UserInteractionType : UserInteractionTypeable
-
An enum which defines all routable Destinations in the app.
Declaration
Swift
associatedtype DestinationType where Self.DestinationType == Self.PresentationConfiguration.DestinationType
-
An enum which defines types of tabs in a tab bar.
Declaration
Swift
associatedtype TabType where Self.TabType == Self.PresentationConfiguration.TabType
-
An enum which defines the types of content that are able to be sent through Destinations.
Declaration
Swift
associatedtype ContentType where Self.ContentType == Self.PresentationConfiguration.ContentType
-
A model type which configures Destination presentations. Typically this is a
DestinationPresentation
.Declaration
Swift
associatedtype PresentationConfiguration : DestinationPresentationConfiguring
-
An enum which defines available Destination presentation types. Typically this is
DestinationPresentationType
.Declaration
Swift
typealias PresentationType = DestinationPresentationType<PresentationConfiguration>
-
A dictionary of presentation configurations, using their associated user interaction types as keys.
Declaration
Swift
var configurations: [UserInteractionType : PresentationConfiguration] { get set }
-
Adds a presentation configuration to this object’s
configurations
dictionary.Declaration
Swift
func addConfiguration(configuration: PresentationConfiguration, for interactionType: UserInteractionType)
Parameters
configuration
A presentation configuration to add.
interactionType
The user interaction type to associate with this presentation.
-
Returns a presentation configuration object, or
nil
if one isn’t found.Declaration
Swift
func configuration(for interactionType: UserInteractionType) -> PresentationConfiguration?
Parameters
interactionType
The user interaction type associated with the configuration object to be found.
Return Value
A
PresentationConfiguration
object, ornil
if the specified object was not found. -
Removes all presentation configuration objects held in this object.
Declaration
Swift
func removeAllConfigurations()