---
title: PHLivePhotoViewDelegate
framework: photosui
role: symbol
role_heading: Protocol
path: photosui/phlivephotoviewdelegate
---

# 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

```swift
@MainActor protocol PHLivePhotoViewDelegate : NSObjectProtocol
```

## Topics

### Responding to Live Photos Playback Events

- [livePhotoView(_:canBeginPlaybackWith:)](photosui/phlivephotoviewdelegate/livephotoview(_:canbeginplaybackwith:).md)
- [livePhotoView(_:willBeginPlaybackWith:)](photosui/phlivephotoviewdelegate/livephotoview(_:willbeginplaybackwith:).md)
- [livePhotoView(_:didEndPlaybackWith:)](photosui/phlivephotoviewdelegate/livephotoview(_:didendplaybackwith:).md)
- [livePhotoView(_:extraMinimumTouchDurationFor:with:)](photosui/phlivephotoviewdelegate/livephotoview(_:extraminimumtouchdurationfor:with:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Responding to Playback Events

- [delegate](photosui/phlivephotoview/delegate.md)
