From 14adb5718f6582300302003a9d7e471969dbe814 Mon Sep 17 00:00:00 2001 From: fanyl88 Date: Mon, 4 Aug 2025 16:27:46 +0800 Subject: [PATCH] number to int Signed-off-by: fanyl88 --- api/@ohos.telephony.esim.d.ts | 315 ++++++++----- api/@ohos.telephony.radio.d.ts | 791 ++++++++++++++++++-------------- api/@ohos.telephony.sim.d.ts | 814 ++++++++++++++++++--------------- 3 files changed, 1102 insertions(+), 818 deletions(-) diff --git a/api/@ohos.telephony.esim.d.ts b/api/@ohos.telephony.esim.d.ts index 6e30c906c9..1429d16947 100644 --- a/api/@ohos.telephony.esim.d.ts +++ b/api/@ohos.telephony.esim.d.ts @@ -32,15 +32,19 @@ declare namespace eSIM { /** * Whether embedded subscriptions are currently supported. * - * @param { number } slotId - Indicates the card slot index number. + * @param { int } slotId - Indicates the card slot index number. * @returns { boolean } Returns {@code true} if the eSIM capability is supported; returns {@code false} otherwise. - * @throws { BusinessError } 401 - Invalid parameter value. + * @throws { BusinessError } 401 - Parameter error. Possible causes: + * 1. Mandatory parameters are left unspecified. + * 2. Incorrect parameter types. + * 3. Parameter verification failed. * @throws { BusinessError } 3120001 - Service connection failed. * @throws { BusinessError } 3120002 - System internal error. * @syscap SystemCapability.Telephony.CoreService.Esim - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - function isSupported(slotId: number): boolean; + function isSupported(slotId: int): boolean; /** * Starts a page through an ability, on which users can touch the button to download a profile. @@ -50,12 +54,16 @@ declare namespace eSIM { * @returns { Promise } Returns {@code true} if the profile is added successfully; * returns {@code false} otherwise. * @throws { BusinessError } 201 - Permission denied. - * @throws { BusinessError } 401 - Invalid parameter value. + * @throws { BusinessError } 401 - Parameter error. Possible causes: + * 1. Mandatory parameters are left unspecified. + * 2. Incorrect parameter types. + * 3. Parameter verification failed. * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 3120001 - Service connection failed. * @throws { BusinessError } 3120002 - System internal error. * @syscap SystemCapability.Telephony.CoreService.Esim - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ function addProfile(profile: DownloadableProfile): Promise; @@ -63,299 +71,359 @@ declare namespace eSIM { * Returns the EID identifying for the eUICC hardware. * * @permission ohos.permission.GET_TELEPHONY_ESIM_STATE - * @param { number } slotId - Indicates the card slot index number. + * @param { int } slotId - Indicates the card slot index number. * @returns { Promise } Returns the EID. When eUICC is not ready, the return value may be null. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Non-system applications use system APIs. - * @throws { BusinessError } 401 - Invalid parameter value. + * @throws { BusinessError } 401 - Parameter error. Possible causes: + * 1. Mandatory parameters are left unspecified. + * 2. Incorrect parameter types. + * 3. Parameter verification failed. * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 3120001 - Service connection failed. * @throws { BusinessError } 3120002 - System internal error. * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - function getEid(slotId: number): Promise; + function getEid(slotId: int): Promise; /** * Returns the current status of eUICC OS upgrade. * * @permission ohos.permission.GET_TELEPHONY_ESIM_STATE - * @param { number } slotId - Indicates the card slot index number. + * @param { int } slotId - Indicates the card slot index number. * @returns { Promise } Return the status of eUICC OS upgrade. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Non-system applications use system APIs. - * @throws { BusinessError } 401 - Invalid parameter value. + * @throws { BusinessError } 401 - Parameter error. Possible causes: + * 1. Mandatory parameters are left unspecified. + * 2. Incorrect parameter types. + * 3. Parameter verification failed. * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 3120001 - Service connection failed. * @throws { BusinessError } 3120002 - System internal error. * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - function getOsuStatus(slotId: number): Promise; + function getOsuStatus(slotId: int): Promise; /** * Execute OS upgrade if current OS upgrade is not the latest one. * * @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. * @returns { Promise } Return the status of OS upgrade when OS upgrade status changed. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Non-system applications use system APIs. - * @throws { BusinessError } 401 - Invalid parameter value. + * @throws { BusinessError } 401 - Parameter error. Possible causes: + * 1. Mandatory parameters are left unspecified. + * 2. Incorrect parameter types. + * 3. Parameter verification failed. * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 3120001 - Service connection failed. * @throws { BusinessError } 3120002 - System internal error. * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - function startOsu(slotId: number): Promise; + function startOsu(slotId: int): Promise; /** * Fills in and gets the metadata for a downloadable profile. * * @permission ohos.permission.SET_TELEPHONY_ESIM_STATE - * @param { number } slotId - Indicates the card slot index number. - * @param { number } portIndex - Index of the port for the slot. + * @param { int } slotId - Indicates the card slot index number. + * @param { int } portIndex - Index of the port for the slot. * @param { DownloadableProfile } profile - The Bound Profile Package data returned by SM-DP+ server. * @param { boolean } forceDisableProfile - If true, the active profile must be disabled in order to perform the - * operation. Otherwise, the resultCode should return {@link RESULT_MUST_DISABLE_PROFILE} to allow - * the user to agree to this operation first. + * operation. Otherwise, the resultCode should return {@link RESULT_MUST_DISABLE_PROFILE} to allow + * the user to agree to this operation first. * @returns { Promise } Return the metadata for profile. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Non-system applications use system APIs. - * @throws { BusinessError } 401 - Invalid parameter value. + * @throws { BusinessError } 401 - Parameter error. Possible causes: + * 1. Mandatory parameters are left unspecified. + * 2. Incorrect parameter types. + * 3. Parameter verification failed. * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 3120001 - Service connection failed. * @throws { BusinessError } 3120002 - System internal error. * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - function getDownloadableProfileMetadata(slotId: number, portIndex: number, - profile: DownloadableProfile, forceDisableProfile: boolean): Promise; + function getDownloadableProfileMetadata(slotId: int, portIndex: int, + profile: DownloadableProfile, forceDisableProfile: boolean): Promise; /** * Gets downloadable profile List which are available for download on this device. * * @permission ohos.permission.GET_TELEPHONY_ESIM_STATE - * @param { number } slotId - Indicates the card slot index number. - * @param { number } portIndex - Index of the port for the slot. + * @param { int } slotId - Indicates the card slot index number. + * @param { int } portIndex - Index of the port for the slot. * @param { boolean } forceDisableProfile - If true, the active profile must be disabled in order to perform the - * operation. Otherwise, the resultCode should return {@link RESULT_MUST_DISABLE_PROFILE} to allow - * the user to agree to this operation first. + * operation. Otherwise, the resultCode should return {@link RESULT_MUST_DISABLE_PROFILE} to allow + * the user to agree to this operation first. * @returns { Promise } Return metadata for downloadableProfile which are - * available for download on this device. + * available for download on this device. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Non-system applications use system APIs. - * @throws { BusinessError } 401 - Invalid parameter value. + * @throws { BusinessError } 401 - Parameter error. Possible causes: + * 1. Mandatory parameters are left unspecified. + * 2. Incorrect parameter types. + * 3. Parameter verification failed. * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 3120001 - Service connection failed. * @throws { BusinessError } 3120002 - System internal error. * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - function getDownloadableProfiles(slotId: number, portIndex: number, - forceDisableProfile: boolean): Promise; + function getDownloadableProfiles(slotId: int, portIndex: int, + forceDisableProfile: boolean): Promise; /** * Attempt to download the given downloadable Profile. * * @permission ohos.permission.SET_TELEPHONY_ESIM_STATE - * @param { number } slotId - Indicates the card slot index number. - * @param { number } portIndex - Index of the port for the slot. + * @param { int } slotId - Indicates the card slot index number. + * @param { int } portIndex - Index of the port for the slot. * @param { DownloadableProfile } profile - The Bound Profile Package data returned by SM-DP+ server. * @param { DownloadConfiguration } configuration - Configuration information during downloading. * @returns { Promise } Return the given downloadableProfile. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Non-system applications use system APIs. - * @throws { BusinessError } 401 - Invalid parameter value. + * @throws { BusinessError } 401 - Parameter error. Possible causes: + * 1. Mandatory parameters are left unspecified. + * 2. Incorrect parameter types. + * 3. Parameter verification failed. * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 3120001 - Service connection failed. * @throws { BusinessError } 3120002 - System internal error. * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - function downloadProfile(slotId: number, portIndex: number, profile: DownloadableProfile, - configuration: DownloadConfiguration): Promise; + function downloadProfile(slotId: int, portIndex: int, profile: DownloadableProfile, + configuration: DownloadConfiguration): Promise; /** * Returns a list of all eUICC profile information. * * @permission ohos.permission.GET_TELEPHONY_ESIM_STATE - * @param { number } slotId - Indicates the card slot index number. + * @param { int } slotId - Indicates the card slot index number. * @returns { Promise } Return a list of eUICC profile information. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Non-system applications use system APIs. - * @throws { BusinessError } 401 - Invalid parameter value. + * @throws { BusinessError } 401 - Parameter error. Possible causes: + * 1. Mandatory parameters are left unspecified. + * 2. Incorrect parameter types. + * 3. Parameter verification failed. * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 3120001 - Service connection failed. * @throws { BusinessError } 3120002 - System internal error. * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - function getEuiccProfileInfoList(slotId: number): Promise; + function getEuiccProfileInfoList(slotId: int): Promise; /** * Returns the eUICC Information. * * @permission ohos.permission.GET_TELEPHONY_ESIM_STATE - * @param { number } slotId - Indicates the card slot index number. + * @param { int } slotId - Indicates the card slot index number. * @returns { Promise } Returns the eUICC information to obtain. When eUICC is not ready, - * the return value may be null. + * the return value may be null. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Non-system applications use system APIs. - * @throws { BusinessError } 401 - Invalid parameter value. + * @throws { BusinessError } 401 - Parameter error. Possible causes: + * 1. Mandatory parameters are left unspecified. + * 2. Incorrect parameter types. + * 3. Parameter verification failed. * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 3120001 - Service connection failed. * @throws { BusinessError } 3120002 - System internal error. * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - function getEuiccInfo(slotId: number): Promise; + function getEuiccInfo(slotId: int): Promise; /** * Deletes the given profile from 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 { string } iccid - The iccid of the profile. * @returns { Promise } Returns the response to deletes the given profile. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Non-system applications use system APIs. - * @throws { BusinessError } 401 - Invalid parameter value. + * @throws { BusinessError } 401 - Parameter error. Possible causes: + * 1. Mandatory parameters are left unspecified. + * 2. Incorrect parameter types. + * 3. Parameter verification failed. * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 3120001 - Service connection failed. * @throws { BusinessError } 3120002 - System internal error. * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - function deleteProfile(slotId: number, iccid: string): Promise; + function deleteProfile(slotId: int, iccid: string): Promise; /** * Switch to (enable) the given profile on the eUICC. * * @permission ohos.permission.SET_TELEPHONY_ESIM_STATE - * @param { number } slotId - Indicates the card slot index number. - * @param { number } portIndex - Index of the port for the slot. + * @param { int } slotId - Indicates the card slot index number. + * @param { int } portIndex - Index of the port for the slot. * @param { string } iccid - The iccid of the profile to switch to. * @param { boolean } forceDisableProfile - If true, the active profile must be disabled in order to perform the - * operation. Otherwise, the resultCode should return {@link RESULT_MUST_DISABLE_PROFILE} to allow - * the user to agree to this operation first. + * operation. Otherwise, the resultCode should return {@link RESULT_MUST_DISABLE_PROFILE} to allow + * the user to agree to this operation first. * @returns { Promise } Returns the response to switch profile. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Non-system applications use system APIs. - * @throws { BusinessError } 401 - Invalid parameter value. + * @throws { BusinessError } 401 - Parameter error. Possible causes: + * 1. Mandatory parameters are left unspecified. + * 2. Incorrect parameter types. + * 3. Parameter verification failed. * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 3120001 - Service connection failed. * @throws { BusinessError } 3120002 - System internal error. * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - function switchToProfile(slotId: number, portIndex: number, iccid: string, - forceDisableProfile: boolean): Promise; + function switchToProfile(slotId: int, portIndex: int, iccid: string, + forceDisableProfile: boolean): Promise; /** * Adds or updates the given profile nickname. * * @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 { string } iccid - The iccid of the profile. * @param { string } nickname - The nickname of the profile. * @returns { Promise } Returns the result of the set nickname operation. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Non-system applications use system APIs. - * @throws { BusinessError } 401 - Invalid parameter value. + * @throws { BusinessError } 401 - Parameter error. Possible causes: + * 1. Mandatory parameters are left unspecified. + * 2. Incorrect parameter types. + * 3. Parameter verification failed. * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 3120001 - Service connection failed. * @throws { BusinessError } 3120002 - System internal error. * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - function setProfileNickname(slotId: number, iccid: string, nickname: string): Promise; + function setProfileNickname(slotId: int, iccid: string, nickname: string): Promise; /** * 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 { ResetOption } options - Options for resetting eUICC memory. + * @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. * @throws { BusinessError } 202 - Non-system applications use system APIs. - * @throws { BusinessError } 401 - Invalid parameter value. + * @throws { BusinessError } 401 - Parameter error. Possible causes: + * 1. Mandatory parameters are left unspecified. + * 2. Incorrect parameter types. + * 3. Parameter verification failed. * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 3120001 - Service connection failed. * @throws { BusinessError } 3120002 - System internal error. * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 18 + * @since arkts{ '1.1':'18','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. * * @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. * @returns { Promise } Returns the result code. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Non-system applications use system APIs. - * @throws { BusinessError } 401 - Invalid parameter value. + * @throws { BusinessError } 401 - Parameter error. Possible causes: + * 1. Mandatory parameters are left unspecified. + * 2. Incorrect parameter types. + * 3. Parameter verification failed. * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 3120001 - Service connection failed. * @throws { BusinessError } 3120002 - System internal error. * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - function reserveProfilesForFactoryRestore(slotId: number): Promise; + function reserveProfilesForFactoryRestore(slotId: int): Promise; /** * Set or update the default SM-DP+ address stored in an 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 { string } address - The default SM-DP+ address to set. * @returns { Promise } Returns the result code. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Non-system applications use system APIs. - * @throws { BusinessError } 401 - Invalid parameter value. + * @throws { BusinessError } 401 - Parameter error. Possible causes: + * 1. Mandatory parameters are left unspecified. + * 2. Incorrect parameter types. + * 3. Parameter verification failed. * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 3120001 - Service connection failed. * @throws { BusinessError } 3120002 - System internal error. * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - function setDefaultSmdpAddress(slotId: number, address: string): Promise; + function setDefaultSmdpAddress(slotId: int, address: string): Promise; /** * Gets the default SM-DP+ address stored in an eUICC. * * @permission ohos.permission.GET_TELEPHONY_ESIM_STATE - * @param { number } slotId - Indicates the card slot index number. + * @param { int } slotId - Indicates the card slot index number. * @returns { Promise } Returns the default SM-DP+ address. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Non-system applications use system APIs. - * @throws { BusinessError } 401 - Invalid parameter value. + * @throws { BusinessError } 401 - Parameter error. Possible causes: + * 1. Mandatory parameters are left unspecified. + * 2. Incorrect parameter types. + * 3. Parameter verification failed. * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 3120001 - Service connection failed. * @throws { BusinessError } 3120002 - System internal error. * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - function getDefaultSmdpAddress(slotId: number): Promise; + function getDefaultSmdpAddress(slotId: int): Promise; /** * Cancel session can be used in the @@ -363,27 +431,31 @@ declare namespace eSIM { * 2.after the response to "ES9+.GetBoundProfilePackage" * * @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 { string } transactionId - The transaction ID returned by SM-DP+ server. * @param { CancelReason } cancelReason - The cancel reason. * @returns { Promise } Returns the result code. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Non-system applications use system APIs. - * @throws { BusinessError } 401 - Invalid parameter value. + * @throws { BusinessError } 401 - Parameter error. Possible causes: + * 1. Mandatory parameters are left unspecified. + * 2. Incorrect parameter types. + * 3. Parameter verification failed. * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 3120001 - Service connection failed. * @throws { BusinessError } 3120002 - System internal error. * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - function cancelSession(slotId: number, transactionId: string, cancelReason: CancelReason): Promise; + function cancelSession(slotId: int, transactionId: string, cancelReason: CancelReason): Promise; /** * Get contract info * * @permission ohos.permission.GET_TELEPHONY_ESIM_STATE - * @param { number } slotId - Indicates the card slot index number. + * @param { int } slotId - Indicates the card slot index number. * @param { ContractRequestData } requestData - request infomation required to get contract infomation. * @returns { Promise } Returns the contract info. * @throws { BusinessError } 201 - Permission denied. @@ -396,13 +468,13 @@ declare namespace eSIM { * @since 20 * @arkts 1.1&1.2 */ - function getContractInfo(slotId: number, requestData: ContractRequestData) : Promise; + function getContractInfo(slotId: int, requestData: ContractRequestData) : Promise; /** * Get supported pkids * * @permission ohos.permission.GET_TELEPHONY_ESIM_STATE - * @param { number } slotId - Indicates the card slot index number. + * @param { int } slotId - Indicates the card slot index number. * @returns { Promise } Returns the supported pkids. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Non-system applications use system APIs. @@ -414,7 +486,7 @@ declare namespace eSIM { * @since 20 * @arkts 1.1&1.2 */ - function getSupportedPkids(slotId: number) : Promise; + function getSupportedPkids(slotId: int) : Promise; /** * Contract request data @@ -492,12 +564,13 @@ declare namespace eSIM { /** * The type of access. * - * @type { number } + * @type { int } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - accessType: number; + accessType: int; } /** @@ -567,12 +640,13 @@ declare namespace eSIM { /** * The type of profile policy rule. * - * @type { number } + * @type { int } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - pprType: number; + pprType: int; /** * The flag of profile policy rule. @@ -707,12 +781,13 @@ declare namespace eSIM { /** * Gets the card Id. This value comes from EuiccService and is used when resolving solvable errors. * - * @type { number } + * @type { int } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - cardId: number; + cardId: int; } /** @@ -928,10 +1003,11 @@ declare namespace eSIM { /** * Options for resetting eUICC memory. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ export enum ResetOption { /** @@ -965,10 +1041,11 @@ declare namespace eSIM { /** * Euicc OS upgrade status. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ export enum OsuStatus { /** @@ -1020,10 +1097,11 @@ declare namespace eSIM { /** * Result state. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ export enum ResultCode { /** @@ -1363,10 +1441,11 @@ declare namespace eSIM { /** * The reason for canceling a profile download session. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ export enum CancelReason { /** @@ -1409,10 +1488,11 @@ declare namespace eSIM { /** * The profile state. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ export enum ProfileState { /** @@ -1446,10 +1526,11 @@ declare namespace eSIM { /** * The Profile class. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ export enum ProfileClass { /** @@ -1492,10 +1573,11 @@ declare namespace eSIM { /** * The policy rules of the profile. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ export enum PolicyRules { /** @@ -1529,10 +1611,11 @@ declare namespace eSIM { /** * The solvable errors. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ export enum SolvableErrors { /** diff --git a/api/@ohos.telephony.radio.d.ts b/api/@ohos.telephony.radio.d.ts index 8610329608..61fc6265a0 100644 --- a/api/@ohos.telephony.radio.d.ts +++ b/api/@ohos.telephony.radio.d.ts @@ -68,7 +68,7 @@ declare namespace radio { * returns RAT of the packet service (PS) and circuit service (CS) domain. * * @permission ohos.permission.GET_NETWORK_INFO - * @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 - Returns * the RAT of PS domain and CS domain of registered network. @@ -96,9 +96,10 @@ declare namespace radio { * @throws { BusinessError } 8300003 - System internal error. * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService - * @since 11 + * @since arkts{ '1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ - function getRadioTech(slotId: number, callback: AsyncCallback): void; + function getRadioTech(slotId: int, callback: AsyncCallback): void; /** * Obtains radio access technology (RAT) of the registered network. The system @@ -138,7 +139,7 @@ declare namespace radio { * returns RAT of the packet service (PS) and circuit service (CS) domain. * * @permission ohos.permission.GET_NETWORK_INFO - * @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 RAT of PS domain and CS domain of registered network. * The values of RAT are as follows: @@ -165,27 +166,36 @@ declare namespace radio { * @throws { BusinessError } 8300003 - System internal error. * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService - * @since 11 + * @since arkts{ '1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ - function getRadioTech(slotId: number): Promise; + function getRadioTech(slotId: int): Promise; /** * Obtains radio access technology (RAT) of the registered network. * * @permission ohos.permission.GET_NETWORK_INFO - * @param { number } slotId - Indicates the card slot index number, - * ranging from 0 to the maximum card slot index number supported by the device. + * @param { int } slotId - Indicates the card slot index number, + * ranging from 0 to the maximum card slot index number supported by the device. * @returns { NetworkRadioTech } Returns the RAT of PS domain and CS domain of registered network. + * @throws { BusinessError } 201 - Permission denied. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. + * 2. Incorrect parameter 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.CoreService - * @since 18 + * @since arkts{ '1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - function getRadioTechSync(slotId: number): NetworkRadioTech; + function getRadioTechSync(slotId: int): NetworkRadioTech; /** * Obtains the network state of the registered network. * * @permission ohos.permission.GET_NETWORK_INFO - * @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 network registration state. * @throws { BusinessError } 201 - Permission denied. @@ -196,15 +206,16 @@ declare namespace radio { * @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 getNetworkState(slotId: number, callback: AsyncCallback): void; + function getNetworkState(slotId: int, callback: AsyncCallback): void; /** * Obtains the network state of the registered network. * * @permission ohos.permission.GET_NETWORK_INFO - * @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. * if no slotId is provided, the default slotId is 0. * @returns { Promise } Returns the NetworkState object. @@ -216,9 +227,10 @@ declare namespace radio { * @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 getNetworkState(slotId?: number): Promise; + function getNetworkState(slotId?: int): Promise; /** * Obtains the network state of the registered network. @@ -241,7 +253,7 @@ declare namespace radio { * Actively requests to update location information. * * @permission ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot + * @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 - The callback of sendUpdateCellLocationRequest. * @throws { BusinessError } 201 - Permission denied. @@ -254,15 +266,16 @@ declare namespace radio { * @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 sendUpdateCellLocationRequest(slotId: number, callback: AsyncCallback): void; + function sendUpdateCellLocationRequest(slotId: int, callback: AsyncCallback): void; /** * Actively requests to update location information. * * @permission ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot + * @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 } The promise returned by the sendUpdateCellLocationRequest. * @throws { BusinessError } 201 - Permission denied. @@ -275,9 +288,10 @@ declare namespace radio { * @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 sendUpdateCellLocationRequest(slotId?: number): Promise; + function sendUpdateCellLocationRequest(slotId?: int): Promise; /** * Actively requests to update location information. @@ -302,7 +316,7 @@ declare namespace radio { * Get the current cell information. * * @permission ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot + * @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 cell information. * @throws { BusinessError } 201 - Permission denied. @@ -315,15 +329,16 @@ declare namespace radio { * @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 getCellInformation(slotId: number, callback: AsyncCallback>): void; + function getCellInformation(slotId: int, callback: AsyncCallback>): void; /** * Get the current cell information. * * @permission ohos.permission.LOCATION and ohos.permission.APPROXIMATELY_LOCATION - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot + * @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 current cell information. * @throws { BusinessError } 201 - Permission denied. @@ -336,9 +351,10 @@ declare namespace radio { * @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 getCellInformation(slotId?: number): Promise>; + function getCellInformation(slotId?: int): Promise>; /** * Get the current cell information. @@ -362,7 +378,7 @@ declare namespace radio { /** * Obtains the network search mode of the SIM card in a specified slot. * - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot + * @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 network search mode of the SIM card. Available values are as follows: @@ -378,14 +394,15 @@ declare namespace radio { * @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 getNetworkSelectionMode(slotId: number, callback: AsyncCallback): void; + function getNetworkSelectionMode(slotId: int, callback: AsyncCallback): void; /** * Obtains the network search mode of the SIM card in a specified slot. * - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot + * @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 network search mode of the SIM card. * Available values are as follows: @@ -401,9 +418,10 @@ declare namespace radio { * @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 getNetworkSelectionMode(slotId: number): Promise; + function getNetworkSelectionMode(slotId: int): Promise; /** * Set the current network selection mode. @@ -449,7 +467,7 @@ declare namespace radio { * Get network search information. * * @permission ohos.permission.GET_TELEPHONY_STATE - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot + * @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 search results of the network. @@ -463,15 +481,16 @@ declare namespace radio { * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 6 + * @since arkts{ '1.1':'6','1.2':'20'} + * @arkts 1.1&1.2 */ - function getNetworkSearchInformation(slotId: number, callback: AsyncCallback): void; + function getNetworkSearchInformation(slotId: int, callback: AsyncCallback): void; /** * Get network search information. * * @permission ohos.permission.GET_TELEPHONY_STATE - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot + * @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 search results of the network. * @throws { BusinessError } 201 - Permission denied. @@ -484,14 +503,15 @@ declare namespace radio { * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 6 + * @since arkts{ '1.1':'6','1.2':'20'} + * @arkts 1.1&1.2 */ - function getNetworkSearchInformation(slotId: number): Promise; + function getNetworkSearchInformation(slotId: int): Promise; /** * Obtains the ISO-defined country code of the country where the registered network is deployed. * - * @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 the device is not registered with any network. @@ -502,14 +522,15 @@ declare namespace radio { * @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 getISOCountryCodeForNetwork(slotId: number, callback: AsyncCallback): void; + function getISOCountryCodeForNetwork(slotId: int, callback: AsyncCallback): void; /** * Obtains the ISO-defined country code of the country where the registered network is deployed. * - * @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 the device is not registered with any network. @@ -520,26 +541,28 @@ declare namespace radio { * @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 getISOCountryCodeForNetwork(slotId: number): Promise; + function getISOCountryCodeForNetwork(slotId: int): Promise; /** * Obtains the ISO-defined country code of the country where the registered network is deployed. * - * @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 { string } Returns the country code defined in ISO 3166-2. * Returns an empty string if the device is not registered with any network. * @syscap SystemCapability.Telephony.CoreService - * @since 10 + * @since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function getISOCountryCodeForNetworkSync(slotId: number): string; + function getISOCountryCodeForNetworkSync(slotId: int): string; /** * Get the option mode of NR. * - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot + * @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 selection mode of NR. * @throws { BusinessError } 202 - Non-system applications use system APIs. @@ -555,12 +578,12 @@ declare namespace radio { * @deprecated since 10 * @useinstead telephony.radio#getNROptionMode */ - function getNrOptionMode(slotId: number, callback: AsyncCallback): void; + function getNrOptionMode(slotId: int, callback: AsyncCallback): void; /** * Get the option mode of NR. * - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot + * @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 selection mode of NR. * @throws { BusinessError } 202 - Non-system applications use system APIs. @@ -576,7 +599,7 @@ declare namespace radio { * @deprecated since 10 * @useinstead telephony.radio#getNROptionMode */ - function getNrOptionMode(slotId?: number): Promise; + function getNrOptionMode(slotId?: int): Promise; /** * Get the option mode of NR. @@ -601,7 +624,7 @@ declare namespace radio { * Obtains the IMEI of a specified card slot of the device. * * @permission ohos.permission.GET_TELEPHONY_STATE - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot + * @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 IMEI. * Returns an empty string if the IMEI does not exist. @@ -615,15 +638,16 @@ declare namespace radio { * @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 getIMEI(slotId: number, callback: AsyncCallback): void; + function getIMEI(slotId: int, callback: AsyncCallback): void; /** * Obtains the IMEI of a specified card slot of the device. * * @permission ohos.permission.GET_TELEPHONY_STATE - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot + * @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 IMEI. Returns an empty string if the IMEI does not exist. * @throws { BusinessError } 201 - Permission denied. @@ -636,9 +660,10 @@ declare namespace radio { * @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 getIMEI(slotId?: number): Promise; + function getIMEI(slotId?: int): Promise; /** * Obtains the IMEI of a specified card slot of the device. @@ -664,7 +689,7 @@ declare namespace radio { * Obtains the MEID of a specified card slot of the device. * * @permission ohos.permission.GET_TELEPHONY_STATE - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot + * @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 MEID. * Returns an empty string if the MEID does not exist. @@ -678,15 +703,16 @@ declare namespace radio { * @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 getMEID(slotId: number, callback: AsyncCallback): void; + function getMEID(slotId: int, callback: AsyncCallback): void; /** * Obtains the MEID of a specified card slot of the device. * * @permission ohos.permission.GET_TELEPHONY_STATE - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot + * @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 MEID. Returns an empty string if the MEID does not exist. * @throws { BusinessError } 201 - Permission denied. @@ -699,9 +725,10 @@ declare namespace radio { * @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 getMEID(slotId?: number): Promise; + function getMEID(slotId?: int): Promise; /** * Obtains the MEID of a specified card slot of the device. @@ -731,7 +758,7 @@ declare namespace radio { * (MEID) is returned. * * @permission ohos.permission.GET_TELEPHONY_STATE - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot + * @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 unique device ID. * Returns an empty string if the unique device ID does not exist. @@ -745,9 +772,10 @@ declare namespace radio { * @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 getUniqueDeviceId(slotId: number, callback: AsyncCallback): void; + function getUniqueDeviceId(slotId: int, callback: AsyncCallback): void; /** * Obtains the unique device ID of a specified card slot of the device. @@ -757,7 +785,7 @@ declare namespace radio { * (MEID) is returned. * * @permission ohos.permission.GET_TELEPHONY_STATE - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot + * @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 unique device ID. * Returns an empty string if the unique device ID does not exist. @@ -771,9 +799,10 @@ declare namespace radio { * @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 getUniqueDeviceId(slotId?: number): Promise; + function getUniqueDeviceId(slotId?: int): Promise; /** * Obtains the unique device ID of a specified card slot of the device. @@ -804,7 +833,7 @@ declare namespace radio { * * The primary card is the SIM card inserted in the card slot that uses data services by default. * - * @param { AsyncCallback } callback - Indicates the callback for getting the index number of + * @param { AsyncCallback } callback - Indicates the callback for getting the index number of * the primary card slot. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. @@ -813,29 +842,31 @@ declare namespace radio { * @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 getPrimarySlotId(callback: AsyncCallback): void; + function getPrimarySlotId(callback: AsyncCallback): void; /** * Obtains the index number of the card slot where the primary card is located if multiple SIM cards are inserted. * * The primary card is the SIM card inserted in the card slot that uses data services by default. * - * @returns { Promise } Returns the index number of the primary card slot. + * @returns { Promise } Returns the index number of the primary card slot. * @throws { BusinessError } 8300002 - Service connection failed. * @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 getPrimarySlotId(): Promise; + function getPrimarySlotId(): Promise; /** * Set the index number of the main SIM card slot. * * @permission ohos.permission.SET_TELEPHONY_STATE - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot + * @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 - The callback of setPrimarySlotId. * @throws { BusinessError } 201 - Permission denied. @@ -849,15 +880,16 @@ declare namespace radio { * @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 setPrimarySlotId(slotId: number, callback: AsyncCallback): void; + function setPrimarySlotId(slotId: int, callback: AsyncCallback): void; /** * Set the index number of the main SIM card slot. * * @permission ohos.permission.SET_TELEPHONY_STATE - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot + * @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 } The promise returned by the setPrimarySlotId. * @throws { BusinessError } 201 - Permission denied. @@ -871,14 +903,15 @@ declare namespace radio { * @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 setPrimarySlotId(slotId: number): Promise; + function setPrimarySlotId(slotId: int): Promise; /** * Obtains the list of signal strength information of the registered network corresponding to a specified SIM card. * - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot + * @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 instance list of the child classes derived from {@link SignalInformation}. @@ -889,14 +922,15 @@ declare namespace radio { * @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 getSignalInformation(slotId: number, callback: AsyncCallback>): void; + function getSignalInformation(slotId: int, callback: AsyncCallback>): void; /** * Obtains the list of signal strength information of the registered network corresponding to a specified SIM card. * - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot + * @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 callback for getting the instance list of * the child classes derived from {@link SignalInformation}. @@ -907,21 +941,23 @@ declare namespace radio { * @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 getSignalInformation(slotId: number): Promise>; + function getSignalInformation(slotId: int): Promise>; /** * Obtains the list of signal strength information of the registered network corresponding to a specified SIM card. * - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum + * @param { int } slotId - Indicates the card slot index number, ranging from 0 to the maximum * card slots supported by the device. * @returns { Array } Returns the callback for getting the instance list of * the child classes derived from {@link SignalInformation}. * @syscap SystemCapability.Telephony.CoreService - * @since 10 + * @since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function getSignalInformationSync(slotId: number): Array; + function getSignalInformationSync(slotId: int): Array; /** * Checks whether the device supports 5G New Radio (NR). @@ -937,7 +973,7 @@ declare namespace radio { /** * Checks whether the device supports 5G New Radio (NR) by according card slot. * - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot + * @param { int } 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 device supports 5G NR; returns {@code false} otherwise. * @syscap SystemCapability.Telephony.CoreService @@ -945,7 +981,7 @@ declare namespace radio { * @deprecated since 9 * @useinstead telephony.radio#isNRSupported */ - function isNrSupported(slotId: number): boolean; + function isNrSupported(slotId: int): boolean; /** * Checks whether the device supports 5G New Radio (NR). @@ -959,19 +995,20 @@ declare namespace radio { /** * Checks whether the device supports 5G New Radio (NR) by according card slot. * - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot + * @param { int } slotId - Indicates the card slot index int, ranging from 0 to the maximum card slot * index number supported by the device. * @returns { boolean } Returns {@code true} if the device supports 5G NR; returns {@code false} otherwise. * @syscap SystemCapability.Telephony.CoreService - * @since 9 + * @since arkts{ '1.1':'9','1.2':'20'} + * @arkts 1.1&1.2 */ - function isNRSupported(slotId: number): boolean; + function isNRSupported(slotId: int): boolean; /** * Checks whether the radio service is enabled. * * @permission ohos.permission.GET_NETWORK_INFO - * @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 - Returns {@code true} If the radio service is enabled. * Returns {@code false} otherwise. @@ -983,15 +1020,16 @@ declare namespace radio { * @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 isRadioOn(slotId: number, callback: AsyncCallback): void; + function isRadioOn(slotId: int, callback: AsyncCallback): void; /** * Checks whether the radio service is enabled. * * @permission ohos.permission.GET_NETWORK_INFO - * @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 the radio service is enabled; returns {@code false} otherwise. * @throws { BusinessError } 201 - Permission denied. @@ -1002,9 +1040,10 @@ declare namespace radio { * @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 isRadioOn(slotId?: number): Promise; + function isRadioOn(slotId?: int): Promise; /** * Checks whether the radio service is enabled. @@ -1028,7 +1067,7 @@ declare namespace radio { * Turn on the radio service. * * @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 { AsyncCallback } callback - The callback of turnOnRadio. * @throws { BusinessError } 201 - Permission denied. @@ -1041,15 +1080,16 @@ declare namespace radio { * @throws { BusinessError } 8300999 - Unknown error. * @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 turnOnRadio(slotId: number, callback: AsyncCallback): void; + function turnOnRadio(slotId: int, callback: AsyncCallback): void; /** * Turn on the radio service. * * @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. * @returns { Promise } The promise returned by the turnOnRadio. * @throws { BusinessError } 201 - Permission denied. @@ -1062,9 +1102,10 @@ declare namespace radio { * @throws { BusinessError } 8300999 - Unknown error. * @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 turnOnRadio(slotId?: number): Promise; + function turnOnRadio(slotId?: int): Promise; /** * Turn on the radio service. @@ -1089,7 +1130,7 @@ declare namespace radio { * Turn off the radio service. * * @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 { AsyncCallback } callback - The callback of turnOffRadio. * @throws { BusinessError } 201 - Permission denied. @@ -1102,15 +1143,16 @@ declare namespace radio { * @throws { BusinessError } 8300999 - Unknown error. * @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 turnOffRadio(slotId: number, callback: AsyncCallback): void; + function turnOffRadio(slotId: int, callback: AsyncCallback): void; /** * Turn off the radio service. * * @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. * @returns { Promise } The promise returned by the turnOffRadio. * @throws { BusinessError } 201 - Permission denied. @@ -1123,9 +1165,10 @@ declare namespace radio { * @throws { BusinessError } 8300999 - Unknown error. * @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 turnOffRadio(slotId?: number): Promise; + function turnOffRadio(slotId?: int): Promise; /** * Turn off the radio service. @@ -1149,7 +1192,7 @@ declare namespace radio { /** * Get the operator name of the specified SIM card 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 operator name. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. @@ -1159,14 +1202,15 @@ declare namespace radio { * @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 getOperatorName(slotId: number, callback: AsyncCallback): void; + function getOperatorName(slotId: int, callback: AsyncCallback): void; /** * Get the operator name of the specified SIM card 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 operator name. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. @@ -1176,26 +1220,28 @@ declare namespace radio { * @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 getOperatorName(slotId: number): Promise; + function getOperatorName(slotId: int): Promise; /** * Get the operator name of the specified SIM card 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 { string } Returns the operator name. * @syscap SystemCapability.Telephony.CoreService - * @since 10 + * @since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function getOperatorNameSync(slotId: number): string; + function getOperatorNameSync(slotId: int): string; /** * Set the preferred network for the specified SIM 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 { PreferredNetworkMode } networkMode - Indicates that you want to set the preferred network mode. * @param { AsyncCallback } callback - The callback of setPreferredNetwork. @@ -1209,15 +1255,16 @@ declare namespace radio { * @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 setPreferredNetwork(slotId: number, networkMode: PreferredNetworkMode, callback: AsyncCallback): void; + function setPreferredNetwork(slotId: int, networkMode: PreferredNetworkMode, callback: AsyncCallback): void; /** * Set the preferred network for the specified SIM 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 { PreferredNetworkMode } networkMode - Indicates that you want to set the preferred network mode. * @returns { Promise } The promise returned by the setPreferredNetwork. @@ -1231,15 +1278,16 @@ declare namespace radio { * @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 setPreferredNetwork(slotId: number, networkMode: PreferredNetworkMode): Promise; + function setPreferredNetwork(slotId: int, networkMode: PreferredNetworkMode): Promise; /** * Get the preferred network for the specified SIM card 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 preferred network mode to obtain. @@ -1253,15 +1301,16 @@ declare namespace radio { * @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 getPreferredNetwork(slotId: number, callback: AsyncCallback): void; + function getPreferredNetwork(slotId: int, callback: AsyncCallback): void; /** * Get the preferred network for the specified SIM card 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 callback for getting the preferred network mode to obtain. * @throws { BusinessError } 201 - Permission denied. @@ -1274,15 +1323,16 @@ declare namespace radio { * @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 getPreferredNetwork(slotId: number): Promise; + function getPreferredNetwork(slotId: int): Promise; /** * Get the IMS registration state info of specified IMS service type. * * @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 { ImsServiceType } imsType - Indicates the ims service type of the {@link ImsServiceType}. * @param { AsyncCallback } callback - Indicates an instance of the {@link ImsRegInfo} class. @@ -1295,15 +1345,16 @@ declare namespace radio { * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9','1.2':'20'} + * @arkts 1.1&1.2 */ - function getImsRegInfo(slotId: number, imsType: ImsServiceType, callback: AsyncCallback): void; + function getImsRegInfo(slotId: int, imsType: ImsServiceType, callback: AsyncCallback): void; /** * Get the IMS registration state info of specified IMS service type. * * @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 { ImsServiceType } imsType - Indicates the ims service type of the {@link ImsServiceType}. * @returns { Promise } Returns an instance of the {@link ImsRegInfo} class. @@ -1316,9 +1367,10 @@ declare namespace radio { * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9','1.2':'20'} + * @arkts 1.1&1.2 */ - function getImsRegInfo(slotId: number, imsType: ImsServiceType): Promise; + function getImsRegInfo(slotId: int, imsType: ImsServiceType): Promise; /** * Called when the IMS registration state of specified IMS service type corresponding to @@ -1326,7 +1378,7 @@ declare namespace radio { * * @permission ohos.permission.GET_TELEPHONY_STATE * @param { 'imsRegStateChange' } type - Event type. Indicates the imsRegStateChange event to be subscribed to. - * @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 { ImsServiceType } imsType - Indicates the ims service type of the {@link ImsServiceType}. * @param { Callback } callback - Indicates the callback for getting an instance of @@ -1340,16 +1392,17 @@ declare namespace radio { * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9','1.2':'20'} + * @arkts 1.1&1.2 */ - function on(type: 'imsRegStateChange', slotId: number, imsType: ImsServiceType, callback: Callback): void; + function on(type: 'imsRegStateChange', slotId: int, imsType: ImsServiceType, callback: Callback): void; /** * Unsubscribe from imsRegStateChange event. * * @permission ohos.permission.GET_TELEPHONY_STATE * @param { 'imsRegStateChange' } type - Event type. Indicates the imsRegStateChange event to unsubscribe from. - * @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 { ImsServiceType } imsType - Indicates the ims service type of the {@link ImsServiceType}. * @param { Callback } callback - Indicates the callback for getting @@ -1363,15 +1416,16 @@ declare namespace radio { * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9','1.2':'20'} + * @arkts 1.1&1.2 */ - function off(type: 'imsRegStateChange', slotId: number, imsType: ImsServiceType, callback?: Callback): void; + function off(type: 'imsRegStateChange', slotId: int, imsType: ImsServiceType, callback?: Callback): void; /** * Get the version of Baseband. * * @permission ohos.permission.GET_TELEPHONY_STATE - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum 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 baseband version. * @throws { BusinessError } 201 - Permission denied. @@ -1384,15 +1438,16 @@ declare namespace radio { * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function getBasebandVersion(slotId: number, callback: AsyncCallback): void; + function getBasebandVersion(slotId: int, callback: AsyncCallback): void; /** * Get the version of Baseband. * * @permission ohos.permission.GET_TELEPHONY_STATE - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum 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 baseband version. * @throws { BusinessError } 201 - Permission denied. @@ -1405,15 +1460,16 @@ declare namespace radio { * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function getBasebandVersion(slotId: number): Promise; + function getBasebandVersion(slotId: int): Promise; /** * Set the NR option mode. * * @permission ohos.permission.SET_TELEPHONY_STATE - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot index + * @param { int } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot index * number supported by the device. * @param { NROptionMode } mode - Indicates the nr option mode to be set. * @param { AsyncCallback } callback - Indicates the callback for getting the option result. @@ -1427,15 +1483,16 @@ declare namespace radio { * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function setNROptionMode(slotId: number, mode: NROptionMode, callback: AsyncCallback): void; + function setNROptionMode(slotId: int, mode: NROptionMode, callback: AsyncCallback): void; /** * Set the NR option mode. * * @permission ohos.permission.SET_TELEPHONY_STATE - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot index + * @param { int } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot index * number supported by the device. * @param { NROptionMode } mode - Indicates the nr option mode to be set. * @returns { Promise } Returns option result. @@ -1449,14 +1506,15 @@ declare namespace radio { * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function setNROptionMode(slotId: number, mode: NROptionMode): Promise; + function setNROptionMode(slotId: int, mode: NROptionMode): Promise; /** * Get the option mode of NR. * - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot + * @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 selection mode of NR. * @throws { BusinessError } 202 - Non-system applications use system APIs. @@ -1468,14 +1526,15 @@ declare namespace radio { * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function getNROptionMode(slotId: number, callback: AsyncCallback): void; + function getNROptionMode(slotId: int, callback: AsyncCallback): void; /** * Get the option mode of NR. * - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot + * @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 selection mode of NR. * @throws { BusinessError } 202 - Non-system applications use system APIs. @@ -1487,15 +1546,16 @@ declare namespace radio { * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function getNROptionMode(slotId: number): Promise; + function getNROptionMode(slotId: int): Promise; /** * Set the type and state for the specified network capability. * * @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 { NetworkCapabilityType } type - Indicates the service type of the {@link NetworkCapabilityType}. * @param { NetworkCapabilityState } state - Indicates the service ability state of the {@link NetworkCapabilityState}. @@ -1510,16 +1570,17 @@ declare namespace radio { * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function setNetworkCapability(slotId: number, type: NetworkCapabilityType, state: NetworkCapabilityState, + function setNetworkCapability(slotId: int, type: NetworkCapabilityType, state: NetworkCapabilityState, callback: AsyncCallback): void; /** * Set the type and state for the specified network capability. * * @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 { NetworkCapabilityType } type - Indicates the service type of the {@link NetworkCapabilityType}. * @param { NetworkCapabilityState } state - Indicates the service ability state of the {@link NetworkCapabilityState}. @@ -1534,15 +1595,16 @@ declare namespace radio { * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function setNetworkCapability(slotId: number, type: NetworkCapabilityType, state: NetworkCapabilityState): Promise; + function setNetworkCapability(slotId: int, type: NetworkCapabilityType, state: NetworkCapabilityState): Promise; /** * Get the network capability state according to the specified capability type. * * @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 { NetworkCapabilityType } type - Indicates the service type of the {@link NetworkCapabilityType}. * @param { AsyncCallback } callback - Indicates the callback for getting @@ -1557,16 +1619,17 @@ declare namespace radio { * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function getNetworkCapability(slotId: number, type: NetworkCapabilityType, + function getNetworkCapability(slotId: int, type: NetworkCapabilityType, callback: AsyncCallback): void; /** * Get the network capability state according to the specified capability type. * * @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 { NetworkCapabilityType } type - Indicates the service type of the {@link NetworkCapabilityType}. * @returns { Promise } Returns the callback for getting the network capability state. @@ -1580,15 +1643,16 @@ declare namespace radio { * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function getNetworkCapability(slotId: number, type: NetworkCapabilityType): Promise; - + function getNetworkCapability(slotId: int, type: NetworkCapabilityType): Promise; + /** * Reset all network settings of telephony. * * @permission ohos.permission.SET_TELEPHONY_STATE - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot + * @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 } The promise returned by the factoryReset. * @throws { BusinessError } 201 - Permission denied. @@ -1601,15 +1665,16 @@ declare namespace radio { * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 11 + * @since arkts{ '1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ - function factoryReset(slotId: number): Promise; + function factoryReset(slotId: int): Promise; /** * Obtains the software version number of a specified card slot of the device. * * @permission ohos.permission.GET_TELEPHONY_STATE - * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum 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 { string } Returns the IMEISV. Returns an empty string if the IMEISV does not exist. * @throws { BusinessError } 201 - Permission denied. @@ -1622,17 +1687,19 @@ declare namespace radio { * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 12 + * @since arkts{ '1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - function getIMEISV(slotId: number): string; + function getIMEISV(slotId: int): string; /** * Indicates the preferred network. * - * @enum { number } + * @enum { int } * @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 PreferredNetworkMode { /** @@ -1939,7 +2006,7 @@ declare namespace radio { * @systemapi Hide this for inner system use. * @since 8 */ - PREFERRED_NETWORK_MODE_MAX_VALUE = 99, + PREFERRED_NETWORK_MODE_MAX_VALUE = 99 } /** @@ -1972,9 +2039,10 @@ declare namespace radio { /** * Describes the radio access technology. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Telephony.CoreService - * @since 6 + * @since arkts{ '1.1':'6','1.2':'20'} + * @arkts 1.1&1.2 */ export enum RadioTechnology { /** @@ -2106,28 +2174,31 @@ declare namespace radio { /** * Obtains the signal level of the current network. * - * @type { number } + * @type { int } * @syscap SystemCapability.Telephony.CoreService - * @since 6 + * @since arkts{ '1.1':'6','1.2':'20'} + * @arkts 1.1&1.2 */ - signalLevel: number; + signalLevel: int; /** * rsrp for LTE and NR; dbm for CDMA and EVDO; rscp for WCDMA; rssi for GSM. * - * @type { number } + * @type { int } * @syscap SystemCapability.Telephony.CoreService - * @since 9 + * @since arkts{ '1.1':'9','1.2':'20'} + * @arkts 1.1&1.2 */ - dBm: number; + dBm: int; } /** * Describes the network type. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Telephony.CoreService - * @since 6 + * @since arkts{ '1.1':'6','1.2':'20'} + * @arkts 1.1&1.2 */ export enum NetworkType { /** @@ -2136,7 +2207,7 @@ declare namespace radio { * @syscap SystemCapability.Telephony.CoreService * @since 6 */ - NETWORK_TYPE_UNKNOWN, + NETWORK_TYPE_UNKNOWN = 0, /** * Indicates that the network type is GSM. @@ -2144,7 +2215,7 @@ declare namespace radio { * @syscap SystemCapability.Telephony.CoreService * @since 6 */ - NETWORK_TYPE_GSM, + NETWORK_TYPE_GSM = 1, /** * Indicates that the network type is CDMA. @@ -2152,7 +2223,7 @@ declare namespace radio { * @syscap SystemCapability.Telephony.CoreService * @since 6 */ - NETWORK_TYPE_CDMA, + NETWORK_TYPE_CDMA = 2, /** * Indicates that the network type is WCDMA. @@ -2160,7 +2231,7 @@ declare namespace radio { * @syscap SystemCapability.Telephony.CoreService * @since 6 */ - NETWORK_TYPE_WCDMA, + NETWORK_TYPE_WCDMA = 3, /** * Indicates that the network type is TD-SCDMA. @@ -2168,7 +2239,7 @@ declare namespace radio { * @syscap SystemCapability.Telephony.CoreService * @since 6 */ - NETWORK_TYPE_TDSCDMA, + NETWORK_TYPE_TDSCDMA = 4, /** * Indicates that the network type is LTE. @@ -2176,7 +2247,7 @@ declare namespace radio { * @syscap SystemCapability.Telephony.CoreService * @since 6 */ - NETWORK_TYPE_LTE, + NETWORK_TYPE_LTE = 5, /** * Indicates that the network type is 5G NR. @@ -2184,7 +2255,7 @@ declare namespace radio { * @syscap SystemCapability.Telephony.CoreService * @since 6 */ - NETWORK_TYPE_NR + NETWORK_TYPE_NR = 6 } /** @@ -2295,9 +2366,10 @@ declare namespace radio { /** * Describes the network registration state. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Telephony.CoreService - * @since 6 + * @since arkts{ '1.1':'6','1.2':'20'} + * @arkts 1.1&1.2 */ export enum RegState { /** @@ -2336,9 +2408,10 @@ declare namespace radio { /** * Describes the nsa state. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Telephony.CoreService - * @since 6 + * @since arkts{ '1.1':'6','1.2':'20'} + * @arkts 1.1&1.2 */ export enum NsaState { /** @@ -2427,12 +2500,13 @@ declare namespace radio { * * Returns a timestamp since boot, in nanoseconds. * - * @type { number } + * @type { int } * @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 */ - timeStamp: number; + timeStamp: int; /** * An abstract method of the parent class whose implementation depends on the child classes. @@ -2470,52 +2544,57 @@ declare namespace radio { /** * Indicates the base station Id. * - * @type { number } + * @type { int } * @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 */ - baseId: number; + baseId: int; /** * Indicates the latitude. * - * @type { number } + * @type { int } * @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 */ - latitude: number; + latitude: int; /** * Indicates the longitude. * - * @type { number } + * @type { int } * @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 */ - longitude: number; + longitude: int; /** * Indicates the network identification code. * - * @type { number } + * @type { int } * @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 */ - nid: number; + nid: int; /** * Indicates the system identification code. * - * @type { number } + * @type { int } * @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 */ - sid: number; + sid: int; } /** @@ -2530,42 +2609,46 @@ declare namespace radio { /** * Indicates the location area code. * - * @type { number } + * @type { int } * @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 */ - lac: number; + lac: int; /** * Indicates the cell identification. * - * @type { number } + * @type { int } * @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 */ - cellId: number; + cellId: int; /** - * Indicates the ARFCN(absolute radio frequency channel number). + * Indicates the ARFCN(absolute radio frequency channel int). * - * @type { number } + * @type { int } * @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 */ - arfcn: number; + arfcn: int; /** * Indicates the base station identification code. * - * @type { number } + * @type { int } * @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 */ - bsic: number; + bsic: int; /** * Indicates the mobile country code. @@ -2600,52 +2683,57 @@ declare namespace radio { /** * Indicates the cell global identification. * - * @type { number } + * @type { long } * @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 */ - cgi: number; + cgi: long; /** * Indicates the physical cell identification. * - * @type { number } + * @type { int } * @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 */ - pci: number; + pci: int; /** * Indicates the tracking area code. * - * @type { number } + * @type { int } * @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 */ - tac: number; + tac: int; /** * Indicates the E-UTRA Absolute Radio Frequency Channel Number. * - * @type { number } + * @type { int } * @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 */ - earfcn: number; + earfcn: int; /** * Indicates the bandwidth. * - * @type { number } + * @type { int } * @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 */ - bandwidth: number; + bandwidth: int; /** * Indicates the mobile country code. @@ -2690,42 +2778,46 @@ declare namespace radio { /** * Indicates the NR-ARFCN(NR Absolute Radio Frequency Channel Number). * - * @type { number } + * @type { int } * @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 */ - nrArfcn: number; + nrArfcn: int; /** * Indicates the physical cell identification. * - * @type { number } + * @type { int } * @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 */ - pci: number; + pci: int; /** * Indicates the tracking area code. * - * @type { number } + * @type { int } * @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 */ - tac: number; + tac: int; /** * Indicates the 5G network cell ID. * - * @type { number } + * @type { int } * @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 */ - nci: number; + nci: int; /** * Indicates the mobile country code. @@ -2760,42 +2852,46 @@ declare namespace radio { /** * Indicates the location area code. * - * @type { number } + * @type { int } * @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 */ - lac: number; + lac: int; /** * Indicates the cell ID. * - * @type { number } + * @type { int } * @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 */ - cellId: number; + cellId: int; /** * Indicates the cell parameter ID. * - * @type { number } + * @type { int } * @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 */ - cpid: number; + cpid: int; /** * Indicates the absolute radio frequency number. * - * @type { number } + * @type { int } * @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 */ - uarfcn: number; + uarfcn: int; /** * Indicates the mobile country code. @@ -2830,42 +2926,46 @@ declare namespace radio { /** * Indicates the location area code. * - * @type { number } + * @type { int } * @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 */ - lac: number; + lac: int; /** * Indicates the cell ID. * - * @type { number } + * @type { int } * @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 */ - cellId: number; + cellId: int; /** * Indicates the primary scrambling code. * - * @type { number } + * @type { int } * @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 */ - psc: number; + psc: int; /** * Indicates the absolute radio frequency number. * - * @type { number } + * @type { int } * @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 */ - uarfcn: number; + uarfcn: int; /** * Indicates the mobile country code. @@ -2891,7 +2991,7 @@ declare namespace radio { /** * Obtains the option mode of NR. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. * @since 8 @@ -2907,7 +3007,7 @@ declare namespace radio { * @since 8 * @deprecated since 10 */ - NR_OPTION_UNKNOWN, + NR_OPTION_UNKNOWN = 0, /** * Indicates that the NR networking mode is NSA only. @@ -2917,7 +3017,7 @@ declare namespace radio { * @since 8 * @deprecated since 10 */ - NR_OPTION_NSA_ONLY, + NR_OPTION_NSA_ONLY = 1, /** * Indicates that the NR networking mode is SA only. @@ -2927,7 +3027,7 @@ declare namespace radio { * @since 8 * @deprecated since 10 */ - NR_OPTION_SA_ONLY, + NR_OPTION_SA_ONLY = 2, /** * Indicates that the NR networking mode is NSA and SA. @@ -2937,16 +3037,17 @@ declare namespace radio { * @since 8 * @deprecated since 10 */ - NR_OPTION_NSA_AND_SA, + NR_OPTION_NSA_AND_SA = 3 } /** * Obtains the option mode of NR. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ export enum NROptionMode { /** @@ -2956,7 +3057,7 @@ declare namespace radio { * @systemapi Hide this for inner system use. * @since 10 */ - NR_OPTION_UNKNOWN, + NR_OPTION_UNKNOWN = 0, /** * Indicates that the NR networking mode is NSA only. @@ -2965,7 +3066,7 @@ declare namespace radio { * @systemapi Hide this for inner system use. * @since 10 */ - NR_OPTION_NSA_ONLY, + NR_OPTION_NSA_ONLY = 1, /** * Indicates that the NR networking mode is SA only. @@ -2974,7 +3075,7 @@ declare namespace radio { * @systemapi Hide this for inner system use. * @since 10 */ - NR_OPTION_SA_ONLY, + NR_OPTION_SA_ONLY = 2, /** * Indicates that the NR networking mode is NSA and SA. @@ -2983,7 +3084,7 @@ declare namespace radio { * @systemapi Hide this for inner system use. * @since 10 */ - NR_OPTION_NSA_AND_SA, + NR_OPTION_NSA_AND_SA = 3 } /** @@ -3069,10 +3170,11 @@ declare namespace radio { /** * Obtains network information status. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 6 + * @since arkts{ '1.1':'6','1.2':'20'} + * @arkts 1.1&1.2 */ export enum NetworkInformationState { /** @@ -3082,7 +3184,7 @@ declare namespace radio { * @systemapi Hide this for inner system use. * @since 6 */ - NETWORK_UNKNOWN, + NETWORK_UNKNOWN = 0, /** * Indicates that the network is available for registration. @@ -3091,7 +3193,7 @@ declare namespace radio { * @systemapi Hide this for inner system use. * @since 6 */ - NETWORK_AVAILABLE, + NETWORK_AVAILABLE = 1, /** * Indicates that you have already registered with the network. @@ -3100,7 +3202,7 @@ declare namespace radio { * @systemapi Hide this for inner system use. * @since 6 */ - NETWORK_CURRENT, + NETWORK_CURRENT = 2, /** * Indicates that the network is unavailable for registration. @@ -3109,7 +3211,7 @@ declare namespace radio { * @systemapi Hide this for inner system use. * @since 6 */ - NETWORK_FORBIDDEN + NETWORK_FORBIDDEN = 3 } /** @@ -3125,12 +3227,13 @@ declare namespace radio { * 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 * @systemapi Hide this for inner system use. - * @since 6 + * @since arkts{ '1.1':'6','1.2':'20'} + * @arkts 1.1&1.2 */ - slotId: number; + slotId: int; /** * Indicates the network search mode of the SIM card. @@ -3166,9 +3269,10 @@ declare namespace radio { /** * Obtains the network selection mode. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Telephony.CoreService - * @since 6 + * @since arkts{ '1.1':'6','1.2':'20'} + * @arkts 1.1&1.2 */ export enum NetworkSelectionMode { /** @@ -3177,7 +3281,7 @@ declare namespace radio { * @syscap SystemCapability.Telephony.CoreService * @since 6 */ - NETWORK_SELECTION_UNKNOWN, + NETWORK_SELECTION_UNKNOWN = 0, /** * Indicates that the network is unavailable for registration. @@ -3185,7 +3289,7 @@ declare namespace radio { * @syscap SystemCapability.Telephony.CoreService * @since 6 */ - NETWORK_SELECTION_AUTOMATIC, + NETWORK_SELECTION_AUTOMATIC = 1, /** * Manual network selection modes. @@ -3193,16 +3297,17 @@ declare namespace radio { * @syscap SystemCapability.Telephony.CoreService * @since 6 */ - NETWORK_SELECTION_MANUAL + NETWORK_SELECTION_MANUAL = 2 } /** * Obtains IMS registration status. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9','1.2':'20'} + * @arkts 1.1&1.2 */ export enum ImsRegState { /** @@ -3212,7 +3317,7 @@ declare namespace radio { * @systemapi Hide this for inner system use. * @since 9 */ - IMS_UNREGISTERED, + IMS_UNREGISTERED = 0, /** * Indicates that the ims service has been registered. @@ -3221,16 +3326,17 @@ declare namespace radio { * @systemapi Hide this for inner system use. * @since 9 */ - IMS_REGISTERED, + IMS_REGISTERED = 1 } /** * Indicates IMS registration technology. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9','1.2':'20'} + * @arkts 1.1&1.2 */ export enum ImsRegTech { /** @@ -3240,7 +3346,7 @@ declare namespace radio { * @systemapi Hide this for inner system use. * @since 9 */ - REGISTRATION_TECH_NONE, + REGISTRATION_TECH_NONE = 0, /** * Indicates that ims registers LTE technology. @@ -3249,7 +3355,7 @@ declare namespace radio { * @systemapi Hide this for inner system use. * @since 9 */ - REGISTRATION_TECH_LTE, + REGISTRATION_TECH_LTE = 1, /** * Indicates that ims registers IWLAN technology. @@ -3258,7 +3364,7 @@ declare namespace radio { * @systemapi Hide this for inner system use. * @since 9 */ - REGISTRATION_TECH_IWLAN, + REGISTRATION_TECH_IWLAN = 2, /** * Indicates that ims registers NR technology. @@ -3267,7 +3373,7 @@ declare namespace radio { * @systemapi Hide this for inner system use. * @since 9 */ - REGISTRATION_TECH_NR, + REGISTRATION_TECH_NR = 3 } /** @@ -3303,10 +3409,11 @@ declare namespace radio { /** * Indicates the type of IMS service. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9','1.2':'20'} + * @arkts 1.1&1.2 */ export enum ImsServiceType { /** @@ -3316,7 +3423,7 @@ declare namespace radio { * @systemapi Hide this for inner system use. * @since 9 */ - TYPE_VOICE, + TYPE_VOICE = 0, /** * Indicates video service. @@ -3325,7 +3432,7 @@ declare namespace radio { * @systemapi Hide this for inner system use. * @since 9 */ - TYPE_VIDEO, + TYPE_VIDEO = 1, /** * Indicates UT service. @@ -3334,7 +3441,7 @@ declare namespace radio { * @systemapi Hide this for inner system use. * @since 9 */ - TYPE_UT, + TYPE_UT = 2, /** * Indicates SMS service. @@ -3343,16 +3450,17 @@ declare namespace radio { * @systemapi Hide this for inner system use. * @since 9 */ - TYPE_SMS, + TYPE_SMS = 3 } /** * Enum for network capability type. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ export enum NetworkCapabilityType { /** @@ -3362,7 +3470,7 @@ declare namespace radio { * @systemapi Hide this for inner system use. * @since 10 */ - SERVICE_TYPE_LTE, + SERVICE_TYPE_LTE = 0, /** * Indicates NR network switch type. @@ -3371,16 +3479,17 @@ declare namespace radio { * @systemapi Hide this for inner system use. * @since 10 */ - SERVICE_TYPE_NR, + SERVICE_TYPE_NR = 1 } /** * Enum for network capability state. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ export enum NetworkCapabilityState { /** @@ -3390,7 +3499,7 @@ declare namespace radio { * @systemapi Hide this for inner system use. * @since 10 */ - SERVICE_CAPABILITY_OFF, + SERVICE_CAPABILITY_OFF = 0, /** * Indicates turn on network switch. @@ -3399,8 +3508,8 @@ declare namespace radio { * @systemapi Hide this for inner system use. * @since 10 */ - SERVICE_CAPABILITY_ON, + SERVICE_CAPABILITY_ON = 1 } } -export default radio; +export default radio; \ No newline at end of file diff --git a/api/@ohos.telephony.sim.d.ts b/api/@ohos.telephony.sim.d.ts index 12f248cbc7..ebf9c7d0c0 100644 --- a/api/@ohos.telephony.sim.d.ts +++ b/api/@ohos.telephony.sim.d.ts @@ -32,66 +32,71 @@ 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. * - * @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 of hasOperatorPrivileges. * Returns {@code true} if your application has been granted the operator permissions; returns {@code false} otherwise. @@ -103,14 +108,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 hasOperatorPrivileges(slotId: number, callback: AsyncCallback): void; + function hasOperatorPrivileges(slotId: int, callback: AsyncCallback): void; /** * Checks whether your application (the caller) has been granted the operator permissions. * - * @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 your application has been granted the operator permissions; * returns {@code false} otherwise. If no SIM card is inserted or the SIM card is deactivated will be @@ -122,14 +128,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 hasOperatorPrivileges(slotId: number): Promise; + function hasOperatorPrivileges(slotId: int): Promise; /** * 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 +148,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,21 +168,23 @@ 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. * - * @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 { string } Returns the country code defined in ISO 3166-2; returns an empty string if no SIM card * is inserted. * @syscap SystemCapability.Telephony.CoreService - * @since 10 + * @since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function getISOCountryCodeForSimSync(slotId: number): string; + function getISOCountryCodeForSimSync(slotId: int): string; /** * Obtains the home PLMN number of the SIM card in a specified slot. @@ -182,7 +192,7 @@ declare namespace sim { *

The value is recorded in the SIM card and is irrelevant to the network * with which the SIM card is currently registered. * - * @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 PLMN number; * returns an empty string if no SIM card is inserted. @@ -194,9 +204,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 getSimOperatorNumeric(slotId: number, callback: AsyncCallback): void; + function getSimOperatorNumeric(slotId: int, callback: AsyncCallback): void; /** * Obtains the home PLMN number of the SIM card in a specified slot. @@ -204,7 +215,7 @@ declare namespace sim { *

The value is recorded in the SIM card and is irrelevant to the network * with which the SIM card is currently registered. * - * @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 PLMN number; returns an empty string if no SIM card is inserted. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. @@ -215,9 +226,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 getSimOperatorNumeric(slotId: number): Promise; + function getSimOperatorNumeric(slotId: int): Promise; /** * Obtains the home PLMN number of the SIM card in a specified slot. @@ -225,13 +237,14 @@ declare namespace sim { *

The value is recorded in the SIM card and is irrelevant to the network * with which the SIM card is currently registered. * - * @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 { string } Returns the PLMN number; returns an empty string if no SIM card is inserted. * @syscap SystemCapability.Telephony.CoreService - * @since 10 + * @since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function getSimOperatorNumericSync(slotId: number): string; + function getSimOperatorNumericSync(slotId: int): string; /** * Obtains the service provider name (SPN) of the SIM card in a specified slot. @@ -239,7 +252,7 @@ declare namespace sim { *

The value is recorded in the EFSPN file of the SIM card and is irrelevant to the network * with which the SIM card is currently registered. * - * @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 SPN; * returns an empty string if no SIM card is inserted or no EFSPN file in the SIM card. @@ -251,9 +264,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 getSimSpn(slotId: number, callback: AsyncCallback): void; + function getSimSpn(slotId: int, callback: AsyncCallback): void; /** * Obtains the service provider name (SPN) of the SIM card in a specified slot. @@ -261,7 +275,7 @@ declare namespace sim { *

The value is recorded in the EFSPN file of the SIM card and is irrelevant to the network * with which the SIM card is currently registered. * - * @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 SPN; returns an empty string if no SIM card is inserted or * no EFSPN file in the SIM card. @@ -273,9 +287,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 getSimSpn(slotId: number): Promise; + function getSimSpn(slotId: int): Promise; /** * Obtains the service provider name (SPN) of the SIM card in a specified slot. @@ -283,19 +298,20 @@ declare namespace sim { *

The value is recorded in the EFSPN file of the SIM card and is irrelevant to the network * with which the SIM card is currently registered. * - * @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 { string } Returns the SPN; returns an empty string if no EFSPN file is configured for the SIM card. * in the SIM card. * @syscap SystemCapability.Telephony.CoreService - * @since 10 + * @since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function getSimSpnSync(slotId: number): string; + function getSimSpnSync(slotId: int): string; /** * 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 +329,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 +355,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,14 +375,15 @@ 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. * - * @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 the SIM card type. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. @@ -375,14 +394,15 @@ declare namespace sim { * @throws { BusinessError } 8300004 - No SIM card found. * @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 getCardType(slotId: number, callback: AsyncCallback): void; + function getCardType(slotId: int, callback: AsyncCallback): void; /** * Obtains the type of the SIM card installed 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 the SIM card type. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. @@ -393,20 +413,22 @@ declare namespace sim { * @throws { BusinessError } 8300004 - No SIM card found. * @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 getCardType(slotId: number): Promise; + function getCardType(slotId: int): Promise; /** * Obtains the type of the SIM card 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 slots supported by the device. * @returns { CardType } Returns the SIM card type. * @syscap SystemCapability.Telephony.CoreService - * @since 10 + * @since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function getCardTypeSync(slotId: number): CardType; + function getCardTypeSync(slotId: int): CardType; /** * Obtains the ICCID of the SIM card in a specified slot. @@ -415,7 +437,7 @@ declare namespace sim { * and is recorded in the EFICCID file of the 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 the ICCID; * returns an empty string if no SIM card is inserted. @@ -430,9 +452,10 @@ declare namespace sim { * @throws { BusinessError } 8300999 - Unknown error. * @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 getSimIccId(slotId: number, callback: AsyncCallback): void; + function getSimIccId(slotId: int, callback: AsyncCallback): void; /** * Obtains the ICCID of the SIM card in a specified slot. @@ -441,7 +464,7 @@ declare namespace sim { * and is recorded in the EFICCID file of the 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 the ICCID; returns an empty string if no SIM card is inserted. * @throws { BusinessError } 201 - Permission denied. @@ -455,15 +478,16 @@ declare namespace sim { * @throws { BusinessError } 8300999 - Unknown error. * @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 getSimIccId(slotId: number): Promise; + function getSimIccId(slotId: int): Promise; /** * Obtains the alpha identifier of the voice mailbox 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 {@code 0} to the maximum card slot index number supported by the device. * @param { AsyncCallback } callback - Indicates the callback for getting the voice mailbox alpha identifier; * returns an empty string if no voice mailbox alpha identifier is written into the SIM card. @@ -478,15 +502,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 getVoiceMailIdentifier(slotId: number, callback: AsyncCallback): void; + function getVoiceMailIdentifier(slotId: int, callback: AsyncCallback): void; /** * Obtains the alpha identifier of the voice mailbox 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 {@code 0} to the maximum card slot index number supported by the device. * @returns { Promise } Returns the voice mailbox alpha identifier; * returns an empty string if no voice mailbox alpha identifier is written into the SIM card. @@ -501,15 +526,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 getVoiceMailIdentifier(slotId: number): Promise; + function getVoiceMailIdentifier(slotId: int): Promise; /** * Obtains the voice mailbox number 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 {@code 0} to the maximum card slot index number supported by the device. * @param { AsyncCallback } callback - Indicates the callback for getting the voice mailbox number; * returns an empty string if no voice mailbox number is written into the SIM card. @@ -524,15 +550,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 getVoiceMailNumber(slotId: number, callback: AsyncCallback): void; + function getVoiceMailNumber(slotId: int, callback: AsyncCallback): void; /** * Obtains the voice mailbox number 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 {@code 0} to the maximum card slot index number supported by the device. * @returns { Promise } Returns the voice mailbox number. * returns an empty string if no voice mailbox number is written into the SIM card. @@ -547,15 +574,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 getVoiceMailNumber(slotId: number): Promise; + function getVoiceMailNumber(slotId: int): Promise; /** * Sets the voice mail information. * * @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 {@code 0} to the maximum card slot index number supported by the device. * @param { string } mailName - Indicates the name of voice mail. * @param { string } mailNumber - Indicates the number of voice mail. @@ -572,15 +600,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 setVoiceMailInfo(slotId: number, mailName: string, mailNumber: string, callback: AsyncCallback): void; + function setVoiceMailInfo(slotId: int, mailName: string, mailNumber: string, callback: AsyncCallback): void; /** * Sets the voice mail information. * * @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 {@code 0} to the maximum card slot index number supported by the device. * @param { string } mailName - Indicates the name of voice mail. * @param { string } mailNumber - Indicates the number of voice mail. @@ -597,16 +626,17 @@ 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 setVoiceMailInfo(slotId: number, mailName: string, mailNumber: string): Promise; + function setVoiceMailInfo(slotId: int, mailName: string, mailNumber: string): Promise; /** * Obtains the MSISDN of the SIM card in a specified slot. * The MSISDN is recorded in the EFMSISDN file of the SIM card. * * @permission ohos.permission.GET_PHONE_NUMBERS - * @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 MSISDN; * Returns an empty string if no SIM card is inserted or @@ -622,16 +652,17 @@ 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 getSimTelephoneNumber(slotId: number, callback: AsyncCallback): void; + function getSimTelephoneNumber(slotId: int, callback: AsyncCallback): void; /** * Obtains the MSISDN of the SIM card in a specified slot. * The MSISDN is recorded in the EFMSISDN file of the SIM card. * * @permission ohos.permission.GET_PHONE_NUMBERS - * @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 MSISDN; returns an empty string if no SIM card is inserted or * no MSISDN is recorded in the EFMSISDN file. @@ -646,16 +677,17 @@ 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 getSimTelephoneNumber(slotId: number): Promise; + function getSimTelephoneint(slotId: int): Promise; /** * Obtains the Group Identifier Level 1 (GID1) of the SIM card in a specified slot. * The GID1 is recorded in the EFGID1 file of the 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 the GID1; * Returns an empty string if no SIM card is inserted or no GID1 in the SIM card. @@ -670,16 +702,17 @@ declare namespace sim { * @throws { BusinessError } 8300999 - Unknown error. * @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 getSimGid1(slotId: number, callback: AsyncCallback): void; + function getSimGid1(slotId: int, callback: AsyncCallback): void; /** * Obtains the Group Identifier Level 1 (GID1) of the SIM card in a specified slot. * The GID1 is recorded in the EFGID1 file of the 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 the GID1; returns an empty string if no SIM card is inserted or * no GID1 in the SIM card. @@ -694,25 +727,27 @@ declare namespace sim { * @throws { BusinessError } 8300999 - Unknown error. * @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 getSimGid1(slotId: number): Promise; + function getSimGid1(slotId: int): Promise; /** * 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. * * @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 international mobile subscriber ID. @@ -727,15 +762,16 @@ declare namespace sim { * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 6 + * @since arkts{ '1.1':'6','1.2':'20'} + * @arkts 1.1&1.2 */ - function getIMSI(slotId: number, callback: AsyncCallback): void; + function getIMSI(slotId: int, callback: AsyncCallback): void; /** * Get the international mobile subscriber ID. * * @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 international mobile subscriber ID. * @throws { BusinessError } 201 - Permission denied. @@ -749,14 +785,15 @@ declare namespace sim { * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 6 + * @since arkts{ '1.1':'6','1.2':'20'} + * @arkts 1.1&1.2 */ - function getIMSI(slotId: number): Promise; + function getIMSI(slotId: int): Promise; /** * Indicates whether the SIM card in a specified slot is a specified operator. * - * @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 { OperatorSimCard } operator - Indicates the operator of sim. * @returns { boolean } Returns {@code true} if the SIM card is specified operator; return {@code false} otherwise. @@ -770,14 +807,15 @@ declare namespace sim { * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 11 + * @since arkts{ '1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ - function isOperatorSimCard(slotId: number, operator: OperatorSimCard): boolean; + function isOperatorSimCard(slotId: int, operator: OperatorSimCard): boolean; /** * 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 +826,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,30 +844,33 @@ 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. * - * @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 a SIM card is inserted; return {@code false} otherwise. * @syscap SystemCapability.Telephony.CoreService - * @since 10 + * @since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function hasSimCardSync(slotId: number): boolean; + function hasSimCardSync(slotId: int): boolean; /** * 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 * if has no ohos.permission.GET_TELEPHONY_STATE. + * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * @throws { BusinessError } 8300001 - Invalid parameter value. @@ -838,18 +880,20 @@ 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. + * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. * @throws { BusinessError } 8300001 - Invalid parameter value. @@ -859,9 +903,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. @@ -901,7 +946,7 @@ declare namespace sim { * Set the card slot ID of the default voice service. * * @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 { AsyncCallback } callback - The callback of setDefaultVoiceSlotId. * @throws { BusinessError } 201 - Permission denied. @@ -916,15 +961,16 @@ declare namespace sim { * @throws { BusinessError } 8301001 - SIM card is not activated. * @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 setDefaultVoiceSlotId(slotId: number, callback: AsyncCallback): void; + function setDefaultVoiceSlotId(slotId: int, callback: AsyncCallback): void; /** * Set the card slot ID of the default voice service. * * @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. * @returns { Promise } The promise returned by the setVoiceMailInfo. * @throws { BusinessError } 201 - Permission denied. @@ -939,15 +985,16 @@ declare namespace sim { * @throws { BusinessError } 8301001 - SIM card is not activated. * @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 setDefaultVoiceSlotId(slotId: number): Promise; + function setDefaultVoiceSlotId(slotId: int): Promise; /** * Activate the SIM card in the specified 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 { AsyncCallback } callback - The callback of activateSim. * @throws { BusinessError } 201 - Permission denied. @@ -961,15 +1008,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 activateSim(slotId: number, callback: AsyncCallback): void; + function activateSim(slotId: int, callback: AsyncCallback): void; /** * Activate the SIM card in the specified 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. * @returns { Promise } The promise returned by the activateSim. * @throws { BusinessError } 201 - Permission denied. @@ -983,15 +1031,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 activateSim(slotId: number): Promise; + function activateSim(slotId: int): Promise; /** * Disable SIM card in specified 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 { AsyncCallback } callback - The callback of deactivateSim. * @throws { BusinessError } 201 - Permission denied. @@ -1005,15 +1054,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 deactivateSim(slotId: number, callback: AsyncCallback): void; + function deactivateSim(slotId: int, callback: AsyncCallback): void; /** * Disable SIM card in specified 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. * @returns { Promise } The promise returned by the deactivateSim. * @throws { BusinessError } 201 - Permission denied. @@ -1027,15 +1077,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 deactivateSim(slotId: number): Promise; + function deactivateSim(slotId: int): Promise; /** * Set the SIM card display name 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 } name - Indicates SIM card name. * @param { AsyncCallback } callback - The callback of setShowName. @@ -1050,15 +1101,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 setShowName(slotId: number, name: string, callback: AsyncCallback): void; + function setShowName(slotId: int, name: string, callback: AsyncCallback): void; /** * Set the SIM card display name 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 } name - Indicates SIM card name. * @returns { Promise } The promise returned by the setShowName. @@ -1073,15 +1125,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 setShowName(slotId: number, name: string): Promise; + function setShowName(slotId: int, name: string): Promise; /** * Gets the name 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 { AsyncCallback } callback - Indicates the callback for getting the SIM card name. * @throws { BusinessError } 201 - Permission denied. @@ -1095,15 +1148,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 getShowName(slotId: number, callback: AsyncCallback): void; + function getShowName(slotId: int, callback: AsyncCallback): void; /** * Gets the name 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. * @returns { Promise } Returns the SIM card name. * @throws { BusinessError } 201 - Permission denied. @@ -1117,15 +1171,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 getShowName(slotId: number): Promise; + function getShowName(slotId: int): Promise; /** * Set the SIM card number in the specified 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 } number - Indicates SIM card number. * @param { AsyncCallback } callback - The callback of setShowNumber. @@ -1140,15 +1195,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 setShowNumber(slotId: number, number: string, callback: AsyncCallback): void; + function setShowNumber(slotId: int, number: string, callback: AsyncCallback): void; /** * Set the SIM card number in the specified 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 } number - Indicates SIM card number. * @returns { Promise } The promise returned by the setShowNumber. @@ -1163,15 +1219,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 setShowNumber(slotId: number, number: string): Promise; + function setShowNumber(slotId: int, number: string): Promise; /** * Get the SIM card number of the specified card 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 SIM card number. * @throws { BusinessError } 201 - Permission denied. @@ -1185,15 +1242,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 getShowNumber(slotId: number, callback: AsyncCallback): void; + function getShowNumber(slotId: int, callback: AsyncCallback): void; /** * Get the SIM card number of the specified card 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 SIM card number. * @throws { BusinessError } 201 - Permission denied. @@ -1207,15 +1265,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 getShowNumber(slotId: number): Promise; + function getShowNumber(slotId: int): Promise; /** * 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 +1289,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 +1312,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 +1338,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 +1364,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 +1391,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,15 +1418,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): Promise; + function unlockPuk(slotId: int, newPin: string, puk: string): Promise; /** * Change Pin Password. * * @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 a new password. * @param { string } oldPin - Indicates old password. @@ -1380,15 +1445,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 alterPin(slotId: number, newPin: string, oldPin: string, callback: AsyncCallback): void; + function alterPin(slotId: int, newPin: string, oldPin: string, callback: AsyncCallback): void; /** * Change Pin Password. * * @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 a new password. * @param { string } oldPin - Indicates old password. @@ -1406,15 +1472,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 alterPin(slotId: number, newPin: string, oldPin: string): Promise; + function alterPin(slotId: int, newPin: string, oldPin: string): Promise; /** * Set the lock status of the SIM card in the specified 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 { LockInfo } options - Indicates lock information. * @param { AsyncCallback } callback - Indicates the callback for getting @@ -1431,15 +1498,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 setLockState(slotId: number, options: LockInfo, callback: AsyncCallback): void; + function setLockState(slotId: int, options: LockInfo, callback: AsyncCallback): void; /** * Set the lock status of the SIM card in the specified 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 { LockInfo } options - Indicates lock information. * @returns { Promise } Returns the response to obtain @@ -1456,15 +1524,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 setLockState(slotId: number, options: LockInfo): Promise; + function setLockState(slotId: int, options: LockInfo): 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 } pin2 - Indicates the password of the SIM card. * @param { AsyncCallback } callback - Indicates the callback for getting @@ -1481,15 +1550,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 unlockPin2(slotId: number, pin2: string, callback: AsyncCallback): void; + function unlockPin2(slotId: int, pin2: 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 } pin2 - Indicates the password of the SIM card. * @returns { Promise } Returns the response to obtain @@ -1506,15 +1576,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 unlockPin2(slotId: number, pin2: string): Promise; + function unlockPin2(slotId: int, pin2: 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 } newPin2 - Indicates to reset the SIM card password. * @param { string } puk2 - Indicates the unlock password of the SIM card password. @@ -1532,15 +1603,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 unlockPuk2(slotId: number, newPin2: string, puk2: string, callback: AsyncCallback): void; + function unlockPuk2(slotId: int, newPin2: string, puk2: 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 } newPin2 - Indicates to reset the SIM card password. * @param { string } puk2 - Indicates the unlock password of the SIM card password. @@ -1558,15 +1630,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 unlockPuk2(slotId: number, newPin2: string, puk2: string): Promise; + function unlockPuk2(slotId: int, newPin2: string, puk2: string): Promise; /** * Change Pin2 password. * * @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 } newPin2 - Indicates a new password. * @param { string } oldPin2 - Indicates old password. @@ -1584,15 +1657,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 alterPin2(slotId: number, newPin2: string, oldPin2: string, callback: AsyncCallback): void; + function alterPin2(slotId: int, newPin2: string, oldPin2: string, callback: AsyncCallback): void; /** * Change Pin2 password. * * @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 } newPin2 - Indicates a new password. * @param { string } oldPin2 - Indicates old password. @@ -1610,15 +1684,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 alterPin2(slotId: number, newPin2: string, oldPin2: string): Promise; + function alterPin2(slotId: int, newPin2: string, oldPin2: string): Promise; /** * Query dialing number information on SIM card. * * @permission ohos.permission.READ_CONTACTS - * @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 { ContactType } type - Indicates contact type. * @param { AsyncCallback> } callback - Indicates the callback for @@ -1635,15 +1710,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 queryIccDiallingNumbers(slotId: number, type: ContactType, callback: AsyncCallback>): void; + function queryIccDiallingNumbers(slotId: int, type: ContactType, callback: AsyncCallback>): void; /** * Query dialing number information on SIM card. * * @permission ohos.permission.READ_CONTACTS - * @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 { ContactType } type - Indicates contact type. * @returns { Promise> } Returns the dialing number information. @@ -1659,15 +1735,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 queryIccDiallingNumbers(slotId: number, type: ContactType): Promise>; + function queryIccDiallingNumbers(slotId: int, type: ContactType): Promise>; /** * Add dialing number information to SIM card. * * @permission ohos.permission.WRITE_CONTACTS - * @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 { ContactType } type - Indicates contact type. * @param { DiallingNumbersInfo } diallingNumbers - Indicates dialing number information. @@ -1684,15 +1761,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 addIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo, callback: AsyncCallback): void; + function addIccDiallingNumbers(slotId: int, type: ContactType, diallingNumbers: DiallingNumbersInfo, callback: AsyncCallback): void; /** * Add dialing number information to SIM card. * * @permission ohos.permission.WRITE_CONTACTS - * @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 { ContactType } type - Indicates contact type. * @param { DiallingNumbersInfo } diallingNumbers - Indicates dialing number information. @@ -1709,15 +1787,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 addIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo): Promise; + function addIccDiallingNumbers(slotId: int, type: ContactType, diallingNumbers: DiallingNumbersInfo): Promise; /** * Delete dialing number information on SIM card. * * @permission ohos.permission.WRITE_CONTACTS - * @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 { ContactType } type - Indicates contact type. * @param { DiallingNumbersInfo } diallingNumbers - Indicates dialing number information. @@ -1734,15 +1813,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 delIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo, callback: AsyncCallback): void; + function delIccDiallingNumbers(slotId: int, type: ContactType, diallingNumbers: DiallingNumbersInfo, callback: AsyncCallback): void; /** * Delete dialing number information on SIM card. * * @permission ohos.permission.WRITE_CONTACTS - * @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 { ContactType } type - Indicates contact type. * @param { DiallingNumbersInfo } diallingNumbers - Indicates dialing number information. @@ -1759,15 +1839,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 delIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo): Promise; + function delIccDiallingNumbers(slotId: int, type: ContactType, diallingNumbers: DiallingNumbersInfo): Promise; /** * Update dialing number information on SIM card. * * @permission ohos.permission.WRITE_CONTACTS - * @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 { ContactType } type - Indicates contact type. * @param { DiallingNumbersInfo } diallingNumbers - Indicates dialing number information. @@ -1784,15 +1865,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 updateIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo, callback: AsyncCallback): void; + function updateIccDiallingNumbers(slotId: int, type: ContactType, diallingNumbers: DiallingNumbersInfo, callback: AsyncCallback): void; /** * Update dialing number information on SIM card. * * @permission ohos.permission.WRITE_CONTACTS - * @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 { ContactType } type - Indicates contact type. * @param { DiallingNumbersInfo } diallingNumbers - Indicates dialing number information. @@ -1809,15 +1891,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 updateIccDiallingNumbers(slotId: number, type: ContactType, diallingNumbers: DiallingNumbersInfo): Promise; + function updateIccDiallingNumbers(slotId: int, type: ContactType, diallingNumbers: DiallingNumbersInfo): Promise; /** * 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 +1916,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,15 +1941,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): Promise; + function getLockState(slotId: int, lockType: LockType): Promise; /** * Send envelope command to SIM card. * * @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 } cmd - Indicates sending command. * @param { AsyncCallback } callback - The callback of sendEnvelopeCmd. @@ -1880,15 +1965,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 sendEnvelopeCmd(slotId: number, cmd: string, callback: AsyncCallback): void; + function sendEnvelopeCmd(slotId: int, cmd: string, callback: AsyncCallback): void; /** * Send envelope command to SIM card. * * @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 } cmd - Indicates sending command. * @returns { Promise } The promise returned by the sendEnvelopeCmd. @@ -1903,15 +1989,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 sendEnvelopeCmd(slotId: number, cmd: string): Promise; + function sendEnvelopeCmd(slotId: int, cmd: string): Promise; /** * Send terminal response command to SIM card. * * @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 } cmd - Indicates sending command. * @param { AsyncCallback } callback - The callback of sendTerminalResponseCmd. @@ -1926,15 +2013,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 sendTerminalResponseCmd(slotId: number, cmd: string, callback: AsyncCallback): void; + function sendTerminalResponseCmd(slotId: int, cmd: string, callback: AsyncCallback): void; /** * Send terminal response command to SIM card. * * @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 } cmd - Indicates sending command. * @returns { Promise } The promise returned by the sendTerminalResponseCmd. @@ -1949,16 +2037,17 @@ 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 sendTerminalResponseCmd(slotId: number, cmd: string): Promise; + function sendTerminalResponseCmd(slotId: int, cmd: string): Promise; /** * Unlock SIM card. * * @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 { PersoLockInfo } lockInfo - Indicates customized lock type information. * @param { AsyncCallback } callback - Indicates the callback used to obtain a response @@ -1975,15 +2064,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 unlockSimLock(slotId: number, lockInfo: PersoLockInfo, callback: AsyncCallback): void; + function unlockSimLock(slotId: int, lockInfo: PersoLockInfo, callback: AsyncCallback): void; /** * Unlock SIM card. * * @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 { PersoLockInfo } lockInfo - Indicates customized lock type information. * @returns { Promise } Returns the response to obtain @@ -2000,14 +2090,15 @@ 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 unlockSimLock(slotId: number, lockInfo: PersoLockInfo): Promise; + function unlockSimLock(slotId: int, lockInfo: PersoLockInfo): Promise; /** * Obtains the operator key 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 operator key; * Returns an empty string if no SIM card is inserted or no operator key matched. @@ -2019,14 +2110,15 @@ declare namespace sim { * @throws { BusinessError } 8300003 - System internal error. * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService - * @since 9 + * @since arkts{ '1.1':'9','1.2':'20'} + * @arkts 1.1&1.2 */ - function getOpKey(slotId: number, callback: AsyncCallback): void; + function getOpKey(slotId: int, callback: AsyncCallback): void; /** * Obtains the operator key 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 operator key; * Returns an empty string if no SIM card is inserted or no operator key matched. @@ -2038,26 +2130,28 @@ declare namespace sim { * @throws { BusinessError } 8300003 - System internal error. * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService - * @since 9 + * @since arkts{ '1.1':'9','1.2':'20'} + * @arkts 1.1&1.2 */ - function getOpKey(slotId: number): Promise; + function getOpKey(slotId: int): Promise; /** * Obtains the operator key 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 { string } Returns the operator key; returns an empty string if no SIM card is inserted or * no operator key is matched. * @syscap SystemCapability.Telephony.CoreService - * @since 10 + * @since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function getOpKeySync(slotId: number): string; + function getOpKeySync(slotId: int): string; /** * Obtains the operator name 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 operator name; * Returns an empty string if no SIM card is inserted or no operator name matched. @@ -2069,14 +2163,15 @@ declare namespace sim { * @throws { BusinessError } 8300003 - System internal error. * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService - * @since 9 + * @since arkts{ '1.1':'9','1.2':'20'} + * @arkts 1.1&1.2 */ - function getOpName(slotId: number, callback: AsyncCallback): void; + function getOpName(slotId: int, callback: AsyncCallback): void; /** * Obtains the operator name 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 operator name; returns an empty string if no SIM card is inserted or * no operator name matched. @@ -2088,26 +2183,28 @@ declare namespace sim { * @throws { BusinessError } 8300003 - System internal error. * @throws { BusinessError } 8300999 - Unknown error. * @syscap SystemCapability.Telephony.CoreService - * @since 9 + * @since arkts{ '1.1':'9','1.2':'20'} + * @arkts 1.1&1.2 */ - function getOpName(slotId: number): Promise; + function getOpName(slotId: int): Promise; /** * Obtains the operator name 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 { string } Returns the operator name; returns an empty string if no SIM card is inserted or * no operator name is matched. * @syscap SystemCapability.Telephony.CoreService - * @since 10 + * @since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function getOpNameSync(slotId: number): string; + function getOpNameSync(slotId: int): string; /** * Obtains the default SIM ID for the voice service. * - * @param { AsyncCallback } callback - Returns the SIM ID of the default voice sim + * @param { AsyncCallback } callback - Returns the SIM ID of the default voice sim * and SIM ID will increase from 1. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. * 2. Incorrect parameter types. @@ -2118,14 +2215,15 @@ declare namespace sim { * @throws { BusinessError } 8300999 - Unknown error. * @throws { BusinessError } 8301001 - SIM card is not activated. * @syscap SystemCapability.Telephony.CoreService - * @since 10 + * @since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function getDefaultVoiceSimId(callback: AsyncCallback): void; + function getDefaultVoiceSimId(callback: AsyncCallback): void; /** * Obtains the default SIM ID for the voice service. * - * @returns { Promise } Returns the SIM ID of the default voice sim + * @returns { Promise } Returns the SIM ID of the default voice sim * and SIM ID will increase from 1. * @throws { BusinessError } 8300001 - Invalid parameter value. * @throws { BusinessError } 8300002 - Service connection failed. @@ -2134,9 +2232,10 @@ declare namespace sim { * @throws { BusinessError } 8300999 - Unknown error. * @throws { BusinessError } 8301001 - SIM card is not activated. * @syscap SystemCapability.Telephony.CoreService - * @since 10 + * @since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function getDefaultVoiceSimId(): Promise; + function getDefaultVoiceSimId(): Promise; /** * Obtains the value of dsds mode. @@ -2194,7 +2293,7 @@ declare namespace sim { * Performs SIM card authentication. * * @permission ohos.permission.GET_TELEPHONY_STATE - * @param { number } slotId - Sim slot id. + * @param { int } slotId - Sim slot id. * @param { AuthType } authType - The authentication type. * @param { string } authData - Ser password or other authentication information. * @returns { Promise } A string the response of authentication.This value will be null in @@ -2211,11 +2310,12 @@ declare namespace sim { * @throws { BusinessError } 8300004 - No SIM card. * @throws { BusinessError } 8300999 - Unknown error. * @throws { BusinessError } 8301002 - An error occurred when operating the SIM card. - * @syscap SystemCapability.Telephony.CoreService. + * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 14 + * @since arkts{ '1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ - function getSimAuthentication(slotId: number, authType: AuthType, authData: string): Promise; + function getSimAuthentication(slotId: int, authType: AuthType, authData: string): Promise; /** * Get the list of all SIM card account information. @@ -2259,7 +2359,7 @@ declare namespace sim { /** * Obtains the SIM card label. - * @param { number } slotId SIM card slot ID. + * @param { int } slotId SIM card slot ID. * @param { AsyncCallback } callback Callback used to return the SIM card label. * @throws { BusinessError } 8300001 - Invalid parameter value. * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. @@ -2269,37 +2369,23 @@ declare namespace sim { * @since 20 * @arkts 1.1&1.2 */ - function getSimLabel(slotId: number, callback: AsyncCallback): void; - - /** - * Obtains the SIM card label. - * @param { number } slotId SIM card slot ID. - * @returns { Promise } Promise used to return the SIM card label. - * @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.CoreService - * @since 20 - * @arkts 1.1&1.2 - */ - function getSimLabel(slotId: number): Promise; + function getSimLabel(slotId: int, callback: AsyncCallback): void; /** * Obtains the SIM card label synchronously. - * @param { number } slotId SIM card slot ID, which ranges from 0 to the maximum number of slots supported - * by the device. + * @param { int } slotId SIM card slot ID, which ranges from 0 to the maximum number of slots supported + * by the device. * @returns { SimLabel } SIM card label. * @syscap SystemCapability.Telephony.CoreService * @since 20 * @arkts 1.1&1.2 */ - function getSimLabelSync(slotId: number): SimLabel; + function getSimLabelSync(slotId: int): SimLabel; /** * Indicates the SIM card type. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Telephony.CoreService * @since 20 * @arkts 1.1&1.2 @@ -2340,15 +2426,6 @@ declare namespace sim { * @arkts 1.1&1.2 */ simType: SimType; - - /** - * Represents the SIM card index. - * @type { number } - * @syscap SystemCapability.Telephony.CoreService - * @since 20 - * @arkts 1.1&1.2 - */ - index: number; } /** @@ -2392,21 +2469,23 @@ declare namespace sim { /** * 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. @@ -2466,22 +2545,24 @@ declare namespace sim { /** * 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; } /** @@ -2516,12 +2597,13 @@ declare namespace sim { /** * Indicates the record number. * - * @type { ?number } + * @type { ?int } * @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 */ - recordNumber?: number; + recordNumber?: int; /** * Indicates the PIN 2. @@ -2607,10 +2689,11 @@ declare namespace sim { /** * Indicates the lock types. * - * @enum { number } + * @enum { int } * @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 { /** @@ -2635,9 +2718,10 @@ declare namespace sim { /** * Indicates the SIM card types. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Telephony.CoreService - * @since 7 + * @since arkts{ '1.1':'7','1.2':'20'} + * @arkts 1.1&1.2 */ export enum CardType { /** @@ -2723,9 +2807,10 @@ declare namespace sim { /** * Indicates the SIM card states. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Telephony.CoreService - * @since 6 + * @since arkts{ '1.1':'6','1.2':'20'} + * @arkts 1.1&1.2 */ export enum SimState { /** @@ -2787,10 +2872,11 @@ declare namespace sim { /** * Indicates the lock states. * - * @enum { number } + * @enum { int } * @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 { /** @@ -2815,10 +2901,11 @@ declare namespace sim { /** * Indicates the contact types. * - * @enum { number } + * @enum { int } * @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 ContactType { /** @@ -2843,10 +2930,11 @@ declare namespace sim { /** * Indicates the personalized lock types. * - * @enum { number } + * @enum { int } * @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 PersoLockType { /** @@ -3135,10 +3223,11 @@ declare namespace sim { /** * Indicates the Dsds Mode. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 11 + * @since arkts{ '1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ export enum DsdsMode { /** @@ -3200,10 +3289,11 @@ declare namespace sim { /** * Indicates the Authentication type * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 14 + * @since arkts{ '1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ export enum AuthType { /** @@ -3236,22 +3326,24 @@ declare namespace sim { /** * Status word 1 of the SIM card, which is returned by the SIM card after command execution. * - * @type { number } + * @type { int } * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 14 + * @since arkts{ '1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ - simStatusWord1: number; + simStatusWord1: int; /** * Status word 2 of the SIM card, which is returned by the SIM card after command execution. * - * @type { number } + * @type { int } * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. - * @since 14 + * @since arkts{ '1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ - simStatusWord2: number; + simStatusWord2: int; /** * Indicates the response of authentication. -- Gitee