diff --git a/api/@ohos.telephony.data.d.ts b/api/@ohos.telephony.data.d.ts index 259f288bc1ed582ee7fb020e626cb7560c24efdc..a12f062357609a13f346ef81465448347ea4521f 100644 --- a/api/@ohos.telephony.data.d.ts +++ b/api/@ohos.telephony.data.d.ts @@ -20,12 +20,17 @@ import type { AsyncCallback } from './@ohos.base'; +/*** if arkts 1.1 */ +import { int } from './@ohos.base'; +/*** endif */ + /** * Provides methods related to cellular data services. * * @namespace data * @syscap SystemCapability.Telephony.CellularData - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ declare namespace data { /** @@ -49,11 +54,12 @@ declare namespace data { /** * Get the default cellular data card. * - * @returns { number } Returns default cellular data slot id. + * @returns { int } Returns default cellular data slot id. * @syscap SystemCapability.Telephony.CellularData - * @since 9 + * @since arkts {'1.1':'9','1.2':'20'} + * @arkts 1.1&1.2 */ - function getDefaultCellularDataSlotIdSync(): number; + function getDefaultCellularDataSlotIdSync(): int; /** * Switch cellular data services to another card, without changing the default settings. @@ -134,7 +140,8 @@ declare namespace data { *
  • {@code DataConnectState#DATA_STATE_SUSPENDED} * * @syscap SystemCapability.Telephony.CellularData - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ function getCellularDataState(callback: AsyncCallback): void; @@ -150,7 +157,8 @@ declare namespace data { *
  • {@code DataConnectState#DATA_STATE_SUSPENDED} * * @syscap SystemCapability.Telephony.CellularData - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ function getCellularDataState(): Promise; @@ -168,7 +176,8 @@ declare namespace data { * @throws { BusinessError } 8300003 - System internal error. * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CellularData - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ function isCellularDataEnabled(callback: AsyncCallback): void; @@ -183,7 +192,8 @@ declare namespace data { * @throws { BusinessError } 8300003 - System internal error. * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CellularData - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ function isCellularDataEnabled(): Promise; @@ -217,7 +227,8 @@ declare namespace data { * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CellularData * @systemapi Hide this for inner system use. - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ function enableCellularData(callback: AsyncCallback): void; @@ -233,7 +244,8 @@ declare namespace data { * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CellularData * @systemapi Hide this for inner system use. - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ function enableCellularData(): Promise; @@ -252,7 +264,8 @@ declare namespace data { * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CellularData * @systemapi Hide this for inner system use. - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ function disableCellularData(callback: AsyncCallback): void; @@ -268,7 +281,8 @@ declare namespace data { * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CellularData * @systemapi Hide this for inner system use. - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ function disableCellularData(): Promise; @@ -540,14 +554,16 @@ declare namespace data { * * @enum { number } * @syscap SystemCapability.Telephony.CellularData - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ export enum DataFlowType { /** * Indicates that there is no uplink or downlink data. * * @syscap SystemCapability.Telephony.CellularData - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ DATA_FLOW_TYPE_NONE = 0, @@ -555,7 +571,8 @@ declare namespace data { * Indicates that there is only downlink data. * * @syscap SystemCapability.Telephony.CellularData - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ DATA_FLOW_TYPE_DOWN = 1, @@ -563,7 +580,8 @@ declare namespace data { * Indicates that there is only uplink data. * * @syscap SystemCapability.Telephony.CellularData - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ DATA_FLOW_TYPE_UP = 2, @@ -571,7 +589,8 @@ declare namespace data { * Indicates that there is uplink and downlink data. * * @syscap SystemCapability.Telephony.CellularData - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ DATA_FLOW_TYPE_UP_DOWN = 3, @@ -579,7 +598,8 @@ declare namespace data { * Indicates that there is no uplink or downlink data, and the bottom-layer link is in the dormant state. * * @syscap SystemCapability.Telephony.CellularData - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ DATA_FLOW_TYPE_DORMANT = 4 } @@ -589,14 +609,16 @@ declare namespace data { * * @enum { number } * @syscap SystemCapability.Telephony.CellularData - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ export enum DataConnectState { /** * Indicates that a cellular data link is unknown. * * @syscap SystemCapability.Telephony.CellularData - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ DATA_STATE_UNKNOWN = -1, @@ -604,7 +626,8 @@ declare namespace data { * Indicates that a cellular data link is disconnected. * * @syscap SystemCapability.Telephony.CellularData - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ DATA_STATE_DISCONNECTED = 0, @@ -612,7 +635,8 @@ declare namespace data { * Indicates that a cellular data link is being connected. * * @syscap SystemCapability.Telephony.CellularData - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ DATA_STATE_CONNECTING = 1, @@ -620,7 +644,8 @@ declare namespace data { * Indicates that a cellular data link is connected. * * @syscap SystemCapability.Telephony.CellularData - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ DATA_STATE_CONNECTED = 2, @@ -628,7 +653,8 @@ declare namespace data { * Indicates that a cellular data link is suspended. * * @syscap SystemCapability.Telephony.CellularData - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ DATA_STATE_SUSPENDED = 3 } diff --git a/api/@ohos.telephony.esim.d.ts b/api/@ohos.telephony.esim.d.ts index 26ac5e8a5296779a31b53f84cf2855942d86722e..9e015401d0954829baff84ea83c4ce918958ca7c 100644 --- a/api/@ohos.telephony.esim.d.ts +++ b/api/@ohos.telephony.esim.d.ts @@ -20,13 +20,18 @@ import type { AsyncCallback } from './@ohos.base'; +/*** if arkts 1.1 */ +import { int } from './@ohos.base'; +/*** endif */ + /** * This indicates that the eSIM card performs the profile management operation synchronously. * Includes methods defined by GSMA Spec (SGP.22) and customized methods. * * @namespace eSIM * @syscap SystemCapability.Telephony.CoreService.Esim - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ declare namespace eSIM { /** @@ -300,7 +305,7 @@ declare namespace eSIM { * Erase all specific profiles and reset the eUICC. * * @permission ohos.permission.SET_TELEPHONY_ESIM_STATE - * @param { number } slotId - Indicates the card slot index number. + * @param { int } slotId - Indicates the card slot index number. * @param { ResetOption } options - Options for resetting eUICC memory. * @returns { Promise } Returns the result of the reset operation. * @throws { BusinessError } 201 - Permission denied. @@ -312,9 +317,10 @@ declare namespace eSIM { * @throws { BusinessError } 3120002 - System internal error. * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ - function resetMemory(slotId: number, options?:ResetOption): Promise; + function resetMemory(slotId: int, options?:ResetOption): Promise; /** * Ensure that profiles will be retained on the next factory reset. @@ -868,7 +874,8 @@ declare namespace eSIM { * @enum { number } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ export enum ResetOption { /** @@ -876,7 +883,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ DELETE_OPERATIONAL_PROFILES = 1, @@ -885,7 +893,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ DELETE_FIELD_LOADED_TEST_PROFILES = 1 << 1, @@ -894,7 +903,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESET_DEFAULT_SMDP_ADDRESS = 1 << 2, } @@ -960,7 +970,8 @@ declare namespace eSIM { * @enum { number } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ export enum ResultCode { /** @@ -968,7 +979,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_SOLVABLE_ERRORS = -2, @@ -977,7 +989,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_MUST_DISABLE_PROFILE = -1, @@ -986,7 +999,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_OK = 0, @@ -995,7 +1009,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_GET_EID_FAILED = 201, @@ -1004,7 +1019,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_ACTIVATION_CODE_CHANGED = 203, @@ -1013,7 +1029,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_ACTIVATION_CODE_INVALID = 204, @@ -1022,7 +1039,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_SMDP_ADDRESS_INVALID = 205, @@ -1031,7 +1049,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_EUICC_INFO_INVALID = 206, @@ -1040,7 +1059,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_TLS_HANDSHAKE_FAILED = 207, @@ -1049,7 +1069,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_CERTIFICATE_IO_ERROR = 208, @@ -1058,7 +1079,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_CERTIFICATE_RESPONSE_TIMEOUT = 209, @@ -1067,7 +1089,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_AUTHENTICATION_FAILED = 210, @@ -1076,7 +1099,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_RESPONSE_HTTP_FAILED = 211, @@ -1085,7 +1109,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_CONFIRMATION_CODE_INCORRECT = 212, @@ -1094,7 +1119,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_EXCEEDED_CONFIRMATION_CODE_TRY_LIMIT = 213, @@ -1103,7 +1129,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_NO_PROFILE_ON_SERVER = 214, @@ -1112,7 +1139,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_TRANSACTION_ID_INVALID = 215, @@ -1121,7 +1149,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_SERVER_ADDRESS_INVALID = 216, @@ -1130,7 +1159,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_GET_BOUND_PROFILE_PACKAGE_FAILED = 217, @@ -1139,7 +1169,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_USER_CANCEL_DOWNLOAD = 218, @@ -1148,7 +1179,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_SERVER_UNAVAILABLE = 220, @@ -1157,7 +1189,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_PROFILE_NON_DELETE = 223, @@ -1166,7 +1199,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_SMDP_ADDRESS_INCORRECT = 226, @@ -1175,7 +1209,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_ANALYZE_AUTHENTICATION_SERVER_RESPONSE_FAILED = 228, @@ -1184,7 +1219,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_ANALYZE_AUTHENTICATION_CLIENT_RESPONSE_FAILED = 229, @@ -1193,7 +1229,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_ANALYZE_AUTHENTICATION_CLIENT_MATCHING_ID_REFUSED = 231, @@ -1202,7 +1239,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_PROFILE_TYPE_ERROR_AUTHENTICATION_STOPPED = 233, @@ -1211,7 +1249,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_CARRIER_SERVER_REFUSED_ERRORS = 249, @@ -1220,7 +1259,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_CERTIFICATE_INVALID = 251, @@ -1229,7 +1269,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_OUT_OF_MEMORY = 263, @@ -1238,7 +1279,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_PPR_FORBIDDEN = 268, @@ -1247,7 +1289,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_NOTHING_TO_DELETE = 270, @@ -1256,7 +1299,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_PPR_NOT_MATCH = 276, @@ -1265,7 +1309,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_CAT_BUSY = 283, @@ -1274,7 +1319,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_PROFILE_EID_INVALID = 284, @@ -1283,7 +1329,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_DOWNLOAD_TIMEOUT = 287, @@ -1292,7 +1339,8 @@ declare namespace eSIM { * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 16 + * @since arkts {'1.1':'16','1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_SGP_22_OTHER = 400, } diff --git a/api/@ohos.telephony.sim.d.ts b/api/@ohos.telephony.sim.d.ts index 37f1d31d087a98d45d98c21f101410ee68f52df0..dc6cff528d1eff440d306fddfb5fd815f7ec3020 100644 --- a/api/@ohos.telephony.sim.d.ts +++ b/api/@ohos.telephony.sim.d.ts @@ -20,73 +20,83 @@ import type { AsyncCallback } from './@ohos.base'; +/*** if arkts 1.1 */ +import { int } from './@ohos.base'; +/*** endif */ + /** * Provides applications with APIs for obtaining SIM card status, card file information, and card specifications. * SIM cards include SIM, USIM, and CSIM cards. * * @namespace sim * @syscap SystemCapability.Telephony.CoreService - * @since 6 + * @since arkts {'1.1':'6','1.2':'20'} + * @arkts 1.1&1.2 */ declare namespace sim { /** * Checks whether the SIM card in a specified slot is activated. * - * @param { number } slotId - Indicates the card slot index number, + * @param { int } slotId - Indicates the card slot index number, * ranging from {@code 0} to the maximum card slot index number supported by the device. * @param { AsyncCallback } callback - Indicates the callback for checking * whether the SIM card in a specified slot is activated. * Returns {@code true} if the SIM card is activated; returns {@code false} otherwise. * @syscap SystemCapability.Telephony.CoreService - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ - function isSimActive(slotId: number, callback: AsyncCallback): void; + function isSimActive(slotId: int, callback: AsyncCallback): void; /** * Checks whether the SIM card in a specified slot is activated. * - * @param { number } slotId - Indicates the card slot index number, + * @param { int } slotId - Indicates the card slot index number, * ranging from {@code 0} to the maximum card slot index number supported by the device. * @returns { Promise } Returns {@code true} if the SIM card is activated; returns {@code false} otherwise. * @syscap SystemCapability.Telephony.CoreService - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ - function isSimActive(slotId: number): Promise; + function isSimActive(slotId: int): Promise; /** * Checks whether the SIM card in a specified slot is activated. * - * @param { number } slotId - Indicates the card slot index number, + * @param { int } slotId - Indicates the card slot index number, * ranging from 0 to the maximum card slots supported by the device. * @returns { boolean } Returns {@code true} if the SIM card is activated; returns {@code false} otherwise. * @syscap SystemCapability.Telephony.CoreService - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function isSimActiveSync(slotId: number): boolean; + function isSimActiveSync(slotId: int): boolean; /** * Obtains the default card slot for the voice service. * - * @param { AsyncCallback } callback - Indicates the callback for getting + * @param { AsyncCallback } callback - Indicates the callback for getting * the default card slot for the voice service. * Returns {@code 0} if card 1 is used as the default card slot for the voice service; * returns {@code 1} if card 2 is used as the default card slot for the voice service; * returns {@code -1} if no card is available for the voice service. * @syscap SystemCapability.Telephony.CoreService - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ - function getDefaultVoiceSlotId(callback: AsyncCallback): void; + function getDefaultVoiceSlotId(callback: AsyncCallback): void; /** * Obtains the default card slot for the voice service. * - * @returns { Promise } Returns {@code 0} if card 1 is used as the default card slot for the voice service; + * @returns { Promise } Returns {@code 0} if card 1 is used as the default card slot for the voice service; * returns {@code 1} if card 2 is used as the default card slot for the voice service; * returns {@code -1} if no card is available for the voice service. * @syscap SystemCapability.Telephony.CoreService - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ - function getDefaultVoiceSlotId(): Promise; + function getDefaultVoiceSlotId(): Promise; /** * Checks whether your application (the caller) has been granted the operator permissions. @@ -129,7 +139,7 @@ declare namespace sim { /** * Obtains the ISO country code of the SIM card in a specified slot. * - * @param { number } slotId - Indicates the card slot index number, + * @param { int } slotId - Indicates the card slot index number, * ranging from 0 to the maximum card slot index number supported by the device. * @param { AsyncCallback } callback - Indicates the callback for getting the country code defined * in ISO 3166-2; returns an empty string if no SIM card is inserted. @@ -141,14 +151,15 @@ declare namespace sim { * @throws { BusinessError } 8300004 - No SIM card found. * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService - * @since 6 + * @since arkts {'1.1':'6','1.2':'20'} + * @arkts 1.1&1.2 */ - function getISOCountryCodeForSim(slotId: number, callback: AsyncCallback): void; + function getISOCountryCodeForSim(slotId: int, callback: AsyncCallback): void; /** * Obtains the ISO country code of the SIM card in a specified slot. * - * @param { number } slotId - Indicates the card slot index number, + * @param { int } slotId - Indicates the card slot index number, * ranging from 0 to the maximum card slot index number supported by the device. * @returns { Promise } Returns the country code defined in ISO 3166-2; * returns an empty string if no SIM card is inserted. @@ -160,9 +171,10 @@ declare namespace sim { * @throws { BusinessError } 8300004 - No SIM card found. * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService - * @since 6 + * @since arkts {'1.1':'6','1.2':'20'} + * @arkts 1.1&1.2 */ - function getISOCountryCodeForSim(slotId: number): Promise; + function getISOCountryCodeForSim(slotId: int): Promise; /** * Obtains the ISO country code of the SIM card in a specified slot. @@ -295,7 +307,7 @@ declare namespace sim { /** * Obtains the state of the SIM card in a specified slot. * - * @param { number } slotId - Indicates the card slot index number, + * @param { int } slotId - Indicates the card slot index number, * ranging from {@code 0} to the maximum card slot index number supported by the device. * @param { AsyncCallback } callback - Indicates the callback for getting one of the following SIM card states: *
      @@ -313,14 +325,15 @@ declare namespace sim { * @throws { BusinessError } 8300003 - System internal error. * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService - * @since 6 + * @since arkts {'1.1':'6','1.2':'20'} + * @arkts 1.1&1.2 */ - function getSimState(slotId: number, callback: AsyncCallback): void; + function getSimState(slotId: int, callback: AsyncCallback): void; /** * Obtains the state of the SIM card in a specified slot. * - * @param { number } slotId - Indicates the card slot index number, + * @param { int } slotId - Indicates the card slot index number, * ranging from {@code 0} to the maximum card slot index number supported by the device. * @returns { Promise } Returns one of the following SIM card states: *
        @@ -338,14 +351,15 @@ declare namespace sim { * @throws { BusinessError } 8300003 - System internal error. * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService - * @since 6 + * @since arkts {'1.1':'6','1.2':'20'} + * @arkts 1.1&1.2 */ - function getSimState(slotId: number): Promise; + function getSimState(slotId: int): Promise; /** * Obtains the state of the SIM card in a specified slot. * - * @param { number } slotId - Indicates the card slot index number, + * @param { int } slotId - Indicates the card slot index number, * ranging from 0 to the maximum card slots supported by the device. * @returns { SimState } Returns one of the following SIM card states: *
          @@ -357,9 +371,10 @@ declare namespace sim { *
        • {@code SimState#SIM_STATE_LOADED} *
        * @syscap SystemCapability.Telephony.CoreService - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function getSimStateSync(slotId: number): SimState; + function getSimStateSync(slotId: int): SimState; /** * Obtains the type of the SIM card installed in a specified slot. @@ -702,11 +717,12 @@ declare namespace sim { * Obtains the maximum number of SIM cards that can be used simultaneously on the device, * that is, the maximum number of SIM card slots. * - * @returns { number } Returns the maximum number of SIM card slots. + * @returns { int } Returns the maximum number of SIM card slots. * @syscap SystemCapability.Telephony.CoreService - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ - function getMaxSimCount(): number; + function getMaxSimCount(): int; /** * Get the international mobile subscriber ID. @@ -777,7 +793,7 @@ declare namespace sim { /** * Checks whether a SIM card is inserted in a specified slot. * - * @param { number } slotId - Indicates the card slot index number, + * @param { int } slotId - Indicates the card slot index number, * ranging from 0 to the maximum card slot index number supported by the device. * @param { AsyncCallback } callback - Indicates the callback for hasSimCard. * Returns {@code true} if a SIM card is inserted; return {@code false} otherwise. @@ -788,14 +804,15 @@ declare namespace sim { * @throws { BusinessError } 8300003 - System internal error. * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ - function hasSimCard(slotId: number, callback: AsyncCallback): void; + function hasSimCard(slotId: int, callback: AsyncCallback): void; /** * Checks whether a SIM card is inserted in a specified slot. * - * @param { number } slotId - Indicates the card slot index number, + * @param { int } slotId - Indicates the card slot index number, * ranging from 0 to the maximum card slot index number supported by the device. * @returns { Promise } Returns {@code true} if a SIM card is inserted; return {@code false} otherwise. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. @@ -805,9 +822,10 @@ declare namespace sim { * @throws { BusinessError } 8300003 - System internal error. * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ - function hasSimCard(slotId: number): Promise; + function hasSimCard(slotId: int): Promise; /** * Checks whether a SIM card is inserted in a specified slot. @@ -824,7 +842,7 @@ declare namespace sim { * Get account information of SIM card. * * @permission ohos.permission.GET_TELEPHONY_STATE - * @param { number } slotId - Indicates the card slot index number, + * @param { int } slotId - Indicates the card slot index number, * ranging from 0 to the maximum card slot index number supported by the device. * @param { AsyncCallback } callback - Indicates the callback for * getting a {@code IccAccountInfo} object. The ICCID and phone number will be null @@ -838,15 +856,16 @@ declare namespace sim { * @throws { BusinessError } 8300999 - Unknown error. * @throws { BusinessError } 8301002 - The SIM card failed to read or update data. * @syscap SystemCapability.Telephony.CoreService - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function getSimAccountInfo(slotId: number, callback: AsyncCallback): void; + function getSimAccountInfo(slotId: int, callback: AsyncCallback): void; /** * Get account information of SIM card. * * @permission ohos.permission.GET_TELEPHONY_STATE - * @param { number } slotId - Indicates the card slot index number, + * @param { int } slotId - Indicates the card slot index number, * ranging from 0 to the maximum card slot index number supported by the device. * @returns { Promise } Returns a {@code IccAccountInfo} object. The ICCID and phone number * will be null if has no ohos.permission.GET_TELEPHONY_STATE. @@ -859,9 +878,10 @@ declare namespace sim { * @throws { BusinessError } 8300999 - Unknown error. * @throws { BusinessError } 8301002 - The SIM card failed to read or update data. * @syscap SystemCapability.Telephony.CoreService - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function getSimAccountInfo(slotId: number): Promise; + function getSimAccountInfo(slotId: int): Promise; /** * Get the list of active SIM card account information. @@ -878,7 +898,8 @@ declare namespace sim { * @throws { BusinessError } 8300004 - No SIM card found. * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function getActiveSimAccountInfoList(callback: AsyncCallback>): void; @@ -893,7 +914,8 @@ declare namespace sim { * @throws { BusinessError } 8300004 - No SIM card found. * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function getActiveSimAccountInfoList(): Promise>; @@ -1215,7 +1237,7 @@ declare namespace sim { * Obtains the operatorconfigs of the SIM card in a specified slot. * * @permission ohos.permission.GET_TELEPHONY_STATE - * @param { number } slotId - Indicates the card slot index number, + * @param { int } slotId - Indicates the card slot index number, * ranging from 0 to the maximum card slot index number supported by the device. * @param { AsyncCallback> } callback - Indicates the callback for * getting the operatorconfigs in a specified slot; @@ -1230,15 +1252,16 @@ declare namespace sim { * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 8 + * @since arkts {'1.1':'8','1.2':'20'} + * @arkts 1.1&1.2 */ - function getOperatorConfigs(slotId: number, callback: AsyncCallback>): void; + function getOperatorConfigs(slotId: int, callback: AsyncCallback>): void; /** * Obtains the operatorconfigs of the SIM card in a specified slot. * * @permission ohos.permission.GET_TELEPHONY_STATE - * @param { number } slotId - Indicates the card slot index number, + * @param { int } slotId - Indicates the card slot index number, * ranging from 0 to the maximum card slot index number supported by the device. * @returns { Promise> } Returns the operatorconfigs in a specified slot; * returns empty OperatorConfig if no SIM card is inserted. @@ -1252,15 +1275,16 @@ declare namespace sim { * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 8 + * @since arkts {'1.1':'8','1.2':'20'} + * @arkts 1.1&1.2 */ - function getOperatorConfigs(slotId: number): Promise>; + function getOperatorConfigs(slotId: int): Promise>; /** * Unlock the SIM card password of the specified card slot. * * @permission ohos.permission.SET_TELEPHONY_STATE - * @param { number } slotId - Indicates the card slot index number, + * @param { int } slotId - Indicates the card slot index number, * ranging from 0 to the maximum card slot index number supported by the device. * @param { string } pin - Indicates the password of the SIM card. * @param { AsyncCallback } callback - Indicates the callback for getting @@ -1277,15 +1301,16 @@ declare namespace sim { * @throws { BusinessError } 8301002 - The SIM card failed to read or update data. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ - function unlockPin(slotId: number, pin: string, callback: AsyncCallback): void; + function unlockPin(slotId: int, pin: string, callback: AsyncCallback): void; /** * Unlock the SIM card password of the specified card slot. * * @permission ohos.permission.SET_TELEPHONY_STATE - * @param { number } slotId - Indicates the card slot index number, + * @param { int } slotId - Indicates the card slot index number, * ranging from 0 to the maximum card slot index number supported by the device. * @param { string } pin - Indicates the password of the SIM card. * @returns { Promise } Returns the response to obtain @@ -1302,15 +1327,16 @@ declare namespace sim { * @throws { BusinessError } 8301002 - The SIM card failed to read or update data. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ - function unlockPin(slotId: number, pin: string): Promise; + function unlockPin(slotId: int, pin: string): Promise; /** * Unlock the SIM card password in the specified card slot. * * @permission ohos.permission.SET_TELEPHONY_STATE - * @param { number } slotId - Indicates the card slot index number, + * @param { int } slotId - Indicates the card slot index number, * ranging from 0 to the maximum card slot index number supported by the device. * @param { string } newPin - Indicates to reset the SIM card password. * @param { string } puk - Indicates the unlock password of the SIM card password. @@ -1328,15 +1354,16 @@ declare namespace sim { * @throws { BusinessError } 8301002 - The SIM card failed to read or update data. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ - function unlockPuk(slotId: number, newPin: string, puk: string, callback: AsyncCallback): void; + function unlockPuk(slotId: int, newPin: string, puk: string, callback: AsyncCallback): void; /** * Unlock the SIM card password in the specified card slot. * * @permission ohos.permission.SET_TELEPHONY_STATE - * @param { number } slotId - Indicates the card slot index number, + * @param { int } slotId - Indicates the card slot index number, * ranging from 0 to the maximum card slot index number supported by the device. * @param { string } newPin - Indicates to reset the SIM card password. * @param { string } puk - Indicates the unlock password of the SIM card password. @@ -1354,9 +1381,10 @@ declare namespace sim { * @throws { BusinessError } 8301002 - The SIM card failed to read or update data. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ - function unlockPuk(slotId: number, newPin: string, puk: string): Promise; + function unlockPuk(slotId: int, newPin: string, puk: string): Promise; /** * Change Pin Password. @@ -1817,7 +1845,7 @@ declare namespace sim { * Get the lock status of the SIM card in the specified slot. * * @permission ohos.permission.GET_TELEPHONY_STATE - * @param { number } slotId - Indicates the card slot index number, + * @param { int } slotId - Indicates the card slot index number, * ranging from 0 to the maximum card slot index number supported by the device. * @param { LockType } lockType - Indicates the lock type. * @param { AsyncCallback } callback - Indicates the callback for getting the sim card lock status. @@ -1833,15 +1861,16 @@ declare namespace sim { * @throws { BusinessError } 8301002 - The SIM card failed to read or update data. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 8 + * @since arkts {'1.1':'8','1.2':'20'} + * @arkts 1.1&1.2 */ - function getLockState(slotId: number, lockType: LockType, callback: AsyncCallback): void; + function getLockState(slotId: int, lockType: LockType, callback: AsyncCallback): void; /** * Get the lock status of the SIM card in the specified slot. * * @permission ohos.permission.GET_TELEPHONY_STATE - * @param { number } slotId - Indicates the card slot index number, + * @param { int } slotId - Indicates the card slot index number, * ranging from 0 to the maximum card slot index number supported by the device. * @param { LockType } lockType - Indicates the lock type. * @returns { Promise } Returns the sim card lock status. @@ -1857,9 +1886,10 @@ declare namespace sim { * @throws { BusinessError } 8301002 - The SIM card failed to read or update data. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 8 + * @since arkts {'1.1':'8','1.2':'20'} + * @arkts 1.1&1.2 */ - function getLockState(slotId: number, lockType: LockType): Promise; + function getLockState(slotId: int, lockType: LockType): Promise; /** * Send envelope command to SIM card. @@ -2223,7 +2253,8 @@ declare namespace sim { * @interface OperatorConfig * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 8 + * @since arkts {'1.1':'8','1.2':'20'} + * @arkts 1.1&1.2 */ export interface OperatorConfig { /** @@ -2232,7 +2263,8 @@ declare namespace sim { * @type { string } * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 8 + * @since arkts {'1.1':'8','1.2':'20'} + * @arkts 1.1&1.2 */ field: string; @@ -2242,7 +2274,8 @@ declare namespace sim { * @type { string } * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 8 + * @since arkts {'1.1':'8','1.2':'20'} + * @arkts 1.1&1.2 */ value: string; } @@ -2252,34 +2285,38 @@ declare namespace sim { * * @interface IccAccountInfo * @syscap SystemCapability.Telephony.CoreService - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ export interface IccAccountInfo { /** * Indicates the sim Id for card. * - * @type { number } + * @type { int } * @syscap SystemCapability.Telephony.CoreService - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - simId: number; + simId: int; /** * Indicates the card slot index number, * ranging from 0 to the maximum card slot index number supported by the device. * - * @type { number } + * @type { int } * @syscap SystemCapability.Telephony.CoreService - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - slotIndex: number; + slotIndex: int; /** * Indicates the mark card is eSim or not. * * @type { boolean } * @syscap SystemCapability.Telephony.CoreService - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ isEsim: boolean; @@ -2288,7 +2325,8 @@ declare namespace sim { * * @type { boolean } * @syscap SystemCapability.Telephony.CoreService - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ isActive: boolean; @@ -2297,7 +2335,8 @@ declare namespace sim { * * @type { string } * @syscap SystemCapability.Telephony.CoreService - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ iccId: string; @@ -2306,7 +2345,8 @@ declare namespace sim { * * @type { string } * @syscap SystemCapability.Telephony.CoreService - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ showName: string; @@ -2315,7 +2355,8 @@ declare namespace sim { * * @type { string } * @syscap SystemCapability.Telephony.CoreService - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ showNumber: string; } @@ -2326,28 +2367,31 @@ declare namespace sim { * @interface LockStatusResponse * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ export interface LockStatusResponse { /** * Indicates the current operation result. * - * @type { number } + * @type { int } * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ - result: number; + result: int; /** * Indicates the operations remaining. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 7 + * @since arkts {'1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ - remain?: number; + remain?: int; } /** @@ -2476,7 +2520,8 @@ declare namespace sim { * @enum { number } * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 8 + * @since arkts {'1.1':'8','1.2':'20'} + * @arkts 1.1&1.2 */ export enum LockType { /** @@ -2484,7 +2529,8 @@ declare namespace sim { * * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 8 + * @since arkts {'1.1':'8','1.2':'20'} + * @arkts 1.1&1.2 */ PIN_LOCK = 1, @@ -2493,7 +2539,8 @@ declare namespace sim { * * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 8 + * @since arkts {'1.1':'8','1.2':'20'} + * @arkts 1.1&1.2 */ FDN_LOCK = 2, } @@ -2591,7 +2638,8 @@ declare namespace sim { * * @enum { number } * @syscap SystemCapability.Telephony.CoreService - * @since 6 + * @since arkts {'1.1':'6','1.2':'20'} + * @arkts 1.1&1.2 */ export enum SimState { /** @@ -2599,7 +2647,8 @@ declare namespace sim { * obtained. * * @syscap SystemCapability.Telephony.CoreService - * @since 6 + * @since arkts {'1.1':'6','1.2':'20'} + * @arkts 1.1&1.2 */ SIM_STATE_UNKNOWN, @@ -2608,7 +2657,8 @@ declare namespace sim { * no SIM card is inserted into the card slot. * * @syscap SystemCapability.Telephony.CoreService - * @since 6 + * @since arkts {'1.1':'6','1.2':'20'} + * @arkts 1.1&1.2 */ SIM_STATE_NOT_PRESENT, @@ -2618,7 +2668,8 @@ declare namespace sim { * unblocking key (PUK) or network. * * @syscap SystemCapability.Telephony.CoreService - * @since 6 + * @since arkts {'1.1':'6','1.2':'20'} + * @arkts 1.1&1.2 */ SIM_STATE_LOCKED, @@ -2627,7 +2678,8 @@ declare namespace sim { * the SIM card is in position but cannot work properly. * * @syscap SystemCapability.Telephony.CoreService - * @since 6 + * @since arkts {'1.1':'6','1.2':'20'} + * @arkts 1.1&1.2 */ SIM_STATE_NOT_READY, @@ -2636,7 +2688,8 @@ declare namespace sim { * SIM card is in position and is working properly. * * @syscap SystemCapability.Telephony.CoreService - * @since 6 + * @since arkts {'1.1':'6','1.2':'20'} + * @arkts 1.1&1.2 */ SIM_STATE_READY, @@ -2645,7 +2698,8 @@ declare namespace sim { * SIM card is in position and is working properly. * * @syscap SystemCapability.Telephony.CoreService - * @since 6 + * @since arkts {'1.1':'6','1.2':'20'} + * @arkts 1.1&1.2 */ SIM_STATE_LOADED } @@ -2656,7 +2710,8 @@ declare namespace sim { * @enum { number } * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 8 + * @since arkts {'1.1':'8','1.2':'20'} + * @arkts 1.1&1.2 */ export enum LockState { /** @@ -2664,7 +2719,8 @@ declare namespace sim { * * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 8 + * @since arkts {'1.1':'8','1.2':'20'} + * @arkts 1.1&1.2 */ LOCK_OFF = 0, @@ -2673,7 +2729,8 @@ declare namespace sim { * * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 8 + * @since arkts {'1.1':'8','1.2':'20'} + * @arkts 1.1&1.2 */ LOCK_ON = 1, }