PLVWebViewPictureInPictureLifeManagerDelegate

Objective-C

@protocol PLVWebViewPictureInPictureLifeManagerDelegate <NSObject>

@optional

/// 画中画将要开始
/// @param pipManager 画中画管理器
- (void)plvPIPLifeManagerPictureInPictureWillStart:(PLVWebViewPictureInPictureLifeManager *)pipManager;

/// 画中画已经开始
/// @param pipManager 画中画管理器
- (void)plvPIPLifeManagerPictureInPictureDidStart:(PLVWebViewPictureInPictureLifeManager *)pipManager;

/// 画中画开启失败
/// @param pipManager 画中画管理器
/// @param error 失败错误原因
- (void)plvPIPLifeManager:(PLVWebViewPictureInPictureLifeManager *)pipManager pictureInPictureFailedToStartWithError:(NSError *)error;

/// 画中画将要停止
/// @param pipManager 画中画管理器
- (void)plvPIPLifeManagerPictureInPictureWillStop:(PLVWebViewPictureInPictureLifeManager *)pipManager;

/// 画中画已经停止
/// @param pipManager 画中画管理器
- (void)plvPIPLifeManagerPictureInPictureDidStop:(PLVWebViewPictureInPictureLifeManager *)pipManager;

/// 点击画中画恢复按钮,画中画关闭之前的用户界面恢复实现
/// @param completionHandler completionHandler
- (void)plvPIPLifeManagerRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler:(void (^)(BOOL restored))completionHandler;

@end

Swift

protocol PLVWebViewPictureInPictureLifeManagerDelegate : NSObjectProtocol

Undocumented