AudioClipSelectionController
@objcMembers
@objc(PESDKAudioClipSelectionController)
open class AudioClipSelectionController : UIViewController
extension AudioClipSelectionController: UITableViewDelegate
extension AudioClipSelectionController: UITableViewDataSource
extension AudioClipSelectionController: AVAudioPlayerDelegate
A AudioClipSelectionController
displays multiple AudioClip
s and allows selection of an audio clip.
-
The table view that displays the
AudioClip
s.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?
-
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?