RelatedContent
public protocol RelatedContent : EventDispatcherProtocolThe Related Content API can be used to show new content related to the current content.
- 
                  
                  List of the current RelatedContentSource.DeclarationSwift var sources: [RelatedContentSource] { get set }
- 
                  
                  Show the related content screen. DeclarationSwift func show()
- 
                  
                  Hide the related content screen. DeclarationSwift func hide()
- 
                  
                  Whether the related content screen is showing. DeclarationSwift var showing: Bool { get }
- 
                  
                  Adds the event listener of the given EventType.Remark When attaching a listener on the wrong object the application will crash. DeclarationSwift func addEventListener<E>(type: EventType<E>, listener: @escaping (E) -> ()) -> EventListener where E : EventProtocolParameterstypeEventTypeof the added event listener. SeeRelatedContentEventTypesfor possible values.listenerClosure called when event is dispatched. Return ValueThe newly added EventListener.
- 
                  
                  Removes the event listener for the given EventType.DeclarationSwift func removeEventListener<E>(type: EventType<E>, listener: EventListener) where E : EventProtocolParameterstypeEventTypeof the event listener to be removed. SeeRelatedContentEventTypesfor possible values.listenerEventListenerwhich was added byaddEventListener(...).
 RelatedContent Protocol Reference
      RelatedContent Protocol Reference