VideoClipCategory

@objcMembers
@objc(PESDKVideoClipCategory)
open class VideoClipCategory : NSObject

A VideoClipCategory represents one category of video clips. Each category can have multiple video clips associated with it. To support accessibility you should also set its accessibilityLabel.

Properties

  • 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 video clips associated with this category.

    Declaration

    Swift

    public let videoClips: [VideoClip]
  • all

    The pool of video clips that is available within the SDK.

    Note

    This is a wrapper for AssetCatalog.shared.

    Declaration

    Swift

    public static var all: [VideoClipCategory] { get set }
  • Creates the default video clip categories that are shipped with the SDK.

    Declaration

    Swift

    public static var defaultItems: [VideoClipCategory]

Initializers

  • Creates a video clip category with video clips, a title and an optional image url.

    Declaration

    Swift

    public convenience init(title: String, imageURL: URL?, videoClips: [VideoClip])

    Parameters

    title

    The title of this category, e.g. ‘Intros’.

    imageURL

    The url for the category’s preview image.

    videoClips

    The video clips to associate with this category.

  • Creates a video clip category with an identifier, video clips, a title and an optional image url.

    Declaration

    Swift

    public init(identifier: String, title: String, imageURL: URL?, videoClips: [VideoClip])

    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.

    videoClips

    The video clips to associate with this category.