@Test public void testClearInterval() throws Exception { module.clearInterval(0); Mockito.verify(bridge,never()).removeMessage(anyInt(),anyInt()); reset(bridge); module.clearInterval(1); Mockito.verify(bridge,times(1)).removeMessage(eq(WXJSBridgeMsgType.MODULE_INTERVAL),eq(1)); }
@JSMethod(uiThread = false) public void clearInterval(int funcId) { if(funcId <= 0){ return; } WXBridgeManager.getInstance().removeMessage(WXJSBridgeMsgType.MODULE_INTERVAL, funcId); }
WXTimerModule extends WXModule { @JSMethod(uiThread = false) public void clearInterval(int funcId) { if(funcId <= 0){ return; } WXBridgeManager.getInstance().removeMessage(WXJSBridgeMsgType.MODULE_INTERVAL, funcId); } }
WXTimerModule extends WXModule { @JSMethod(uiThread = false) public void clearInterval(int funcId) { if(funcId <= 0){ return; } WXBridgeManager.getInstance().removeMessage(WXJSBridgeMsgType.MODULE_INTERVAL, funcId); }  }
WXTimerModule extends WXModule { @JSMethod(uiThread = false) public void clearInterval(int funcId) { if(funcId <= 0){ return; } WXBridgeManager.getInstance().removeMessage(WXJSBridgeMsgType.MODULE_INTERVAL, funcId); }  @JSMethod(uiThread = false) void setTimeout(int funcId, int delay); @JSMethod(uiThread = false) void setInterval(int funcId, int interval); @JSMethod(uiThread = false) void clearTimeout(int funcId); @JSMethod(uiThread = false) void clearInterval(int funcId); static void setInterval(int funcId, int interval, int instanceId); }
WXTimerModule extends WXModule { @JSMethod(uiThread = false) public void clearInterval(int funcId) { if(funcId <= 0){ return; } WXBridgeManager.getInstance().removeMessage(WXJSBridgeMsgType.MODULE_INTERVAL, funcId); }  @JSMethod(uiThread = false) void setTimeout(int funcId, int delay); @JSMethod(uiThread = false) void setInterval(int funcId, int interval); @JSMethod(uiThread = false) void clearTimeout(int funcId); @JSMethod(uiThread = false) void clearInterval(int funcId); static void setInterval(int funcId, int interval, int instanceId);  }