Protocol

PHLivePhotoViewDelegate

The PHLivePhotoViewDelegate protocol describes messages sent by a PHLivePhotoView instance in response to playback events when playing the motion and sound content associated with a Live Photo. To receive these messages, implement the methods in this protocol in one of your controller objects and assign that object to the delegate property of a Live Photo view.

Declaration

protocol PHLivePhotoViewDelegate

Topics

Responding to Live Photo Playback Events

func livePhotoView(PHLivePhotoView, willBeginPlaybackWith: PHLivePhotoViewPlaybackStyle)

Notifies the delegate that Live Photo playback is about to begin.

func livePhotoView(PHLivePhotoView, didEndPlaybackWith: PHLivePhotoViewPlaybackStyle)

Notifies the delegate that Live Photo playback has ended.

Relationships

Inherits From

See Also

Responding to Playback Events

var delegate: PHLivePhotoViewDelegate?

An object to be notified when Live Photo playback begins or ends.