APIScriptMessageDelegate Protocol Reference

Conforms to NSObject
Declared in APIScriptMessage.h

Overview

html页面和原生交换数据协议,需要根据webView来区分具体是哪个页面

– webView:didReceiveScriptMessage: required method

接收到html里面通过api.accessNative方法发送的消息

- (void)webView:(APIWebView *)webView didReceiveScriptMessage:(APIScriptMessage *)scriptMessage

Parameters

webView

所在的页面

scriptMessage

接收到的消息对象

Discussion

接收到html里面通过api.accessNative方法发送的消息

Declared In

APIScriptMessage.h