APIScriptMessage Class Reference
Inherits from | NSObject |
---|---|
Declared in | APIScriptMessage.h |
name
消息名称,对应调用api.accessNative时的name参数
@property (nonatomic, copy, readonly) NSString *name
Discussion
消息名称,对应调用api.accessNative时的name参数
Declared In
APIScriptMessage.h
userInfo
消息的附加信息,对应调用api.accessNative时的extra参数
@property (nonatomic, copy, readonly) id userInfo
Discussion
消息的附加信息,对应调用api.accessNative时的extra参数
Declared In
APIScriptMessage.h
callback
此次消息的回调方法,通过APIWebView进行回调数据时需要
@property (nonatomic, readonly) NSInteger callback
Discussion
此次消息的回调方法,通过APIWebView进行回调数据时需要
Declared In
APIScriptMessage.h
– callbackWithRet:err:delete:
回传数据给js
- (void)callbackWithRet:(id)ret err:(id)err delete:(BOOL)del
Parameters
ret |
成功时返回的数据 |
---|---|
err |
失败时返回的数据 |
del |
是否删除回传通道 |
Discussion
回传数据给js
Declared In
APIScriptMessage.h