---
title: "livePhotoView(_:canBeginPlaybackWith:)"
framework: photosui
role: symbol
role_heading: Instance Method
path: "photosui/phlivephotoviewdelegate/livephotoview(_:canbeginplaybackwith:)"
---

# livePhotoView(_:canBeginPlaybackWith:)

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

## Declaration

```swift
optional func livePhotoView(_ livePhotoView: PHLivePhotoView, canBeginPlaybackWith playbackStyle: PHLivePhotoViewPlaybackStyle) -> Bool
```

## Parameters

- `livePhotoView`: The view requesting whether it can begin the playback of Live Photo content.
- `playbackStyle`: The style of playback, indicating whether the content can play in full or as a brief preview.

## Return Value

Return Value Whether the playback of Live Photo content can begin.

## See Also

### Responding to Live Photos Playback Events

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