Protocol

MPMediaPickerControllerDelegate

The protocol you implement so that a media item picker can respond to a user making media item selections.

Declaration

protocol MPMediaPickerControllerDelegate

Overview

The delegate for a media item picker can respond to a user making media item selections. The delegate is also responsible for dismissing the media item picker from the parent view controller. The methods in this protocol are optional.

Media items are described in MPMediaItem. Media item pickers are described in MPMediaPickerController.

Topics

Responding to User Actions

func mediaPickerDidCancel(MPMediaPickerController)

Called when a user dismisses a media item picker by tapping Cancel.

Relationships

Inherits From

See Also

Responding to Media Item Picker Selections

var delegate: MPMediaPickerControllerDelegate?

The delegate for a media item picker.