1 |
- import invoker,{PLATFORM_TYPE_ENUM,API_INVOKER_TYPE}from"./invoker";function stopGeolocationHandler(o,e){var n=e.resolve,i=e.reject,t=e.containerType,r=e.platformType,s=e.appType,a=e.context;if(t){var c=function(e){invoker.removeContinuesEvent(o.sceneId),invoker.handleBridgeResponse(e,n,i)},l=function(e){invoker.removeContinuesEvent(o.sceneId),invoker.handleBridgeResponse(e,n,i)};s===API_INVOKER_TYPE.MINI_APP?a&&a({m:"taurus.common.stopGeolocation",args:o,onSuccess:c,onFail:l}):r===PLATFORM_TYPE_ENUM.ANDROID?a&&a(c,l,"taurus.common","stopGeolocation",o):r===PLATFORM_TYPE_ENUM.IOS&&a.callHandler("taurus.common.stopGeolocation",Object.assign({},o),(function(e){invoker.removeContinuesEvent(o.sceneId),invoker.handleBridgeResponse(e,n,i)}))}else a&&a.call("stopGeolocation",o,(function(e){invoker.removeContinuesEvent(o.sceneId),invoker.handleBridgeResponse(e,n,i)}))}invoker.registerAPI("stopGeolocation",{mobile:stopGeolocationHandler,mini:stopGeolocationHandler}),stopGeolocation.version={android:"1.3.2",ios:"1.3.2"};export default function stopGeolocation(o){return invoker.invoke("stopGeolocation",o)}
|