harmony 鸿蒙Telephony Subsystem Changelog
Telephony Subsystem Changelog
cl.telephony.1 Radio Module API Change
Changed the isNrSupported
API in the radio module of the telephony subsystem:
NR is a proper noun and must be capitalized.
You need to adapt your application based on the following information.
Change Impact
The JS API needs to be adapted for applications developed based on earlier versions. Otherwise, relevant functions will be affected.
Key API/Component Changes
- Involved APIs:
isNrSupported(): boolean; isNrSupported(slotId: number): boolean;
- Before change:
function isNrSupported(): boolean;
function isNrSupported(slotId: number): boolean;
- After change:
function isNRSupported(): boolean;
function isNRSupported(slotId: number): boolean;
Adaptation Guide
Use the new API. The sample code is as follows:
let result = radio.isNrSupported();
console.log("Result: "+ result);
let slotId = 0;
let result = radio.isNRSupported(slotId);
console.log("Result: "+ result);
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Example Subsystem Changelog
harmony 鸿蒙Ability Framework Changelog
harmony 鸿蒙Account Subsystem Changelog
harmony 鸿蒙ArkUI Subsystem ChangeLog
harmony 鸿蒙Multimedia Subsystem Changelog
harmony 鸿蒙Common Library Subsystem Changelog
harmony 鸿蒙Distributed Data Management Subsystem JS API Changelog
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦