diff --git a/api/@ohos.telephony.data.d.ts b/api/@ohos.telephony.data.d.ts index a82b90e3dd203f02940c831c92af55e69c970de6..1ca3ce823f77aed38d4cfc72243670bd0c3022db 100644 --- a/api/@ohos.telephony.data.d.ts +++ b/api/@ohos.telephony.data.d.ts @@ -31,6 +31,17 @@ declare namespace data { function getDefaultCellularDataSlotId(callback: AsyncCallback): void; function getDefaultCellularDataSlotId(): Promise; + /** + * 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; + /** * Switches cellular data services to another card, without changing the default settings. * diff --git a/api/@ohos.telephony.sim.d.ts b/api/@ohos.telephony.sim.d.ts index 1846fee55761a670fbe76b5d559bf3777e3a41fe..475772a1af5de4499f2b86a86c88e9b4691d002a 100644 --- a/api/@ohos.telephony.sim.d.ts +++ b/api/@ohos.telephony.sim.d.ts @@ -462,17 +462,6 @@ 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