harmony 鸿蒙Telephony Subsystem Changelog
Telephony Subsystem Changelog
cl.telephony.1 Radio Module API Change
Changed the isNrSupported
API in the radio module of the telephone subsystem:
NR is a proper noun and must be capitalized.
You need to adapt your application.
Change Impacts
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 鸿蒙Ability Subsystem Changelog
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦