DestinationConfigurationsContaining
public protocol DestinationConfigurationsContaining<UserInteractionType, DestinationType, TabType, 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 : RoutableDestinations -
An enum which defines types of tabs in a tab bar.
Declaration
Swift
associatedtype TabType : TabTypeable -
An enum which defines the types of content that are able to be sent through Destinations.
Declaration
Swift
associatedtype ContentType : ContentTypeable -
A dictionary of presentation configurations, using their associated user interaction types as keys.
Declaration
Swift
var configurations: [UserInteractionType : DestinationPresentation<DestinationType, ContentType, TabType>] { get set } -
Adds a presentation configuration to this object’s
configurationsdictionary.Declaration
Swift
func addConfiguration(configuration: DestinationPresentation<DestinationType, ContentType, TabType>, for interactionType: UserInteractionType)Parameters
configurationA presentation configuration to add.
interactionTypeThe user interaction type to associate with this presentation.
-
Returns a presentation configuration object, or
nilif one isn’t found.Declaration
Swift
func configuration(for interactionType: UserInteractionType) -> DestinationPresentation<DestinationType, ContentType, TabType>?Parameters
interactionTypeThe user interaction type associated with the configuration object to be found.
Return Value
A
DestinationPresentationobject, ornilif the specified object was not found. -
Removes all presentation configuration objects held in this object.
Declaration
Swift
func removeAllConfigurations()
View on GitHub