UNPKG

mtl-js-sdk

Version:

ynf-fw-mtl-api

82 lines (67 loc) 1.54 kB
/* * @Author: wangyingliang@yonyou.com * @Date: 2024-07-22 15:45:20 * @LastEditors: wangyingliang wangyingliang@yonyou.com * @LastEditTime: 2024-07-22 16:11:52 * @FilePath: /mtl-api-project/src/platforms/all-platform/changeAction/index.js * @Description: 全平台通用函数集合 * Copyright (c) 2024 by Yonyou, All Rights Reserved. */ function getUniqueId(obj) { mtl.getMac(obj) } function openMap(obj) { mtl.openLocation(obj) } function startContinuousLocation(obj) { mtl.continuousLocationStart(obj) } function getContinuousLocation(obj) { mtl.continuousLocationGet(obj) } function stopContinuousLocation(obj) { mtl.continuousLocationStop(obj) } function onShake(obj) { mtl.watchShake(obj) } function onInterceptBack(obj) { mtl.backIntercept(obj) } function showRecordAudio(obj) { mtl.recordAudio(obj) } function setNavBar(obj) { mtl.settingNavBar(obj) } function showCityPicker(obj) { mtl.chooseCity(obj) } function showDateTimePicker(obj) { mtl.dateTimePicker(obj) } function suspendScanQRCode(obj) { mtl.webViewCustomScanQRCode(obj) } function canWebviewBack(obj) { mtl.isWebviewCanGoBack(obj) } function webviewBack(obj) { mtl.onWebviewGoBack(obj) } export default { getUniqueId, openMap, startContinuousLocation, getContinuousLocation, stopContinuousLocation, onShake, onInterceptBack, showRecordAudio, setNavBar, showCityPicker, showDateTimePicker, suspendScanQRCode, canWebviewBack, webviewBack };