Java Code Examples for com.taobao.weex.ui.component.WXComponent#invoke()
The following examples show how to use
com.taobao.weex.ui.component.WXComponent#invoke() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: InvokeMethodAction.java From ucar-weex-core with Apache License 2.0 | 5 votes |
@Override public void executeDom(DOMActionContext context) { WXComponent comp = context.getCompByRef(mRef); if(comp == null){ WXLogUtils.e("DOMAction","target component not found."); return; } comp.invoke(mMethod,mArgs); }
Example 2
Source File: WXDomStatement.java From weex-uikit with MIT License | 5 votes |
void invokeMethod(String ref, String method, JSONArray args){ if(mDestroy){ return; } WXComponent comp = mWXRenderManager.getWXComponent(mInstanceId, ref); if(comp == null){ WXLogUtils.e("DomStatement","target component not found."); return; } comp.invoke(method,args); }