harmony 鸿蒙Telephony Subsystem Changelog

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

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 鸿蒙Readme

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

harmony 鸿蒙File Management Subsystem Changelog

harmony 鸿蒙Input Method Framework ChangeLog

0  赞