From a5770b622fa61e2a65e92ab010545398b7e05599 Mon Sep 17 00:00:00 2001 From: liuxy0216 <1952288230@qq.com> Date: Fri, 25 Nov 2022 17:22:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E6=94=B9dts=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liuxy0216 <1952288230@qq.com> --- api/@ohos.telephony.call.d.ts | 8 ++++---- api/@ohos.telephony.data.d.ts | 2 +- api/@ohos.telephony.observer.d.ts | 6 +++--- api/@ohos.telephony.radio.d.ts | 13 +++++++------ api/@ohos.telephony.sim.d.ts | 20 ++++++++++---------- api/@ohos.telephony.sms.d.ts | 2 +- 6 files changed, 26 insertions(+), 25 deletions(-) diff --git a/api/@ohos.telephony.call.d.ts b/api/@ohos.telephony.call.d.ts index 4a5bb01d2f..03580a97a4 100644 --- a/api/@ohos.telephony.call.d.ts +++ b/api/@ohos.telephony.call.d.ts @@ -151,7 +151,7 @@ declare namespace call { function answer(callback: AsyncCallback): void; /** - * Hangups the foreground call. + * Hang up the foreground call. * * @param callId Indicates the identifier of the call to hangup. * @permission ohos.permission.ANSWER_CALL @@ -162,7 +162,7 @@ declare namespace call { function hangup(callId?: number): Promise; /** - * Hangups the foreground call without callId. + * Hang up the foreground call without callId. * * @systemapi Hide this for inner system use. * @since 9 @@ -170,7 +170,7 @@ declare namespace call { function hangup(callback: AsyncCallback): void; /** - * Rejects the incoming call. + * Reject the incoming call. * * @param callId Indicates the identifier of the call to reject. * @param options Indicates the text message to reject. @@ -183,7 +183,7 @@ declare namespace call { function reject(callId?: number, options?: RejectMessageOptions): Promise; /** - * Rejects the incoming call without callId. + * Reject the incoming call without callId. * * @param options Indicates the text message to reject. * @permission ohos.permission.ANSWER_CALL diff --git a/api/@ohos.telephony.data.d.ts b/api/@ohos.telephony.data.d.ts index a562d69080..78a8c384ec 100644 --- a/api/@ohos.telephony.data.d.ts +++ b/api/@ohos.telephony.data.d.ts @@ -93,7 +93,7 @@ declare namespace data { function enableCellularData(): Promise; /** - * Diables cellular data services. + * Disables cellular data services. * * @permission ohos.permission.SET_TELEPHONY_STATE * @systemapi Hide this for inner system use. diff --git a/api/@ohos.telephony.observer.d.ts b/api/@ohos.telephony.observer.d.ts index 7e0ac5b3e9..a9ab12bdd9 100644 --- a/api/@ohos.telephony.observer.d.ts +++ b/api/@ohos.telephony.observer.d.ts @@ -185,13 +185,13 @@ declare namespace observer { SIM_PUK, SIM_PN_PIN, //Network Personalization (refer 3GPP TS 22.022 [33]) SIM_PN_PUK, - SIM_PU_PIN, //network sUbset Personalization (refer 3GPP TS 22.022 [33]) + SIM_PU_PIN, //Network Subset Personalization (refer 3GPP TS 22.022 [33]) SIM_PU_PUK, - SIM_PP_PIN, //service Provider Personalization (refer 3GPP TS 22.022 [33]) + SIM_PP_PIN, //Service Provider Personalization (refer 3GPP TS 22.022 [33]) SIM_PP_PUK, SIM_PC_PIN, //Corporate Personalization (refer 3GPP TS 22.022 [33]) SIM_PC_PUK, - SIM_SIM_PIN, //SIM/USIM personalisation (refer 3GPP TS 22.022 [33]) + SIM_SIM_PIN, //SIM/USIM Personalization (refer 3GPP TS 22.022 [33]) SIM_SIM_PUK, } } diff --git a/api/@ohos.telephony.radio.d.ts b/api/@ohos.telephony.radio.d.ts index e5cc3b93fc..84fec934ce 100644 --- a/api/@ohos.telephony.radio.d.ts +++ b/api/@ohos.telephony.radio.d.ts @@ -65,7 +65,7 @@ declare namespace radio { function getNetworkState(slotId?: number): Promise; /** - * Proactively requests to update location information. + * Actively requests to update location information. * * @permission ohos.permission.LOCATION * @param { number } [ slotId ] - indicates the card slot index number. @@ -77,7 +77,7 @@ declare namespace radio { function sendUpdateCellLocationRequest(slotId: number, callback: AsyncCallback): void; /** - * Proactively requests to update location information. + * Actively requests to update location information. * * @permission ohos.permission.LOCATION * @param { number } [ slotId ] - indicates the card slot index number. @@ -224,8 +224,9 @@ declare namespace radio { * Checks whether the device supports 5G New Radio (NR). * * @return Returns {@code true} if the device supports 5G NR; returns {@code false} otherwise. - * @deprecated Advised to use isNrSupported(slotId: number) instead. * @since 7 + * @deprecated since 8 + * @useinstead telephony.Radio#isNrSupported */ function isNrSupported(): boolean; @@ -300,7 +301,7 @@ declare namespace radio { function getPreferredNetwork(slotId: number): Promise; /** - * Get the IMS registration state info of specificed IMS service type. + * Get the IMS registration state info of specified IMS service type. * * @param slotId Indicates the card slot index number, * ranging from 0 to the maximum card slot index number supported by the device. @@ -321,7 +322,7 @@ declare namespace radio { function getImsRegInfo(slotId: number, imsType: ImsServiceType): Promise; /** - * Called when the IMS registration state of specificed IMS service type corresponding + * Called when the IMS registration state of specified IMS service type corresponding * to a monitored {@code slotId} updates. * * @param slotId Indicates the card slot index number, @@ -461,7 +462,7 @@ declare namespace radio { RADIO_TECHNOLOGY_LTE_CA = 10, /** - * Indicates that RAT is interworking WLAN (I-WLAN). + * Indicates that RAT is networking WLAN (I-WLAN). */ RADIO_TECHNOLOGY_IWLAN = 11, diff --git a/api/@ohos.telephony.sim.d.ts b/api/@ohos.telephony.sim.d.ts index 0b269cb7ea..361954463f 100644 --- a/api/@ohos.telephony.sim.d.ts +++ b/api/@ohos.telephony.sim.d.ts @@ -431,7 +431,7 @@ declare namespace sim { function unlockSimLock(slotId: number, lockInfo: PersoLockInfo): Promise; /** - * Obtains the opkey of the SIM card in a specified slot. + * Obtains the operator key of the SIM card in a specified slot. * * @param slotId Indicates the card slot index number, * ranging from 0 to the maximum card slot index number supported by the device. @@ -443,15 +443,15 @@ declare namespace sim { * @throws {BusinessError} 8300003 - System internal error. * @throws {BusinessError} 8300004 - Do not have sim card. * @throws {BusinessError} 8300999 - Unknown error code. - * @return Returns the opkey; returns an empty string if no SIM card is inserted or - * no opkey matched. + * @return Returns the operator key; returns an empty string if no SIM card is inserted or + * no operator key matched. * @since 9 */ function getOpKey(slotId: number, callback: AsyncCallback): void; function getOpKey(slotId: number): Promise; /** - * Obtains the opname of the SIM card in a specified slot. + * Obtains the operator name of the SIM card in a specified slot. * * @param slotId Indicates the card slot index number, * ranging from 0 to the maximum card slot index number supported by the device. @@ -463,8 +463,8 @@ declare namespace sim { * @throws {BusinessError} 8300003 - System internal error. * @throws {BusinessError} 8300004 - Do not have sim card. * @throws {BusinessError} 8300999 - Unknown error code. - * @return Returns the opname; returns an empty string if no SIM card is inserted or - * no opname matched. + * @return Returns the operator name; returns an empty string if no SIM card is inserted or + * no operator name matched. * @since 9 */ function getOpName(slotId: number, callback: AsyncCallback): void; @@ -572,7 +572,7 @@ declare namespace sim { * @since 7 */ export enum CardType { - /** Icc card type: Unknow type Card. */ + /** Icc card type: unknown type Card. */ UNKNOWN_CARD = -1, /** Icc card type: Single sim card type. */ @@ -671,13 +671,13 @@ declare namespace sim { export enum PersoLockType { PN_PIN_LOCK, //Network Personalization (refer 3GPP TS 22.022 [33]) PN_PUK_LOCK, - PU_PIN_LOCK, //network sUbset Personalization (refer 3GPP TS 22.022 [33]) + PU_PIN_LOCK, //Network Subset Personalization (refer 3GPP TS 22.022 [33]) PU_PUK_LOCK, - PP_PIN_LOCK, //service Provider Personalization (refer 3GPP TS 22.022 [33]) + PP_PIN_LOCK, //Service Provider Personalization (refer 3GPP TS 22.022 [33]) PP_PUK_LOCK, PC_PIN_LOCK, //Corporate Personalization (refer 3GPP TS 22.022 [33]) PC_PUK_LOCK, - SIM_PIN_LOCK, //SIM/USIM personalisation (refer 3GPP TS 22.022 [33]) + SIM_PIN_LOCK, //SIM/USIM Personalization (refer 3GPP TS 22.022 [33]) SIM_PUK_LOCK, } } diff --git a/api/@ohos.telephony.sms.d.ts b/api/@ohos.telephony.sms.d.ts index 42b9cf1263..7689970231 100644 --- a/api/@ohos.telephony.sms.d.ts +++ b/api/@ohos.telephony.sms.d.ts @@ -533,7 +533,7 @@ declare namespace sms { SIM_MESSAGE_STATUS_UNREAD = 3, /** STO SENT stored sent message (only applicable to SMs) */ SIM_MESSAGE_STATUS_SENT = 5, - /** STO UNSENT stored unsent message (only applicable to SMs) */ + /** STO UNSENT stored unsent messages (only applicable to SMs) */ SIM_MESSAGE_STATUS_UNSENT = 7, } -- Gitee