harmony 鸿蒙Telephony Subsystem Changelog

  • 2023-06-24
  • 浏览 (451)

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

harmony 鸿蒙File Subsystem Changelog

harmony 鸿蒙Upload and Download Subsystem Changelog

0  赞