diff --git a/api/@ohos.telephony.call.d.ts b/api/@ohos.telephony.call.d.ts index 4a5bb01d2ffee37e95c3edb7fc75d60a42e64c89..03580a97a4ca7c22cc2b0e3b8fabefddcdfc664c 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 a562d690804057646804409fa2c69881e6cd3176..78a8c384ec1d6bee2e0c5786a000efb6425463b9 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 7e0ac5b3e9b55d442749d0f41844b5f8d0dfbca3..a9ab12bdd9057ff230cb820e682b846b326f4522 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 e5cc3b93fc75eb797cc8f2f30b31b8a204422973..84fec934ce23d78b25602ae8d1c8abb46f58c872 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 0b269cb7ea9b20b97147d1b4647c38bf6611c96a..361954463f7298c40ce373c5ae11df257f89b4a4 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 42b9cf126368c27d4f6ef92ac55f071f02df169c..7689970231e0515b35e538ed613ba194c7f29e1d 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, }