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;
@endSwift
protocol PLVWebViewPictureInPictureLifeManagerDelegate : NSObjectProtocolUndocumented
- 
                  
                  画中画将要开始 DeclarationObjective-C - (void)plvPIPLifeManagerPictureInPictureWillStart: (nonnull PLVWebViewPictureInPictureLifeManager *)pipManager;Swift optional func plvPIPLifeManagerPicture(inPictureWillStart pipManager: PLVWebViewPictureInPictureLifeManager)ParameterspipManager画中画管理器 
- 
                  
                  画中画已经开始 DeclarationObjective-C - (void)plvPIPLifeManagerPictureInPictureDidStart: (nonnull PLVWebViewPictureInPictureLifeManager *)pipManager;Swift optional func plvPIPLifeManagerPicture(inPictureDidStart pipManager: PLVWebViewPictureInPictureLifeManager)ParameterspipManager画中画管理器 
- 
                  
                  画中画开启失败 DeclarationObjective-C - (void)plvPIPLifeManager: (nonnull PLVWebViewPictureInPictureLifeManager *)pipManager pictureInPictureFailedToStartWithError:(nonnull NSError *)error;Swift optional func plvPIPLifeManager(_ pipManager: PLVWebViewPictureInPictureLifeManager, pictureInPictureFailedToStartWithError error: Error)ParameterspipManager画中画管理器 error失败错误原因 
- 
                  
                  画中画将要停止 DeclarationObjective-C - (void)plvPIPLifeManagerPictureInPictureWillStop: (nonnull PLVWebViewPictureInPictureLifeManager *)pipManager;Swift optional func plvPIPLifeManagerPicture(inPictureWillStop pipManager: PLVWebViewPictureInPictureLifeManager)ParameterspipManager画中画管理器 
- 
                  
                  画中画已经停止 DeclarationObjective-C - (void)plvPIPLifeManagerPictureInPictureDidStop: (nonnull PLVWebViewPictureInPictureLifeManager *)pipManager;Swift optional func plvPIPLifeManagerPicture(inPictureDidStop pipManager: PLVWebViewPictureInPictureLifeManager)ParameterspipManager画中画管理器 
- 
                  
                  点击画中画恢复按钮,画中画关闭之前的用户界面恢复实现 DeclarationObjective-C - (void) plvPIPLifeManagerRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler: (nonnull void (^)(BOOL))completionHandler;Swift optional func plvPIPLifeManagerRestoreUserInterfaceForPictureInPictureStop() async -> BoolParameterscompletionHandlercompletionHandler 
 View on GitHub
View on GitHub PLVWebViewPictureInPictureLifeManagerDelegate Protocol Reference
        PLVWebViewPictureInPictureLifeManagerDelegate Protocol Reference