From 1fc65577c25f9841556f32773517ddfb7baf2737 Mon Sep 17 00:00:00 2001 From: liuleimin_hw Date: Thu, 19 Jun 2025 01:50:33 +0000 Subject: [PATCH 1/2] update api/@ohos.telephony.data.d.ts. Signed-off-by: liuleimin_hw --- api/@ohos.telephony.data.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/api/@ohos.telephony.data.d.ts b/api/@ohos.telephony.data.d.ts index 5a74b8ae56..636faec20d 100644 --- a/api/@ohos.telephony.data.d.ts +++ b/api/@ohos.telephony.data.d.ts @@ -437,6 +437,18 @@ declare namespace data { */ function queryAllApns(): Promise>; + /** + * Get Active APN's Name. + * + * @permission ohos.permission.GET_NETWORK_INFO + * @returns { Promise } Returns the name of the active APN or null if cellular network is not active. + * @throws { BusinessError } 201 - Permission denied. + * @syscap SystemCapability.Telephony.CellularData + * @since 20 + * @arkts 1.1&1.2 + */ + function getActiveApnName(): Promise; + /** * Query APN IDs. * -- Gitee From c4924dfda181a27e8c11f87550e6af3acbbfb9cb Mon Sep 17 00:00:00 2001 From: liuleimin_hw Date: Fri, 20 Jun 2025 01:23:16 +0000 Subject: [PATCH 2/2] update api/@ohos.telephony.data.d.ts. Signed-off-by: liuleimin_hw --- api/@ohos.telephony.data.d.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/api/@ohos.telephony.data.d.ts b/api/@ohos.telephony.data.d.ts index 636faec20d..0238fd0b39 100644 --- a/api/@ohos.telephony.data.d.ts +++ b/api/@ohos.telephony.data.d.ts @@ -445,7 +445,6 @@ declare namespace data { * @throws { BusinessError } 201 - Permission denied. * @syscap SystemCapability.Telephony.CellularData * @since 20 - * @arkts 1.1&1.2 */ function getActiveApnName(): Promise; -- Gitee