diff --git a/api/@ohos.telephony.radio.d.ts b/api/@ohos.telephony.radio.d.ts index 509612624dd205421d6bce47a49b4926a71f91de..9f07bcc837d310fd81d1c932170d37a47ccc0cc9 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. *