AudioClipCategory
@objcMembers
@objc(PESDKAudioClipCategory)
open class AudioClipCategory : NSObject
An AudioClipCategory
represents one category of audio clips.
-
The identifier of this category.
Declaration
Swift
public let identifier: String
-
The title of this category, e.g. ‘Toy Collection’.
Declaration
Swift
public let title: String
-
The URL of the category’s preview image. This can be a file url or a remote url.
Declaration
Swift
public let imageURL: URL?
-
The audio clips associated with this category.
Declaration
Swift
public let audioClips: [AudioClip]
-
The pool of audio clips that is available within the SDK.
Note
This is a wrapper forAssetCatalog.shared
.Declaration
Swift
public static var all: [AudioClipCategory] { get set }
-
Creates the default audio clip categories that are shipped with the SDK.
Declaration
Swift
public static var defaultItems: [AudioClipCategory]
-
Creates a audio clip category with audio clips, a title and an optional image url.
Declaration
Swift
public convenience init(title: String, imageURL: URL?, audioClips: [AudioClip])
Parameters
title
The title of this category, e.g. ‘Intros’.
imageURL
The url for the category’s preview image.
audioClips
The audio clips to associate with this category.
-
Creates a audio clip category with an identifier, audio clips, a title and an optional image url.
Declaration
Swift
public init(identifier: String, title: String, imageURL: URL?, audioClips: [AudioClip])
Parameters
identifier
The identifier of this category.
title
The title of this category, e.g. ‘Intros’.
imageURL
The url of the category’s preview image.
audioClips
The audio clips to associate with this category.