Instance Method

mediaPicker(_:didPickMediaItems:)

Called when a user has selected a set of media items.

Declaration

optional func mediaPicker(_ mediaPicker: MPMediaPickerController, didPickMediaItems mediaItemCollection: MPMediaItemCollection)

Parameters

mediaPicker

The media item picker to dismiss.

mediaItemCollection

The selected media items.

See Also

Responding to User Actions

func mediaPickerDidCancel(MPMediaPickerController)

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