PHLivePhotoView

System badge images representing Live Photo content

返回一直用来标示 这张图片是Live的图片

+ (UIImage *)livePhotoBadgeImageWithOptions:(PHLivePhotoBadgeOptions)badgeOptions;@property (readwrite, nonatomic, weak, nullable) iddelegate;

Live photo displayed in the receiver. 图片

@property (readwrite, nonatomic, strong, nullable) PHLivePhoto *livePhoto;

Indicates whether the audio of the Live Photo is muted.

@property (readwrite, nonatomic, assign, getter=isMuted) BOOL muted;

Gesture used to trigger playback. By default, added to the receiver. Can be moved to a different view.

@property (readonly, nonatomic, strong) UIGestureRecognizer *playbackGestureRecognizer;

The following methods allow the client to manually trigger playback. If the live photo is changed during playback, it will be immediately interrupted.允许客户端手动触发播放。如果生活照片是改变在回放期间,它将立即打断了。

- (void)startPlaybackWithStyle:(PHLivePhotoViewPlaybackStyle)playbackStyle;

停止播放

- (void)stopPlayback;

代理方法

- (void)livePhotoView:(PHLivePhotoView *)livePhotoView willBeginPlaybackWithStyle:(PHLivePhotoViewPlaybackStyle)playbackStyle; // 开始播放

- (void)livePhotoView:(PHLivePhotoView *)livePhotoView didEndPlaybackWithStyle:(PHLivePhotoViewPlaybackStyle)playbackStyle;//结束播放
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容