AudioClipSelectionController

@objcMembers
@objc(PESDKAudioClipSelectionController)
open class AudioClipSelectionController : UIViewController
extension AudioClipSelectionController: UITableViewDelegate
extension AudioClipSelectionController: UITableViewDataSource
extension AudioClipSelectionController: AVAudioPlayerDelegate

A AudioClipSelectionController displays multiple AudioClips and allows selection of an audio clip.

Properties

  • The table view that displays the AudioClips.

    Declaration

    Swift

    open private(set) lazy var tableView: UITableView { get set }
  • The gradient view that is added to the table view for a fade effect.

    Declaration

    Swift

    open private(set) lazy var gradientView: GradientView { get set }
  • The visual effect view in the background of the table view.

    Declaration

    Swift

    open private(set) lazy var visualEffectView: UIVisualEffectView { get set }
  • The AssetManager that this view controller can use to set and get assets.

    Declaration

    Swift

    open var assetManager: AssetManager?
  • The AudioClips which should be displayed.

    Declaration

    Swift

    open var audioClips: [AudioClip] { get set }
  • An object that acts as the delegate.

    Declaration

    Swift

    open weak var delegate: AudioClipSelectionControllerDelegate?
  • A closure to configure the cell of each audio clip.

    Declaration

    Swift

    open var cellConfigurationClosure: ((AudioClipTableViewCell, AudioClip) -> Void)?
  • Determines whether the artwork, artist and duration should be fetched from the metadata of an audio file in case these information are missing from the corresponding AudioClip.

    Declaration

    Swift

    open var useMetadata: Bool?