Skip to main content

CallJS

[Player Network SDK & MSDK] The communication interface between JS code and Native code.

Supported Platform​

Supports Android, iOS, Windows platform.
note

MSDK currently does not support Windows.

Function Definition​

void CallJS(string jsonJsParam);

Input Parameters​

ParameterTypeDescription
jsonJsParamstringJSON string

Callback Processing​

The callback processing API is GUAWebViewResultObserver. The callback data structure is GUAWebViewRet.

The callback event is WebViewRetEvents. The callback methodID is GUA_WEBVIEW_JS_CALL.

Code Sample​

UnionAdapterAPI.GetWebViewService().CallJS("jsonJsParam");