AudioClipToolControllerOptions
@objcMembers
@objc(PESDKAudioClipToolControllerOptions)
open class AudioClipToolControllerOptions : ToolControllerOptions
Options for configuring an AudioClipToolController
.
-
This closure allows further configuration of the audio clip category buttons. The closure is called for each audio clip category button and has the button and its corresponding audio clip category as parameters.
Declaration
Swift
public let audioClipCategoryButtonConfigurationClosure: ((MenuCollectionViewCell, AudioClipCategory) -> Void)?
-
This closure allows further configuration of the audio clip buttons. The closure is called for each audio clip button and has the button and its corresponding audio clip as parameters.
Declaration
Swift
public let audioClipButtonConfigurationClosure: ((AudioClipTableViewCell, AudioClip) -> Void)?
-
The index of the audio clip category that should be selected when initially presenting the tool. If this index is larger than the number of available categories, the first category will be used. Default is
0
.Declaration
Swift
public let defaultAudioClipCategoryIndex: Int
-
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
. Default is set totrue
.Declaration
Swift
public let useMetadata: Bool
-
Creates a new instance of
AudioClipToolControllerOptionsBuilder
using the given builder.Declaration
Swift
public init(builder: AudioClipToolControllerOptionsBuilder)
Parameters
builder
An instance of
AudioClipToolControllerOptionsBuilder
.