mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 07:10:52 +00:00
@ohos.telephony.data.d.ts增加移动数据、数据漫游、高清通话是否启用同步接口
Signed-off-by: zhouhongli2023 <zhouhongli5@huawei.com>
This commit is contained in:
parent
5db00601ce
commit
14302f9ac6
19
api/@ohos.telephony.call.d.ts
vendored
19
api/@ohos.telephony.call.d.ts
vendored
@ -2425,6 +2425,25 @@ declare namespace call {
|
|||||||
*/
|
*/
|
||||||
function isImsSwitchEnabled(slotId: number): Promise<boolean>;
|
function isImsSwitchEnabled(slotId: number): Promise<boolean>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Judge whether the Ims switch is enabled.
|
||||||
|
*
|
||||||
|
* @param { number } slotId - Indicates the card slot index number,
|
||||||
|
* ranging from 0 to the maximum card slot index number supported by the device.
|
||||||
|
* @returns { boolean } Returns {@code true} If the ims switch is on; returns {@code false} otherwise.
|
||||||
|
* @throws { BusinessError } 202 - Non-system applications use system APIs.
|
||||||
|
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified;
|
||||||
|
* 2. Incorrect parameters types;
|
||||||
|
* @throws { BusinessError } 8300001 - Invalid parameter value.
|
||||||
|
* @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service.
|
||||||
|
* @throws { BusinessError } 8300003 - System internal error.
|
||||||
|
* @throws { BusinessError } 8300999 - Unknown error code.
|
||||||
|
* @syscap SystemCapability.Telephony.CallManager
|
||||||
|
* @systemapi Hide this for inner system use.
|
||||||
|
* @since 12
|
||||||
|
*/
|
||||||
|
function isImsSwitchEnabledSync(slotId: number): boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Close unfinished ussd.
|
* Close unfinished ussd.
|
||||||
*
|
*
|
||||||
|
35
api/@ohos.telephony.data.d.ts
vendored
35
api/@ohos.telephony.data.d.ts
vendored
@ -187,6 +187,21 @@ declare namespace data {
|
|||||||
*/
|
*/
|
||||||
function isCellularDataEnabled(): Promise<boolean>;
|
function isCellularDataEnabled(): Promise<boolean>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check whether cellular data services are enabled.
|
||||||
|
*
|
||||||
|
* @permission ohos.permission.GET_NETWORK_INFO
|
||||||
|
* @returns { boolean } Returns {@code true} if cellular data services are enabled.
|
||||||
|
* Returns {@code false} otherwise.
|
||||||
|
* @throws { BusinessError } 201 - Permission denied.
|
||||||
|
* @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service.
|
||||||
|
* @throws { BusinessError } 8300003 - System internal error.
|
||||||
|
* @throws { BusinessError } 8300999 - Unknown error code.
|
||||||
|
* @syscap SystemCapability.Telephony.CellularData
|
||||||
|
* @since 12
|
||||||
|
*/
|
||||||
|
function isCellularDataEnabledSync(): boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable cellular data services.
|
* Enable cellular data services.
|
||||||
*
|
*
|
||||||
@ -298,6 +313,26 @@ declare namespace data {
|
|||||||
*/
|
*/
|
||||||
function isCellularDataRoamingEnabled(slotId: number): Promise<boolean>;
|
function isCellularDataRoamingEnabled(slotId: number): Promise<boolean>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check whether roaming is enabled for cellular data services.
|
||||||
|
*
|
||||||
|
* @permission ohos.permission.GET_NETWORK_INFO
|
||||||
|
* @param { number } slotId - Indicates the ID of a card slot.
|
||||||
|
* The value {@code 0} indicates card 1, and the value {@code 1} indicates card 2.
|
||||||
|
* @returns { boolean } Returns {@code true} if roaming is enabled for cellular data services.
|
||||||
|
* Returns {@code false} otherwise.
|
||||||
|
* @throws { BusinessError } 201 - Permission denied.
|
||||||
|
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified;
|
||||||
|
* 2. Incorrect parameters types;
|
||||||
|
* @throws { BusinessError } 8300001 - Invalid parameter value.
|
||||||
|
* @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service.
|
||||||
|
* @throws { BusinessError } 8300003 - System internal error.
|
||||||
|
* @throws { BusinessError } 8300999 - Unknown error code.
|
||||||
|
* @syscap SystemCapability.Telephony.CellularData
|
||||||
|
* @since 12
|
||||||
|
*/
|
||||||
|
function isCellularDataRoamingEnabledSync(slotId: number): boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable cellular data roaming.
|
* Enable cellular data roaming.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user