ClipMergeDelegate

@objc public protocol ClipMergeDelegate: class

The protocol for the AKClipMerger’s delegate It is the responsibility of the delegate to create a new clip when a an existing clip has been altered or split.

  • A new clip, derived from an existing clip, with specified values.

    • Return A newly created clip with time, offset, and duration set to provided values.

    Declaration

    Swift

    @objc func newClip(from clip: AKClip, time: Double, offset: Double, duration: Double) -> AKClip?

    Parameters

    clip

    The existing clip that the new clip should be derived from.

    time

    The newly created clip’s time.

    offset

    The newly created clip’s time.

    duration

    The newly created clip’s time.

  • Called when an existing clip will be removed as a result of merging in a new clip.

    Declaration

    Swift

    @objc optional func clipWillBeRemoved(_ clip: AKClip)