From 9321274314e3c3a4b68ca1e800573375e51361f0 Mon Sep 17 00:00:00 2001 From: dingxiaochen Date: Fri, 20 Jan 2023 11:20:30 +0800 Subject: [PATCH] fix interface. Signed-off-by: dingxiaochen --- api/@ohos.telephony.radio.d.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/api/@ohos.telephony.radio.d.ts b/api/@ohos.telephony.radio.d.ts index 509612624d..9f07bcc837 100644 --- a/api/@ohos.telephony.radio.d.ts +++ b/api/@ohos.telephony.radio.d.ts @@ -225,6 +225,8 @@ declare namespace radio { * * @returns Returns {@code true} if the device supports 5G NR; returns {@code false} otherwise. * @since 7 + * @deprecated since 9 + * @useinstead telephony.radio#isNRSupported */ function isNrSupported(): boolean; @@ -235,9 +237,29 @@ declare namespace radio { * supported by the device. * @returns Returns {@code true} if the device supports 5G NR; returns {@code false} otherwise. * @since 8 + * @deprecated since 9 + * @useinstead telephony.radio#isNRSupported */ function isNrSupported(slotId: number): boolean; + /** + * Checks whether the device supports 5G New Radio (NR). + * + * @returns Returns {@code true} if the device supports 5G NR; returns {@code false} otherwise. + * @since 9 + */ + function isNRSupported(): boolean; + + /** + * Checks whether the device supports 5G New Radio (NR) by according card slot. + * + * @param slotId Indicates the card slot index number, ranging from 0 to the maximum card slot index number + * supported by the device. + * @returns Returns {@code true} if the device supports 5G NR; returns {@code false} otherwise. + * @since 9 + */ + function isNRSupported(slotId: number): boolean; + /** * Checks whether the radio service is enabled. * -- Gitee