做外贸的人如何上国外网站,正能量无遮掩图片全屏,自适应网站案例,斗门区建设局网站取消注册智慧出行连接状态的监听。
接口说明
接口名描述[off] (type: ‘smartMobilityStatus’, smartMobilityTypes: SmartMobilityType[], callback?: Callback): void取消注册智慧出行连接状态的监听。
开发步骤** 导入Car Kit模块。 import { smartMobilityCommon } fr…取消注册智慧出行连接状态的监听。
接口说明
接口名描述[off] (type: ‘smartMobilityStatus’, smartMobilityTypes: SmartMobilityType[], callback?: Callback): void取消注册智慧出行连接状态的监听。
开发步骤** 导入Car Kit模块。 import { smartMobilityCommon } from kit.CarKit;获取SmartMobilityStatusAwareness实例。 let awareness: smartMobilityCommon.SmartMobilityAwareness smartMobilityCommon.getSmartMobilityAwareness();取消注册智慧出行连接状态的监听。
// 业务类型
let types: smartMobilityCommon.SmartMobilityType[] [smartMobilityCommon.SmartMobilityType.CAR_HOP];
// 出行连接状态回调函数
const callBack (info: smartMobilityCommon.SmartMobilityInfo) {hilog.info(0x0000, Received smart mobility info: , JSON.stringify(info));
};
// 解注册智慧出行连接状态的监听 示例1
// awareness.off(smartMobilityStatus, types);
// 解注册智慧出行连接状态的监听 示例2
awareness.off(smartMobilityStatus, types, callBack);