diff --git a/api/@ohos.telephony.data.d.ts b/api/@ohos.telephony.data.d.ts index 5a74b8ae56f474675ca6309db9718d69b8a99f68..0238fd0b39a2b3c66c5fefcee8415669f8da8820 100644 --- a/api/@ohos.telephony.data.d.ts +++ b/api/@ohos.telephony.data.d.ts @@ -437,6 +437,17 @@ 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 + */ + function getActiveApnName(): Promise; + /** * Query APN IDs. *