Protocols
The following protocols are available globally.
-
Undocumented
See moreDeclaration
Objective-C
@protocol PLVWebViewControllerProtocol <NSObject> /// 展示h5的控制器需要实现的方法,可用于页面被销毁时重建控制器 + (instancetype)webViewControllerWithURLString:(NSString *)urlString; @end
Swift
protocol PLVWebViewControllerProtocol : NSObjectProtocol
-
Undocumented
See moreDeclaration
Objective-C
@protocol PLVWebViewManagerDelegate <NSObject> @optional /// 点击商品,打开商品页时触发 /// @param link subWebview新页面的链接 /// @param data 第三方应用信息(客户自定义使用) - (void)webviewManager:(PLVWebViewManager *)manager willJumpLink:(NSString *)link data:(NSDictionary *)data; /// 点击小窗区域,从小窗中恢复到页面时触发该回调 - (void)webviewManagerDidRecoverWindow:(PLVWebViewManager *)manager; /// 点击小窗区域,关闭小窗时触发该回调 - (void)webviewManagerDidCloseWindow:(PLVWebViewManager *)manager; @end
Swift
protocol PLVWebViewManagerDelegate : NSObjectProtocol