AudioDisplayViewPresenter
public class AudioDisplayViewPresenter
extension AudioDisplayViewPresenter: AudioPlayerDisplayDelegate
extension AudioDisplayViewPresenter: AudioPlayerAgentDelegate
extension AudioDisplayViewPresenter: AudioDisplayViewDelegate
AudioDisplayViewPresenter is a class which helps user for displaying AudioDisplayView more easily.
-
Initialize with superView
Declaration
Swift
public convenience init(superView: UIView, nuguClient: NuguClient)
Parameters
superView
Target view for AudioDisplayView should be added to.
nuguClient
NuguClient instance which should be passed for delegation.
-
Initialize with viewController
Declaration
Swift
public convenience init(viewController: UIViewController, nuguClient: NuguClient)
Parameters
viewController
Target viewController for AudioDisplayView should be added to.
nuguClient
NuguClient instance which should be passed for delegation.
-
Declaration
Swift
public func audioPlayerDisplayShouldRender(template: AudioPlayerDisplayTemplate, completion: @escaping (AnyObject?) -> Void)
-
Declaration
Swift
public func audioPlayerDisplayDidClear(template: AudioPlayerDisplayTemplate)
-
Declaration
Swift
public func audioPlayerDisplayShouldUpdateMetadata(payload: Data, header: Downstream.Header)
-
Declaration
Swift
public func audioPlayerDisplayShouldShowLyrics(header: Downstream.Header, completion: @escaping (Bool) -> Void)
-
Declaration
Swift
public func audioPlayerDisplayShouldHideLyrics(header: Downstream.Header, completion: @escaping (Bool) -> Void)
-
Declaration
Swift
public func audioPlayerDisplayShouldControlLyricsPage(direction: AudioPlayerDisplayControlPayload.Direction, header: Downstream.Header, completion: @escaping (Bool) -> Void)
-
Declaration
Swift
public func audioPlayerIsLyricsVisible(completion: @escaping (Bool) -> Void)
-
Declaration
Swift
public func audioPlayerAgentDidChange(state: AudioPlayerState, header: Downstream.Header)
-
Declaration
Swift
public func audioPlayerAgentDidChange(duration: Int)