harmony 鸿蒙电话服务子系统JS API变更

  • 2022-12-22
  • 浏览 (565)

电话服务子系统JS API变更

OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,电话服务子系统的API变更如下:

接口变更

模块名 类名 方法/属性/枚举/常量 变更类型
ohos.telephony.data data getDefaultCellularDataSlotIdSync(): number; 新增
ohos.telephony.radio ImsServiceType TYPE_SMS 新增
ohos.telephony.radio ImsServiceType TYPE_UT 新增
ohos.telephony.radio ImsServiceType TYPE_VIDEO 新增
ohos.telephony.radio ImsServiceType TYPE_VOICE 新增
ohos.telephony.radio ImsRegInfo imsRegTech: ImsRegTech; 新增
ohos.telephony.radio ImsRegInfo imsRegState: ImsRegState; 新增
ohos.telephony.radio ImsRegTech REGISTRATION_TECH_NR 新增
ohos.telephony.radio ImsRegTech REGISTRATION_TECH_IWLAN 新增
ohos.telephony.radio ImsRegTech REGISTRATION_TECH_LTE 新增
ohos.telephony.radio ImsRegTech REGISTRATION_TECH_NONE 新增
ohos.telephony.radio ImsRegState IMS_REGISTERED 新增
ohos.telephony.radio ImsRegState IMS_UNREGISTERED 新增
ohos.telephony.radio radio off(type: ‘imsRegStateChange’, slotId: number, imsType: ImsServiceType, callback?: Callback<ImsRegInfo>): void; 新增
ohos.telephony.radio radio on(type: ‘imsRegStateChange’, slotId: number, imsType: ImsServiceType, callback: Callback<ImsRegInfo>): void; 新增
ohos.telephony.radio radio getImsRegInfo(slotId: number, imsType: ImsServiceType, callback: AsyncCallback<ImsRegInfo>): void;
getImsRegInfo(slotId: number, imsType: ImsServiceType): Promise<ImsRegInfo>;
新增
ohos.telephony.sim sim getOpName(slotId: number, callback: AsyncCallback<string>): void;
getOpName(slotId: number): Promise<string>;
新增
ohos.telephony.sim sim getOpKey(slotId: number, callback: AsyncCallback<string>): void;
getOpKey(slotId: number): Promise<string>;
新增

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Readme

harmony 鸿蒙元能力子系统JS API变更

harmony 鸿蒙无障碍子系统JS API变更

harmony 鸿蒙帐号子系统JS API变更

harmony 鸿蒙ArkUI子系统JS API变更

harmony 鸿蒙电源服务子系统JS API变更

harmony 鸿蒙包管理子系统JS API变更

harmony 鸿蒙基础通信子系统JS API变更

harmony 鸿蒙公共基础库子系统JS API变更

harmony 鸿蒙DFX子系统JS API变更

0  赞