ty.outdoor.openOutdoorCyclingNavigation
跳转骑行导航页面
引入
import { openOutdoorCyclingNavigation } from '@ray-js/ray';
注意:当前功能仅在
智慧出行App
开通使用,需要在基础库2.15.14
及以上版本使用。
参数
Object object
属性 | 类型 | 默认值 | 必填 | 说明 |
---|---|---|---|---|
devId | string |
否 | 设备 id | |
complete | function |
否 | 接口调用结束的回调函数(调用成功、失败都会执行) | |
success | function |
否 | 接口调用成功的回调函数 | |
fail | function |
否 | 接口调用失败的回调函数 |
请求示例
openOutdoorCyclingNavigation({
devId: "devId"
}).then(() => {
console.log('调用成功跳转骑行导航页面');
});
ty.outdoor.getBoundDeviceIdList
获取已绑定设备 ID 集合
需引入
OutdoorKit
,且在>=1.0.1
版本才可使用
参数
Object object
属性 | 类型 | 默认值 | 必填 | 说明 |
---|---|---|---|---|
complete | function |
否 | 接口调用结束的回调函数(调用成功、失败都会执行) | |
success | function |
否 | 接口调用成功的回调函数 | |
fail | function |
否 | 接口调用失败的回调函数 |
object.success 回调参数
参数
Object res
属性 | 类型 | 说明 |
---|---|---|
devIdList |