QEDMediaCaptureAndPlayViewControllerDelegate

public protocol QEDMediaCaptureAndPlayViewControllerDelegate : AnyObject

A class conforming to this protocol will receive the necessary method calls to handle the lifecycle for the media playback, capture and deletion from a QEDMediaCaptureAndPlayViewController.

  • Asks the delegate if a local media file can be deleted.

    Important

    Returning true does not trigger file deletion, but a delete button will be made available to the user. File deletion can then be triggered by the user by tapping on the delete button.

    Declaration

    Swift

    func mediaCaptureAndPlayViewController(_ controller: QEDMediaCaptureAndPlayViewController, allowToDeleteFileAt fileURL: URL) -> Bool

    Parameters

    controller

    The controller object informing the delegate of this event

    fileURL

    The local URL for the file the request is made for

    Return Value

    true if the file at fileURL could be deleted by the user, otherwise false.

  • Tells the delegate a file deletion has been requested for a local file.

    Note

    The controller implementation will attempt to delete the file from the file system, but if it fails, will do silently. It is up to your implemnetation to check that the file has been actually deleted if necessary.

    After calling this method the controller will clear its reference to the reported fileURL

    Declaration

    Swift

    func mediaCaptureAndPlayViewController(_ controller: QEDMediaCaptureAndPlayViewController, fileDeletionRequestedFor fileURL: URL)

    Parameters

    controller

    The controller object informing the delegate of this event

    fileURL

    The local URL for the file that has been requested for deletion