From eff9245a1c2baa8dbf407810dc293f9db24cf37f Mon Sep 17 00:00:00 2001 From: dingxiaochen Date: Thu, 8 Sep 2022 22:19:10 +0800 Subject: [PATCH] fixed a61fcd4 from https://gitee.com/dingxiaochen/interface_sdk-js/pulls/2677 add sync interface. Signed-off-by: dingxiaochen --- api/@ohos.telephony.sim.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/api/@ohos.telephony.sim.d.ts b/api/@ohos.telephony.sim.d.ts index 475772a1af..1846fee557 100644 --- a/api/@ohos.telephony.sim.d.ts +++ b/api/@ohos.telephony.sim.d.ts @@ -462,6 +462,17 @@ declare namespace sim { value: string; } + /** + * Checks whether cellular data services are enabled. + * + *

Requires Permission: {@code ohos.permission.GET_NETWORK_INFO}. + * + * @return Returns default cellular data slot id. + * @permission ohos.permission.GET_NETWORK_INFO + * @since 9 + */ + function getDefaultCellularDataSlotIdSync(): number; + /** * @systemapi Hide this for inner system use. * @since 7 -- Gitee