PLVLoginWebViewBridgeDelegate
Objective-C
@protocol PLVLoginWebViewBridgeDelegate <NSObject>
Swift
protocol PLVLoginWebViewBridgeDelegate : NSObjectProtocol
登录模块 WebSDK Bridge 的回调 (不能保证在主线程回调)
-
获取APP本地保存的账号信息
Declaration
Objective-C
- (nonnull NSString *)getAppLocalAccountInfoInLoginWebViewBridge: (nonnull PLVLoginWebViewBridge *)webViewBridge;Swift
func getAppLocalAccountInfo(in webViewBridge: PLVLoginWebViewBridge) -> StringParameters
webViewBridgeWebSDK与JS桥接
-
通知 APP 需要记住账号密码
Declaration
Objective-C
- (void)plvLoginWebViewBridge:(nonnull PLVLoginWebViewBridge *)webViewBridge saveAccountInfoWithJSONObject:(nonnull id)jsonObject;Swift
func plvLoginWebViewBridge(_ webViewBridge: PLVLoginWebViewBridge, saveAccountInfoWithJSONObject jsonObject: Any)Parameters
webViewBridgeWebSDK与JS桥接
jsonObject账号信息
-
通知 APP 退出WebView
Declaration
Objective-C
- (void)plvLoginWebViewBridge:(nonnull PLVLoginWebViewBridge *)webViewBridge quitWebViewWithJSONObject:(nonnull id)jsonObject;Swift
func plvLoginWebViewBridge(_ webViewBridge: PLVLoginWebViewBridge, quitWebViewWithJSONObject jsonObject: Any)Parameters
webViewBridgeWebSDK与JS桥接
jsonObject退出的信息
View on GitHub
PLVLoginWebViewBridgeDelegate Protocol Reference