mirror of
https://github.com/insidegui/WWDC.git
synced 2026-04-07 19:17:41 +00:00
42 lines
1.7 KiB
Swift
42 lines
1.7 KiB
Swift
//
|
|
// PUIPlayerViewDelegate.swift
|
|
// PlayerUI
|
|
//
|
|
// Created by Guilherme Rambo on 01/05/17.
|
|
// Copyright © 2017 Guilherme Rambo. All rights reserved.
|
|
//
|
|
|
|
import Cocoa
|
|
import ConfUIFoundation
|
|
|
|
public protocol PUIPlayerViewDelegate: AnyObject {
|
|
|
|
func playerViewWillEnterPictureInPictureMode(_ playerView: PUIPlayerView)
|
|
func playerWillRestoreUserInterfaceForPictureInPictureStop(_ playerView: PUIPlayerView)
|
|
func playerViewDidSelectAddAnnotation(_ playerView: PUIPlayerView, at timestamp: Double)
|
|
func playerViewDidSelectToggleFullScreen(_ playerView: PUIPlayerView)
|
|
func playerViewDidSelectLike(_ playerView: PUIPlayerView)
|
|
|
|
}
|
|
|
|
public protocol PUIPlayerViewDetachedStatusPresenter: AnyObject {
|
|
|
|
func presentDetachedStatus(_ status: DetachedPlaybackStatus, for playerView: PUIPlayerView)
|
|
func dismissDetachedStatus(_ status: DetachedPlaybackStatus, for playerView: PUIPlayerView)
|
|
|
|
}
|
|
|
|
public protocol PUIPlayerViewAppearanceDelegate: AnyObject, PUIPlayerViewDetachedStatusPresenter {
|
|
|
|
func playerViewShouldShowTimelineView(_ playerView: PUIPlayerView) -> Bool
|
|
func playerViewShouldShowSubtitlesControl(_ playerView: PUIPlayerView) -> Bool
|
|
func playerViewShouldShowPictureInPictureControl(_ playerView: PUIPlayerView) -> Bool
|
|
func playerViewShouldShowSpeedControl(_ playerView: PUIPlayerView) -> Bool
|
|
func playerViewShouldShowAnnotationControls(_ playerView: PUIPlayerView) -> Bool
|
|
func playerViewShouldShowBackAndForwardControls(_ playerView: PUIPlayerView) -> Bool
|
|
func playerViewShouldShowTimestampLabels(_ playerView: PUIPlayerView) -> Bool
|
|
func playerViewShouldShowFullScreenButton(_ playerView: PUIPlayerView) -> Bool
|
|
func playerViewBackAndForwardDuration(_ playerView: PUIPlayerView) -> BackForwardSkipDuration
|
|
|
|
}
|