mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 22:24:20 +00:00
IssueNo:Add an interface for obtaining dsds mode
Description:Add an interface for obtaining dsds mode Sig:SIG_Telephony Feature or Bugfix: Feature Binary Source: No Signed-off-by: liuxiyao223 <liuxiyao223@huawei.com>
This commit is contained in:
parent
ebadb68524
commit
ca014435c3
96
api/@ohos.telephony.sim.d.ts
vendored
96
api/@ohos.telephony.sim.d.ts
vendored
@ -2030,6 +2030,56 @@ declare namespace sim {
|
||||
*/
|
||||
function getDefaultVoiceSimId(): Promise<number>;
|
||||
|
||||
/**
|
||||
* Obtains the value of dsds mode.
|
||||
*
|
||||
* @permission ohos.permission.GET_TELEPHONY_STATE
|
||||
* @param { AsyncCallback<DsdsMode> } callback - Indicates the callback for
|
||||
* getting one of the following dsds mode states:
|
||||
* <ul>
|
||||
* <li>{@code DsdsMode#DSDS_MODE_V2}
|
||||
* <li>{@code DsdsMode#DSDS_MODE_V3}
|
||||
* <li>{@code DsdsMode#DSDS_MODE_V5_TDM}
|
||||
* <li>{@code DsdsMode#DSDS_MODE_V5_DSDA}
|
||||
* </ul>
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Non-system applications use system APIs.
|
||||
* @throws { BusinessError } 401 - Parameter error.
|
||||
* @throws { BusinessError } 8300002 - Operation failed. Cannot connect to
|
||||
* service.
|
||||
* @throws { BusinessError } 8300003 - System internal error.
|
||||
* @throws { BusinessError } 8300999 - Unknown error code.
|
||||
* @syscap SystemCapability.Telephony.CoreService
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 11
|
||||
*/
|
||||
function getDsdsMode(callback: AsyncCallback<DsdsMode>): void;
|
||||
|
||||
/**
|
||||
* Obtains the value of dsds mode.
|
||||
*
|
||||
* @permission ohos.permission.GET_TELEPHONY_STATE
|
||||
* @returns { Promise<DsdsMode> } Returns one of the following dsds mode
|
||||
* states:
|
||||
* <ul>
|
||||
* <li>{@code DsdsMode#DSDS_MODE_V2}
|
||||
* <li>{@code DsdsMode#DSDS_MODE_V3}
|
||||
* <li>{@code DsdsMode#DSDS_MODE_V5_TDM}
|
||||
* <li>{@code DsdsMode#DSDS_MODE_V5_DSDA}
|
||||
* </ul>
|
||||
* @throws { BusinessError } 201 - Permission denied.
|
||||
* @throws { BusinessError } 202 - Non-system applications use system APIs.
|
||||
* @throws { BusinessError } 401 - Parameter error.
|
||||
* @throws { BusinessError } 8300002 - Operation failed. Cannot connect to
|
||||
* service.
|
||||
* @throws { BusinessError } 8300003 - System internal error.
|
||||
* @throws { BusinessError } 8300999 - Unknown error code.
|
||||
* @syscap SystemCapability.Telephony.CoreService
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 11
|
||||
*/
|
||||
function getDsdsMode(): Promise<DsdsMode>;
|
||||
|
||||
/**
|
||||
* Defines the carrier configuration.
|
||||
*
|
||||
@ -2809,6 +2859,52 @@ declare namespace sim {
|
||||
*/
|
||||
KEY_EMERGENCY_CALL_STRING_ARRAY = 'emergency_call_string_array',
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates the Dsds Mode.
|
||||
*
|
||||
* @enum { number }
|
||||
* @syscap SystemCapability.Telephony.CoreService
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 11
|
||||
*/
|
||||
export enum DsdsMode {
|
||||
/**
|
||||
* Indicates the DSDS 2.0 Mode.
|
||||
*
|
||||
* @syscap SystemCapability.Telephony.CoreService
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 11
|
||||
*/
|
||||
DSDS_MODE_V2 = 0,
|
||||
|
||||
/**
|
||||
* Indicates the DSDS 3.0 Mode.
|
||||
*
|
||||
* @syscap SystemCapability.Telephony.CoreService
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 11
|
||||
*/
|
||||
DSDS_MODE_V3 = 1,
|
||||
|
||||
/**
|
||||
* Indicates the DSDS 5.0 TDM Mode.
|
||||
*
|
||||
* @syscap SystemCapability.Telephony.CoreService
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 11
|
||||
*/
|
||||
DSDS_MODE_V5_TDM = 2,
|
||||
|
||||
/**
|
||||
* Indicates the DSDS 5.0 DSDA Mode.
|
||||
*
|
||||
* @syscap SystemCapability.Telephony.CoreService
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @since 11
|
||||
*/
|
||||
DSDS_MODE_V5_DSDA = 3,
|
||||
}
|
||||
}
|
||||
|
||||
export default sim;
|
||||
|
@ -199,6 +199,8 @@ dpad
|
||||
drains
|
||||
dragbar
|
||||
drawbuffer
|
||||
dsda
|
||||
dsds
|
||||
dsf
|
||||
dtmf
|
||||
ducked
|
||||
@ -722,6 +724,7 @@ taskmanager
|
||||
taskpool
|
||||
tbla
|
||||
tcpnodelay
|
||||
tdm
|
||||
tdscdma
|
||||
telecom
|
||||
tethering
|
||||
|
Loading…
Reference in New Issue
Block a user