stopWatchShake.js 744 B

1
  1. import invoker,{PLATFORM_TYPE_ENUM}from"./invoker";function stopWatchShakeHandler(e,o){var t=o.resolve,n=o.reject,a=o.containerType,c=o.platformType,r=o.context;if(a){c===PLATFORM_TYPE_ENUM.ANDROID?r&&r((function(o){e.onSuccess&&e.onSuccess(),t()}),(function(e){n()}),"taurus.common","stopWatchShake",e):c===PLATFORM_TYPE_ENUM.IOS&&r.callHandler("taurus.common.stopWatchShake",Object.assign({},e),(function(e){t()}))}else r&&r.call("stopWatchShake",e,(function(e){invoker.removeContinuesEvent("shake"),invoker.handleBridgeResponse(e,t,n)}))}invoker.registerAPI("stopWatchShake",{mobile:stopWatchShakeHandler}),stopWatchShake.version={android:"1.6.2",ios:"1.6.2"};export default function stopWatchShake(){return invoker.invoke("stopWatchShake")}