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

  • 2022-10-28
  • 浏览 (597)

电话服务子系统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(鸿蒙)3.2 beta3相对于3.2 beta2变更详细说明

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变更

0  赞