AudioClipToolControllerOptionsBuilder
@objcMembers
@objc(PESDKAudioClipToolControllerOptionsBuilder)
open class AudioClipToolControllerOptionsBuilder : ToolControllerOptionsBuilder
The default AudioClipToolControllerOptionsBuilder
for AudioClipToolControllerOptions
.
-
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
open var 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
open var 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
open var 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
open var useMetadata: Bool
-
Creates a new instance of
AudioClipToolControllerOptions
initialized with the given options.Declaration
Swift
public init(options: AudioClipToolControllerOptions)
Parameters
options
A
AudioClipToolControllerOptions
instance.