<!--
{
  "availability" : [
    "iOS: 9.1.0 -",
    "iPadOS: 9.1.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/PhotosUI/PHLivePhotoViewDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "PhotosUI"
    ],
    "preciseIdentifier" : "c:objc(pl)PHLivePhotoViewDelegate"
  },
  "title" : "PHLivePhotoViewDelegate"
}
-->

# PHLivePhotoViewDelegate

The [`PHLivePhotoViewDelegate`](/documentation/PhotosUI/PHLivePhotoViewDelegate) protocol describes messages sent by a [`PHLivePhotoView`](/documentation/PhotosUI/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`](/documentation/PhotosUI/PHLivePhotoView/delegate) property of a Live Photo view.

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

## Topics

### Responding to Live Photos Playback Events

[`func livePhotoView(PHLivePhotoView, canBeginPlaybackWith: PHLivePhotoViewPlaybackStyle) -> Bool`](/documentation/PhotosUI/PHLivePhotoViewDelegate/livePhotoView(_:canBeginPlaybackWith:))

Notifies the delegate to determine whether the Live Photo can begin playback.

[`func livePhotoView(PHLivePhotoView, willBeginPlaybackWith: PHLivePhotoViewPlaybackStyle)`](/documentation/PhotosUI/PHLivePhotoViewDelegate/livePhotoView(_:willBeginPlaybackWith:))

Notifies the delegate when Live Photos playback is beginning.

[`func livePhotoView(PHLivePhotoView, didEndPlaybackWith: PHLivePhotoViewPlaybackStyle)`](/documentation/PhotosUI/PHLivePhotoViewDelegate/livePhotoView(_:didEndPlaybackWith:))

Notifies the delegate when Live Photos playback ends.

[`func livePhotoView(PHLivePhotoView, extraMinimumTouchDurationFor: UITouch, with: PHLivePhotoViewPlaybackStyle) -> TimeInterval`](/documentation/PhotosUI/PHLivePhotoViewDelegate/livePhotoView(_:extraMinimumTouchDurationFor:with:))

Notifies the delegate to offset the timing of a touch.

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)