161847f8eSopenharmony_ci/* 261847f8eSopenharmony_ci * Copyright (C) 2021-2023 Huawei Device Co., Ltd. 361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 461847f8eSopenharmony_ci * you may not use this file except in compliance with the License. 561847f8eSopenharmony_ci * You may obtain a copy of the License at 661847f8eSopenharmony_ci * 761847f8eSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 861847f8eSopenharmony_ci * 961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and 1361847f8eSopenharmony_ci * limitations under the License. 1461847f8eSopenharmony_ci */ 1561847f8eSopenharmony_ci 1661847f8eSopenharmony_ci/** 1761847f8eSopenharmony_ci * @file 1861847f8eSopenharmony_ci * @kit TelephonyKit 1961847f8eSopenharmony_ci */ 2061847f8eSopenharmony_ci 2161847f8eSopenharmony_ciimport type { AsyncCallback } from './@ohos.base'; 2261847f8eSopenharmony_ciimport type Context from './application/BaseContext'; 2361847f8eSopenharmony_ci 2461847f8eSopenharmony_ci/** 2561847f8eSopenharmony_ci * Provides the capabilities and methods for obtaining Short Message Service (SMS) management objects. 2661847f8eSopenharmony_ci * 2761847f8eSopenharmony_ci * @namespace sms 2861847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2961847f8eSopenharmony_ci * @since 6 3061847f8eSopenharmony_ci */ 3161847f8eSopenharmony_cideclare namespace sms { 3261847f8eSopenharmony_ci /** 3361847f8eSopenharmony_ci * Splits a long SMS message into multiple fragments. 3461847f8eSopenharmony_ci * 3561847f8eSopenharmony_ci * <p>If the length of an SMS message exceeds the maximum length allowed (140 bytes), 3661847f8eSopenharmony_ci * the SMS message is split into multiple segments for processing. 3761847f8eSopenharmony_ci * 3861847f8eSopenharmony_ci * @permission ohos.permission.SEND_MESSAGES 3961847f8eSopenharmony_ci * @param { string } content - Indicates the short message content, which cannot be {@code null}. 4061847f8eSopenharmony_ci * @param { AsyncCallback<Array<string>> } callback - Indicates the callback for getting a list of split segments, 4161847f8eSopenharmony_ci * which can be combined into a complete SMS message; 4261847f8eSopenharmony_ci * Returns an empty string if no permission is granted or the short message content is {@code null}. 4361847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 4461847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 4561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 4661847f8eSopenharmony_ci * Incorrect parameter types. 4761847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 4861847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 4961847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 5061847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 5161847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 5261847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 5361847f8eSopenharmony_ci * @since 8 5461847f8eSopenharmony_ci */ 5561847f8eSopenharmony_ci function splitMessage(content: string, callback: AsyncCallback<Array<string>>): void; 5661847f8eSopenharmony_ci 5761847f8eSopenharmony_ci /** 5861847f8eSopenharmony_ci * Splits a long SMS message into multiple fragments. 5961847f8eSopenharmony_ci * 6061847f8eSopenharmony_ci * <p>If the length of an SMS message exceeds the maximum length allowed (140 bytes), 6161847f8eSopenharmony_ci * the SMS message is split into multiple segments for processing. 6261847f8eSopenharmony_ci * 6361847f8eSopenharmony_ci * @permission ohos.permission.SEND_MESSAGES 6461847f8eSopenharmony_ci * @param { string } content - Indicates the short message content, which cannot be {@code null}. 6561847f8eSopenharmony_ci * @returns { Promise<Array<string>> } Returns a list of split segments, which can be combined into a complete SMS 6661847f8eSopenharmony_ci * message; Returns an empty string if no permission is granted or the short message content is {@code null}. 6761847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 6861847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 6961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 7061847f8eSopenharmony_ci * Incorrect parameter types. 7161847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 7261847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 7361847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 7461847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 7561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 7661847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 7761847f8eSopenharmony_ci * @since 8 7861847f8eSopenharmony_ci */ 7961847f8eSopenharmony_ci function splitMessage(content: string): Promise<Array<string>>; 8061847f8eSopenharmony_ci 8161847f8eSopenharmony_ci /** 8261847f8eSopenharmony_ci * Creates an SMS message instance based on the protocol data unit (PDU) and the specified SMS protocol. 8361847f8eSopenharmony_ci * 8461847f8eSopenharmony_ci * <p>After receiving the original PDU data, the system creates an SMS message instance according to the specified 8561847f8eSopenharmony_ci * SMS protocol. 8661847f8eSopenharmony_ci * 8761847f8eSopenharmony_ci * @param { Array<number> } pdu - Indicates the original data, which is obtained from the received SMS. 8861847f8eSopenharmony_ci * @param { string } specification - Indicates the SMS protocol type. The value {@code 3gpp} indicates GSM/UMTS/LTE 8961847f8eSopenharmony_ci * SMS, and the value {@code 3gpp2} indicates CDMA/LTE SMS. 9061847f8eSopenharmony_ci * @param { AsyncCallback<ShortMessage> } callback - Indicates the callback for getting an SMS message instance; 9161847f8eSopenharmony_ci * returns {@code null} if {@code pdu} is empty or {@code specification} is not supported. 9261847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 9361847f8eSopenharmony_ci * Incorrect parameter types. 9461847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 9561847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 9661847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 9761847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 9861847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 9961847f8eSopenharmony_ci * @since 6 10061847f8eSopenharmony_ci */ 10161847f8eSopenharmony_ci function createMessage(pdu: Array<number>, specification: string, callback: AsyncCallback<ShortMessage>): void; 10261847f8eSopenharmony_ci 10361847f8eSopenharmony_ci /** 10461847f8eSopenharmony_ci * Creates an SMS message instance based on the protocol data unit (PDU) and the specified SMS protocol. 10561847f8eSopenharmony_ci * 10661847f8eSopenharmony_ci * <p>After receiving the original PDU data, the system creates an SMS message instance according to the specified 10761847f8eSopenharmony_ci * SMS protocol. 10861847f8eSopenharmony_ci * 10961847f8eSopenharmony_ci * @param { Array<number> } pdu - Indicates the original data, which is obtained from the received SMS. 11061847f8eSopenharmony_ci * @param { string } specification - Indicates the SMS protocol type. The value {@code 3gpp} indicates GSM/UMTS/LTE 11161847f8eSopenharmony_ci * SMS, and the value {@code 3gpp2} indicates CDMA/LTE SMS. 11261847f8eSopenharmony_ci * @returns { Promise<ShortMessage> } Returns an SMS message instance; 11361847f8eSopenharmony_ci * returns {@code null} if {@code pdu} is empty or {@code specification} is not supported. 11461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 11561847f8eSopenharmony_ci * Incorrect parameter types. 11661847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 11761847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 11861847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 11961847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 12061847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 12161847f8eSopenharmony_ci * @since 6 12261847f8eSopenharmony_ci */ 12361847f8eSopenharmony_ci function createMessage(pdu: Array<number>, specification: string): Promise<ShortMessage>; 12461847f8eSopenharmony_ci 12561847f8eSopenharmony_ci /** 12661847f8eSopenharmony_ci * Sends a text or data SMS message. 12761847f8eSopenharmony_ci * 12861847f8eSopenharmony_ci * <p>This method checks whether the length of an SMS message exceeds the maximum length. If the 12961847f8eSopenharmony_ci * maximum length is exceeded, the SMS message is split into multiple parts and sent separately. 13061847f8eSopenharmony_ci * 13161847f8eSopenharmony_ci * @permission ohos.permission.SEND_MESSAGES 13261847f8eSopenharmony_ci * @param { SendMessageOptions } options - Indicates the parameters and callback for sending the SMS message. 13361847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 13461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 13561847f8eSopenharmony_ci * Incorrect parameter types. 13661847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 13761847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 13861847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 13961847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 14061847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 14161847f8eSopenharmony_ci * @since 6 14261847f8eSopenharmony_ci * @deprecated since 10 14361847f8eSopenharmony_ci * @useinstead telephony.sms#sendShortMessage 14461847f8eSopenharmony_ci */ 14561847f8eSopenharmony_ci function sendMessage(options: SendMessageOptions): void; 14661847f8eSopenharmony_ci 14761847f8eSopenharmony_ci /** 14861847f8eSopenharmony_ci * Sends a text or data SMS message. 14961847f8eSopenharmony_ci * 15061847f8eSopenharmony_ci * <p>This method checks whether the length of an SMS message exceeds the maximum length. If the 15161847f8eSopenharmony_ci * maximum length is exceeded, the SMS message is split into multiple parts and sent separately. 15261847f8eSopenharmony_ci * 15361847f8eSopenharmony_ci * @permission ohos.permission.SEND_MESSAGES 15461847f8eSopenharmony_ci * @param { SendMessageOptions } options - Indicates the parameters and callback for sending the SMS message. 15561847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of sendShortMessage. 15661847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 15761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 15861847f8eSopenharmony_ci * Incorrect parameter types. 15961847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 16061847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 16161847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 16261847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 16361847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 16461847f8eSopenharmony_ci * @since 10 16561847f8eSopenharmony_ci */ 16661847f8eSopenharmony_ci function sendShortMessage(options: SendMessageOptions, callback: AsyncCallback<void>): void; 16761847f8eSopenharmony_ci 16861847f8eSopenharmony_ci /** 16961847f8eSopenharmony_ci * Sends a text or data SMS message. 17061847f8eSopenharmony_ci * 17161847f8eSopenharmony_ci * <p>This method checks whether the length of an SMS message exceeds the maximum length. If the 17261847f8eSopenharmony_ci * maximum length is exceeded, the SMS message is split into multiple parts and sent separately. 17361847f8eSopenharmony_ci * 17461847f8eSopenharmony_ci * @permission ohos.permission.SEND_MESSAGES 17561847f8eSopenharmony_ci * @param { SendMessageOptions } options - Indicates the parameters and callback for sending the SMS message. 17661847f8eSopenharmony_ci * @returns { Promise<void> } The promise returned by the sendShortMessage. 17761847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 17861847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 17961847f8eSopenharmony_ci * Incorrect parameter types. 18061847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 18161847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 18261847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 18361847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 18461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 18561847f8eSopenharmony_ci * @since 10 18661847f8eSopenharmony_ci */ 18761847f8eSopenharmony_ci function sendShortMessage(options: SendMessageOptions): Promise<void>; 18861847f8eSopenharmony_ci 18961847f8eSopenharmony_ci /** 19061847f8eSopenharmony_ci * Sets the default SIM card for sending SMS messages. You can obtain the default SIM card by 19161847f8eSopenharmony_ci * using {@code getDefaultSmsSlotId}. 19261847f8eSopenharmony_ci * 19361847f8eSopenharmony_ci * @permission ohos.permission.SET_TELEPHONY_STATE 19461847f8eSopenharmony_ci * @param { number } slotId - Indicates the default SIM card for sending SMS messages. The value {@code 0} indicates 19561847f8eSopenharmony_ci * card slot 1, and the value {@code 1} indicates card slot 2. 19661847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of setDefaultSmsSlotId. 19761847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 19861847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 19961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 20061847f8eSopenharmony_ci * Incorrect parameter types. 20161847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 20261847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 20361847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 20461847f8eSopenharmony_ci * @throws { BusinessError } 8300004 - Do not have sim card. 20561847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 20661847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 20761847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 20861847f8eSopenharmony_ci * @since 7 20961847f8eSopenharmony_ci */ 21061847f8eSopenharmony_ci function setDefaultSmsSlotId(slotId: number, callback: AsyncCallback<void>): void; 21161847f8eSopenharmony_ci 21261847f8eSopenharmony_ci /** 21361847f8eSopenharmony_ci * Sets the default SIM card for sending SMS messages. You can obtain the default SIM card by 21461847f8eSopenharmony_ci * using {@code getDefaultSmsSlotId}. 21561847f8eSopenharmony_ci * 21661847f8eSopenharmony_ci * @permission ohos.permission.SET_TELEPHONY_STATE 21761847f8eSopenharmony_ci * @param { number } slotId - Indicates the default SIM card for sending SMS messages. The value {@code 0} indicates 21861847f8eSopenharmony_ci * card slot 1, and the value {@code 1} indicates card slot 2. 21961847f8eSopenharmony_ci * @returns { Promise<void> } The promise returned by the setDefaultSmsSlotId. 22061847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 22161847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 22261847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 22361847f8eSopenharmony_ci * Incorrect parameter types. 22461847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 22561847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 22661847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 22761847f8eSopenharmony_ci * @throws { BusinessError } 8300004 - Do not have sim card. 22861847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 22961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 23061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 23161847f8eSopenharmony_ci * @since 7 23261847f8eSopenharmony_ci */ 23361847f8eSopenharmony_ci function setDefaultSmsSlotId(slotId: number): Promise<void>; 23461847f8eSopenharmony_ci 23561847f8eSopenharmony_ci /** 23661847f8eSopenharmony_ci * Obtains the default SIM card for sending SMS messages. 23761847f8eSopenharmony_ci * 23861847f8eSopenharmony_ci * @param { AsyncCallback<number> } callback - Indicates the callback for getting the default SIM card for sending SMS 23961847f8eSopenharmony_ci * messages. 24061847f8eSopenharmony_ci * Returns {@code 0} if the default SIM card for sending SMS messages is in card slot 1; 24161847f8eSopenharmony_ci * Returns {@code 1} if the default SIM card for sending SMS messages is in card slot 2. 24261847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 24361847f8eSopenharmony_ci * @since 7 24461847f8eSopenharmony_ci */ 24561847f8eSopenharmony_ci function getDefaultSmsSlotId(callback: AsyncCallback<number>): void; 24661847f8eSopenharmony_ci 24761847f8eSopenharmony_ci /** 24861847f8eSopenharmony_ci * Obtains the default SIM card for sending SMS messages. 24961847f8eSopenharmony_ci * 25061847f8eSopenharmony_ci * @returns { Promise<number> } Returns {@code 0} if the default SIM card for sending SMS messages is in card slot 1; 25161847f8eSopenharmony_ci * Returns {@code 1} if the default SIM card for sending SMS messages is in card slot 2. 25261847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 25361847f8eSopenharmony_ci * @since 7 25461847f8eSopenharmony_ci */ 25561847f8eSopenharmony_ci function getDefaultSmsSlotId(): Promise<number>; 25661847f8eSopenharmony_ci 25761847f8eSopenharmony_ci /** 25861847f8eSopenharmony_ci * Sets the address for the Short Message Service Center (SMSC) based on a specified slot ID. 25961847f8eSopenharmony_ci * 26061847f8eSopenharmony_ci * @permission ohos.permission.SET_TELEPHONY_STATE 26161847f8eSopenharmony_ci * @param { number } slotId - Indicates the ID of the slot holding the SIM card for sending SMS messages. 26261847f8eSopenharmony_ci * @param { string } smscAddr - Indicates the SMSC address. 26361847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of setSmscAddr. 26461847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 26561847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 26661847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 26761847f8eSopenharmony_ci * Incorrect parameter types. 26861847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 26961847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 27061847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 27161847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 27261847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 27361847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 27461847f8eSopenharmony_ci * @since 7 27561847f8eSopenharmony_ci */ 27661847f8eSopenharmony_ci function setSmscAddr(slotId: number, smscAddr: string, callback: AsyncCallback<void>): void; 27761847f8eSopenharmony_ci 27861847f8eSopenharmony_ci /** 27961847f8eSopenharmony_ci * Sets the address for the Short Message Service Center (SMSC) based on a specified slot ID. 28061847f8eSopenharmony_ci * 28161847f8eSopenharmony_ci * @permission ohos.permission.SET_TELEPHONY_STATE 28261847f8eSopenharmony_ci * @param { number } slotId - Indicates the ID of the slot holding the SIM card for sending SMS messages. 28361847f8eSopenharmony_ci * @param { string } smscAddr - Indicates the SMSC address. 28461847f8eSopenharmony_ci * @returns { Promise<void> } The promise returned by the setSmscAddr. 28561847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 28661847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 28761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 28861847f8eSopenharmony_ci * Incorrect parameter types. 28961847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 29061847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 29161847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 29261847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 29361847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 29461847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 29561847f8eSopenharmony_ci * @since 7 29661847f8eSopenharmony_ci */ 29761847f8eSopenharmony_ci function setSmscAddr(slotId: number, smscAddr: string): Promise<void>; 29861847f8eSopenharmony_ci 29961847f8eSopenharmony_ci /** 30061847f8eSopenharmony_ci * Obtains the SMSC address based on a specified slot ID. 30161847f8eSopenharmony_ci * 30261847f8eSopenharmony_ci * @permission ohos.permission.GET_TELEPHONY_STATE 30361847f8eSopenharmony_ci * @param { number } slotId - Indicates the ID of the slot holding the SIM card for sending SMS messages. 30461847f8eSopenharmony_ci * @param { AsyncCallback<string> } callback - Indicates the callback for getting the SMSC address. 30561847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 30661847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 30761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 30861847f8eSopenharmony_ci * Incorrect parameter types. 30961847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 31061847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 31161847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 31261847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 31361847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 31461847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 31561847f8eSopenharmony_ci * @since 7 31661847f8eSopenharmony_ci */ 31761847f8eSopenharmony_ci function getSmscAddr(slotId: number, callback: AsyncCallback<string>): void; 31861847f8eSopenharmony_ci 31961847f8eSopenharmony_ci /** 32061847f8eSopenharmony_ci * Obtains the SMSC address based on a specified slot ID. 32161847f8eSopenharmony_ci * 32261847f8eSopenharmony_ci * @permission ohos.permission.GET_TELEPHONY_STATE 32361847f8eSopenharmony_ci * @param { number } slotId - Indicates the ID of the slot holding the SIM card for sending SMS messages. 32461847f8eSopenharmony_ci * @returns { Promise<string> } Returns the SMSC address. 32561847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 32661847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 32761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 32861847f8eSopenharmony_ci * Incorrect parameter types. 32961847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 33061847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 33161847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 33261847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 33361847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 33461847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 33561847f8eSopenharmony_ci * @since 7 33661847f8eSopenharmony_ci */ 33761847f8eSopenharmony_ci function getSmscAddr(slotId: number): Promise<string>; 33861847f8eSopenharmony_ci 33961847f8eSopenharmony_ci /** 34061847f8eSopenharmony_ci * Returns whether a device is capable of sending and receiving SMS messages. 34161847f8eSopenharmony_ci * 34261847f8eSopenharmony_ci * @returns { boolean } Returns {@code true} if the device is capable of sending and receiving SMS messages; 34361847f8eSopenharmony_ci * Returns {@code false} otherwise. 34461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 34561847f8eSopenharmony_ci * @since 7 34661847f8eSopenharmony_ci */ 34761847f8eSopenharmony_ci function hasSmsCapability(): boolean; 34861847f8eSopenharmony_ci 34961847f8eSopenharmony_ci /** 35061847f8eSopenharmony_ci * Add an SMS Message to SIM card. 35161847f8eSopenharmony_ci * 35261847f8eSopenharmony_ci * @permission ohos.permission.RECEIVE_SMS and ohos.permission.SEND_MESSAGES 35361847f8eSopenharmony_ci * @param { SimMessageOptions } options - Indicates SIM message options. 35461847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of addSimMessage. 35561847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 35661847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 35761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 35861847f8eSopenharmony_ci * Incorrect parameter types. 3. Parameter verification failed. 35961847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 36061847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 36161847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 36261847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 36361847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 36461847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 36561847f8eSopenharmony_ci * @since 7 36661847f8eSopenharmony_ci */ 36761847f8eSopenharmony_ci function addSimMessage(options: SimMessageOptions, callback: AsyncCallback<void>): void; 36861847f8eSopenharmony_ci 36961847f8eSopenharmony_ci /** 37061847f8eSopenharmony_ci * Add an SMS Message to SIM card. 37161847f8eSopenharmony_ci * 37261847f8eSopenharmony_ci * @permission ohos.permission.RECEIVE_SMS and ohos.permission.SEND_MESSAGES 37361847f8eSopenharmony_ci * @param { SimMessageOptions } options - Indicates SIM message options. 37461847f8eSopenharmony_ci * @returns { Promise<void> } The promise returned by the addSimMessage. 37561847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 37661847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 37761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 37861847f8eSopenharmony_ci * Incorrect parameter types. 3. Parameter verification failed. 37961847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 38061847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 38161847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 38261847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 38361847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 38461847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 38561847f8eSopenharmony_ci * @since 7 38661847f8eSopenharmony_ci */ 38761847f8eSopenharmony_ci function addSimMessage(options: SimMessageOptions): Promise<void>; 38861847f8eSopenharmony_ci 38961847f8eSopenharmony_ci /** 39061847f8eSopenharmony_ci * Delete an SMS Message from the SIM card. 39161847f8eSopenharmony_ci * 39261847f8eSopenharmony_ci * @permission ohos.permission.RECEIVE_SMS and ohos.permission.SEND_MESSAGES 39361847f8eSopenharmony_ci * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot index 39461847f8eSopenharmony_ci * number supported by the device. 39561847f8eSopenharmony_ci * @param { number } msgIndex - Indicates the message index. 39661847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of delSimMessage. 39761847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 39861847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 39961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 40061847f8eSopenharmony_ci * Incorrect parameter types. 40161847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 40261847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 40361847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 40461847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 40561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 40661847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 40761847f8eSopenharmony_ci * @since 7 40861847f8eSopenharmony_ci */ 40961847f8eSopenharmony_ci function delSimMessage(slotId: number, msgIndex: number, callback: AsyncCallback<void>): void; 41061847f8eSopenharmony_ci 41161847f8eSopenharmony_ci /** 41261847f8eSopenharmony_ci * Delete an SMS Message from the SIM card. 41361847f8eSopenharmony_ci * 41461847f8eSopenharmony_ci * @permission ohos.permission.RECEIVE_SMS and ohos.permission.SEND_MESSAGES 41561847f8eSopenharmony_ci * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot index 41661847f8eSopenharmony_ci * number supported by the device. 41761847f8eSopenharmony_ci * @param { number } msgIndex - Indicates the message index. 41861847f8eSopenharmony_ci * @returns { Promise<void> } The promise returned by the delSimMessage. 41961847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 42061847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 42161847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 42261847f8eSopenharmony_ci * Incorrect parameter types. 42361847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 42461847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 42561847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 42661847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 42761847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 42861847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 42961847f8eSopenharmony_ci * @since 7 43061847f8eSopenharmony_ci */ 43161847f8eSopenharmony_ci function delSimMessage(slotId: number, msgIndex: number): Promise<void>; 43261847f8eSopenharmony_ci 43361847f8eSopenharmony_ci /** 43461847f8eSopenharmony_ci * Update a SIM SMS of SIM card. 43561847f8eSopenharmony_ci * 43661847f8eSopenharmony_ci * @permission ohos.permission.RECEIVE_SMS and ohos.permission.SEND_MESSAGES 43761847f8eSopenharmony_ci * @param { UpdateSimMessageOptions } options - Indicates update SIM message options. 43861847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of updateSimMessage. 43961847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 44061847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 44161847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 44261847f8eSopenharmony_ci * Incorrect parameter types. 3. Parameter verification failed. 44361847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 44461847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 44561847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 44661847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 44761847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 44861847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 44961847f8eSopenharmony_ci * @since 7 45061847f8eSopenharmony_ci */ 45161847f8eSopenharmony_ci function updateSimMessage(options: UpdateSimMessageOptions, callback: AsyncCallback<void>): void; 45261847f8eSopenharmony_ci 45361847f8eSopenharmony_ci /** 45461847f8eSopenharmony_ci * Update a SIM SMS of SIM card. 45561847f8eSopenharmony_ci * 45661847f8eSopenharmony_ci * @permission ohos.permission.RECEIVE_SMS and ohos.permission.SEND_MESSAGES 45761847f8eSopenharmony_ci * @param { UpdateSimMessageOptions } options - Indicates update SIM message options. 45861847f8eSopenharmony_ci * @returns { Promise<void> } The promise returned by the updateSimMessage. 45961847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 46061847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 46161847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 46261847f8eSopenharmony_ci * Incorrect parameter types. 3. Parameter verification failed. 46361847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 46461847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 46561847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 46661847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 46761847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 46861847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 46961847f8eSopenharmony_ci * @since 7 47061847f8eSopenharmony_ci */ 47161847f8eSopenharmony_ci function updateSimMessage(options: UpdateSimMessageOptions): Promise<void>; 47261847f8eSopenharmony_ci 47361847f8eSopenharmony_ci /** 47461847f8eSopenharmony_ci * Get all SMS records in SIM. 47561847f8eSopenharmony_ci * 47661847f8eSopenharmony_ci * @permission ohos.permission.RECEIVE_SMS 47761847f8eSopenharmony_ci * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot index 47861847f8eSopenharmony_ci * number supported by the device. 47961847f8eSopenharmony_ci * @param { AsyncCallback<Array<SimShortMessage>> } callback - Indicates the callback for getting a 48061847f8eSopenharmony_ci * {@code SimShortMessage} object. 48161847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 48261847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 48361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 48461847f8eSopenharmony_ci * Incorrect parameter types. 48561847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 48661847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 48761847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 48861847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 48961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 49061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 49161847f8eSopenharmony_ci * @since 7 49261847f8eSopenharmony_ci */ 49361847f8eSopenharmony_ci function getAllSimMessages(slotId: number, callback: AsyncCallback<Array<SimShortMessage>>): void; 49461847f8eSopenharmony_ci 49561847f8eSopenharmony_ci /** 49661847f8eSopenharmony_ci * Get all SMS records in SIM. 49761847f8eSopenharmony_ci * 49861847f8eSopenharmony_ci * @permission ohos.permission.RECEIVE_SMS 49961847f8eSopenharmony_ci * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot index 50061847f8eSopenharmony_ci * number supported by the device. 50161847f8eSopenharmony_ci * @returns { Promise<Array<SimShortMessage>> } Returns a {@code SimShortMessage} object. 50261847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 50361847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 50461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 50561847f8eSopenharmony_ci * Incorrect parameter types. 50661847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 50761847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 50861847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 50961847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 51061847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 51161847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 51261847f8eSopenharmony_ci * @since 7 51361847f8eSopenharmony_ci */ 51461847f8eSopenharmony_ci function getAllSimMessages(slotId: number): Promise<Array<SimShortMessage>>; 51561847f8eSopenharmony_ci 51661847f8eSopenharmony_ci /** 51761847f8eSopenharmony_ci * Turn on or off Cell BroadCast. 51861847f8eSopenharmony_ci * 51961847f8eSopenharmony_ci * @permission ohos.permission.RECEIVE_SMS 52061847f8eSopenharmony_ci * @param { CBConfigOptions } options - Indicates cell broadcast configuration options. 52161847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of setCBConfig. 52261847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 52361847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 52461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 52561847f8eSopenharmony_ci * Incorrect parameter types. 52661847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 52761847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 52861847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 52961847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 53061847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 53161847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 53261847f8eSopenharmony_ci * @since 7 53361847f8eSopenharmony_ci */ 53461847f8eSopenharmony_ci function setCBConfig(options: CBConfigOptions, callback: AsyncCallback<void>): void; 53561847f8eSopenharmony_ci 53661847f8eSopenharmony_ci /** 53761847f8eSopenharmony_ci * Turn on or off Cell BroadCast. 53861847f8eSopenharmony_ci * 53961847f8eSopenharmony_ci * @permission ohos.permission.RECEIVE_SMS 54061847f8eSopenharmony_ci * @param { CBConfigOptions } options - Indicates cell broadcast configuration options. 54161847f8eSopenharmony_ci * @returns { Promise<void> } The promise returned by the setCBConfig. 54261847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 54361847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 54461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 54561847f8eSopenharmony_ci * Incorrect parameter types. 54661847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 54761847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 54861847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 54961847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 55061847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 55161847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 55261847f8eSopenharmony_ci * @since 7 55361847f8eSopenharmony_ci */ 55461847f8eSopenharmony_ci function setCBConfig(options: CBConfigOptions): Promise<void>; 55561847f8eSopenharmony_ci 55661847f8eSopenharmony_ci /** 55761847f8eSopenharmony_ci * Get an SMS segment encode relation information. 55861847f8eSopenharmony_ci * 55961847f8eSopenharmony_ci * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot index 56061847f8eSopenharmony_ci * number supported by the device. 56161847f8eSopenharmony_ci * @param { string } message - Indicates short message. 56261847f8eSopenharmony_ci * @param { boolean } force7bit - Indicates whether to use 7 bit encoding. 56361847f8eSopenharmony_ci * @param { AsyncCallback<SmsSegmentsInfo> } callback - Indicates the callback for getting a {@code SmsSegmentsInfo} 56461847f8eSopenharmony_ci * object. 56561847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 56661847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 56761847f8eSopenharmony_ci * Incorrect parameter types. 3. Parameter verification failed. 56861847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 56961847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 57061847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 57161847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 57261847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 57361847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 57461847f8eSopenharmony_ci * @since 8 57561847f8eSopenharmony_ci */ 57661847f8eSopenharmony_ci function getSmsSegmentsInfo(slotId: number, message: string, force7bit: boolean, callback: AsyncCallback<SmsSegmentsInfo>): void; 57761847f8eSopenharmony_ci 57861847f8eSopenharmony_ci /** 57961847f8eSopenharmony_ci * Get an SMS segment encode relation information. 58061847f8eSopenharmony_ci * 58161847f8eSopenharmony_ci * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot index 58261847f8eSopenharmony_ci * number supported by the device. 58361847f8eSopenharmony_ci * @param { string } message - Indicates short message. 58461847f8eSopenharmony_ci * @param { boolean } force7bit - Indicates whether to use 7 bit encoding. 58561847f8eSopenharmony_ci * @returns { Promise<SmsSegmentsInfo> } Returns a {@code SmsSegmentsInfo} object. 58661847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 58761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 58861847f8eSopenharmony_ci * Incorrect parameter types. 3. Parameter verification failed. 58961847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 59061847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 59161847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 59261847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 59361847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 59461847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 59561847f8eSopenharmony_ci * @since 8 59661847f8eSopenharmony_ci */ 59761847f8eSopenharmony_ci function getSmsSegmentsInfo(slotId: number, message: string, force7bit: boolean): Promise<SmsSegmentsInfo>; 59861847f8eSopenharmony_ci 59961847f8eSopenharmony_ci /** 60061847f8eSopenharmony_ci * SMS over IMS is supported if IMS is registered and SMS is supported on IMS. 60161847f8eSopenharmony_ci * 60261847f8eSopenharmony_ci * @param { number } slotId - Indicates the default SIM card for Ims Sms. The value {@code 0} indicates card slot 1, 60361847f8eSopenharmony_ci * and the value {@code 1} indicates card slot 2. 60461847f8eSopenharmony_ci * @param { AsyncCallback<boolean> } callback - Indicates the callback of isImsSmsSupported. 60561847f8eSopenharmony_ci * Returns {@code true} if SMS over IMS is supported, {@code false} otherwise. 60661847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 60761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 60861847f8eSopenharmony_ci * Incorrect parameter types. 60961847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 61061847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 61161847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 61261847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 61361847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 61461847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 61561847f8eSopenharmony_ci * @since 8 61661847f8eSopenharmony_ci */ 61761847f8eSopenharmony_ci function isImsSmsSupported(slotId: number, callback: AsyncCallback<boolean>): void; 61861847f8eSopenharmony_ci 61961847f8eSopenharmony_ci /** 62061847f8eSopenharmony_ci * SMS over IMS is supported if IMS is registered and SMS is supported on IMS. 62161847f8eSopenharmony_ci * 62261847f8eSopenharmony_ci * @param { number } slotId - Indicates the default SIM card for Ims Sms. The value {@code 0} indicates card slot 1, 62361847f8eSopenharmony_ci * and the value {@code 1} indicates card slot 2. 62461847f8eSopenharmony_ci * @returns { Promise<boolean> } Returns {@code true} if SMS over IMS is supported, {@code false} otherwise. 62561847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 62661847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 62761847f8eSopenharmony_ci * Incorrect parameter types. 62861847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 62961847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 63061847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 63161847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 63261847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 63361847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 63461847f8eSopenharmony_ci * @since 8 63561847f8eSopenharmony_ci */ 63661847f8eSopenharmony_ci function isImsSmsSupported(slotId: number): Promise<boolean>; 63761847f8eSopenharmony_ci 63861847f8eSopenharmony_ci /** 63961847f8eSopenharmony_ci * Gets SMS format supported on IMS. SMS over IMS format is either 3GPP or 3GPP2. 64061847f8eSopenharmony_ci * 64161847f8eSopenharmony_ci * @param { AsyncCallback<string> } callback - Indicates the callback for getting format, 3gpp, 3gpp2 or unknown. 64261847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 64361847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 64461847f8eSopenharmony_ci * Incorrect parameter types. 64561847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 64661847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 64761847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 64861847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 64961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 65061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 65161847f8eSopenharmony_ci * @since 8 65261847f8eSopenharmony_ci */ 65361847f8eSopenharmony_ci function getImsShortMessageFormat(callback: AsyncCallback<string>): void; 65461847f8eSopenharmony_ci 65561847f8eSopenharmony_ci /** 65661847f8eSopenharmony_ci * Gets SMS format supported on IMS. SMS over IMS format is either 3GPP or 3GPP2. 65761847f8eSopenharmony_ci * 65861847f8eSopenharmony_ci * @returns { Promise<string> } Returns format, 3gpp, 3gpp2 or unknown. 65961847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 66061847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 66161847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 66261847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 66361847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 66461847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 66561847f8eSopenharmony_ci * @since 8 66661847f8eSopenharmony_ci */ 66761847f8eSopenharmony_ci function getImsShortMessageFormat(): Promise<string>; 66861847f8eSopenharmony_ci 66961847f8eSopenharmony_ci /** 67061847f8eSopenharmony_ci * Decode the message content. 67161847f8eSopenharmony_ci * 67261847f8eSopenharmony_ci * @param { string | Array<number> } mmsFilePathName - Indicates the path name of the multimedia message file. 67361847f8eSopenharmony_ci * @param { AsyncCallback<MmsInformation> } callback - Indicates the callback for getting a {@code MmsInformation} 67461847f8eSopenharmony_ci * object. 67561847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 67661847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 67761847f8eSopenharmony_ci * Incorrect parameter types. 3. Parameter verification failed. 67861847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 67961847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 68061847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 68161847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 68261847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 68361847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 68461847f8eSopenharmony_ci * @since 8 68561847f8eSopenharmony_ci */ 68661847f8eSopenharmony_ci function decodeMms(mmsFilePathName: string | Array<number>, callback: AsyncCallback<MmsInformation>): void; 68761847f8eSopenharmony_ci 68861847f8eSopenharmony_ci /** 68961847f8eSopenharmony_ci * Decode the message content. 69061847f8eSopenharmony_ci * 69161847f8eSopenharmony_ci * @param { string | Array<number> } mmsFilePathName - Indicates the path name of the multimedia message file. 69261847f8eSopenharmony_ci * @returns { Promise<MmsInformation> } Returns a {@code MmsInformation} object. 69361847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 69461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 69561847f8eSopenharmony_ci * Incorrect parameter types. 3. Parameter verification failed. 69661847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 69761847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 69861847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 69961847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 70061847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 70161847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 70261847f8eSopenharmony_ci * @since 8 70361847f8eSopenharmony_ci */ 70461847f8eSopenharmony_ci function decodeMms(mmsFilePathName: string | Array<number>): Promise<MmsInformation>; 70561847f8eSopenharmony_ci 70661847f8eSopenharmony_ci /** 70761847f8eSopenharmony_ci * Encode the message content. 70861847f8eSopenharmony_ci * 70961847f8eSopenharmony_ci * @param { MmsInformation } mms - Indicates MMS messages. 71061847f8eSopenharmony_ci * @param { AsyncCallback<Array<number>> } callback - Indicates the callback for getting the result of MMS encoding. 71161847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 71261847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 71361847f8eSopenharmony_ci * Incorrect parameter types. 3. Parameter verification failed. 71461847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 71561847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 71661847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 71761847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 71861847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 71961847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 72061847f8eSopenharmony_ci * @since 8 72161847f8eSopenharmony_ci */ 72261847f8eSopenharmony_ci function encodeMms(mms: MmsInformation, callback: AsyncCallback<Array<number>>): void; 72361847f8eSopenharmony_ci 72461847f8eSopenharmony_ci /** 72561847f8eSopenharmony_ci * Encode the message content. 72661847f8eSopenharmony_ci * 72761847f8eSopenharmony_ci * @param { MmsInformation } mms - Indicates MMS messages. 72861847f8eSopenharmony_ci * @returns { Promise<Array<number>> } Returns the result of MMS encoding. 72961847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 73061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 73161847f8eSopenharmony_ci * Incorrect parameter types. 3. Parameter verification failed. 73261847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 73361847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 73461847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 73561847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 73661847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 73761847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 73861847f8eSopenharmony_ci * @since 8 73961847f8eSopenharmony_ci */ 74061847f8eSopenharmony_ci function encodeMms(mms: MmsInformation): Promise<Array<number>>; 74161847f8eSopenharmony_ci 74261847f8eSopenharmony_ci /** 74361847f8eSopenharmony_ci * Obtains the default SIM ID for sending SMS messages. 74461847f8eSopenharmony_ci * 74561847f8eSopenharmony_ci * @param { AsyncCallback<number> } callback - Returns the SIM ID of the default sms sim and 74661847f8eSopenharmony_ci * SIM ID will increase from 1. 74761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 74861847f8eSopenharmony_ci * Incorrect parameter types. 74961847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 75061847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 75161847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 75261847f8eSopenharmony_ci * @throws { BusinessError } 8300004 - Do not have sim card. 75361847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 75461847f8eSopenharmony_ci * @throws { BusinessError } 8301001 - SIM card is not activated. 75561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 75661847f8eSopenharmony_ci * @since 10 75761847f8eSopenharmony_ci */ 75861847f8eSopenharmony_ci function getDefaultSmsSimId(callback: AsyncCallback<number>): void; 75961847f8eSopenharmony_ci 76061847f8eSopenharmony_ci /** 76161847f8eSopenharmony_ci * Obtains the default SIM ID for sending SMS messages. 76261847f8eSopenharmony_ci * 76361847f8eSopenharmony_ci * @returns { Promise<number> } Returns the SIM ID of the default sms sim and 76461847f8eSopenharmony_ci * SIM ID will increase from 1. 76561847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 76661847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 76761847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 76861847f8eSopenharmony_ci * @throws { BusinessError } 8300004 - Do not have sim card. 76961847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 77061847f8eSopenharmony_ci * @throws { BusinessError } 8301001 - SIM card is not activated. 77161847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 77261847f8eSopenharmony_ci * @since 10 77361847f8eSopenharmony_ci */ 77461847f8eSopenharmony_ci function getDefaultSmsSimId(): Promise<number>; 77561847f8eSopenharmony_ci 77661847f8eSopenharmony_ci /** 77761847f8eSopenharmony_ci * Defines the MMS message information. 77861847f8eSopenharmony_ci * 77961847f8eSopenharmony_ci * @interface MmsInformation 78061847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 78161847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 78261847f8eSopenharmony_ci * @since 8 78361847f8eSopenharmony_ci */ 78461847f8eSopenharmony_ci export interface MmsInformation { 78561847f8eSopenharmony_ci /** 78661847f8eSopenharmony_ci * Indicates the message type for the MMS message. 78761847f8eSopenharmony_ci * 78861847f8eSopenharmony_ci * @type { MessageType } 78961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 79061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 79161847f8eSopenharmony_ci * @since 8 79261847f8eSopenharmony_ci */ 79361847f8eSopenharmony_ci messageType: MessageType; 79461847f8eSopenharmony_ci 79561847f8eSopenharmony_ci /** 79661847f8eSopenharmony_ci * Indicates the PDU header type for the MMS message. 79761847f8eSopenharmony_ci * 79861847f8eSopenharmony_ci * @type { MmsSendReq | MmsSendConf | MmsNotificationInd | MmsRespInd | MmsRetrieveConf | MmsAcknowledgeInd | 79961847f8eSopenharmony_ci * MmsDeliveryInd | MmsReadOrigInd | MmsReadRecInd } 80061847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 80161847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 80261847f8eSopenharmony_ci * @since 8 80361847f8eSopenharmony_ci */ 80461847f8eSopenharmony_ci mmsType: MmsSendReq | MmsSendConf | MmsNotificationInd | MmsRespInd | MmsRetrieveConf | MmsAcknowledgeInd | MmsDeliveryInd | MmsReadOrigInd | MmsReadRecInd; 80561847f8eSopenharmony_ci 80661847f8eSopenharmony_ci /** 80761847f8eSopenharmony_ci * Indicates the attachment for the MMS message. 80861847f8eSopenharmony_ci * 80961847f8eSopenharmony_ci * @type { ?Array<MmsAttachment> } 81061847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 81161847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 81261847f8eSopenharmony_ci * @since 8 81361847f8eSopenharmony_ci */ 81461847f8eSopenharmony_ci attachment?: Array<MmsAttachment>; 81561847f8eSopenharmony_ci } 81661847f8eSopenharmony_ci 81761847f8eSopenharmony_ci /** 81861847f8eSopenharmony_ci * Sends an MMS message. 81961847f8eSopenharmony_ci * 82061847f8eSopenharmony_ci * @permission ohos.permission.SEND_MESSAGES 82161847f8eSopenharmony_ci * @param { Context } context - Indicates the context of application or capability. 82261847f8eSopenharmony_ci * @param { MmsParams } mmsParams - Indicates the parameters of the MMS message. 82361847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of sendMms. For error code, see MmsFailCode. 82461847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 82561847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 82661847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 82761847f8eSopenharmony_ci * Incorrect parameter types. 3. Parameter verification failed. 82861847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 82961847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 83061847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 83161847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 83261847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 83361847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 83461847f8eSopenharmony_ci * @since 11 83561847f8eSopenharmony_ci */ 83661847f8eSopenharmony_ci function sendMms(context: Context, mmsParams: MmsParams, callback: AsyncCallback<void>): void; 83761847f8eSopenharmony_ci 83861847f8eSopenharmony_ci /** 83961847f8eSopenharmony_ci * Sends an MMS message. 84061847f8eSopenharmony_ci * 84161847f8eSopenharmony_ci * @permission ohos.permission.SEND_MESSAGES 84261847f8eSopenharmony_ci * @param { Context } context - Indicates the context of application or capability. 84361847f8eSopenharmony_ci * @param { MmsParams } mmsParams - Indicates the parameters of the MMS message. 84461847f8eSopenharmony_ci * @returns { Promise<void> } The promise returned by the sendMms. 84561847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 84661847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 84761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 84861847f8eSopenharmony_ci * Incorrect parameter types. 3. Parameter verification failed. 84961847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 85061847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 85161847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 85261847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 85361847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 85461847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 85561847f8eSopenharmony_ci * @since 11 85661847f8eSopenharmony_ci */ 85761847f8eSopenharmony_ci function sendMms(context: Context, mmsParams: MmsParams): Promise<void>; 85861847f8eSopenharmony_ci 85961847f8eSopenharmony_ci /** 86061847f8eSopenharmony_ci * Downloads an MMS message. 86161847f8eSopenharmony_ci * 86261847f8eSopenharmony_ci * @permission ohos.permission.RECEIVE_MMS 86361847f8eSopenharmony_ci * @param { Context } context - Indicates the context of application or capability. 86461847f8eSopenharmony_ci * @param { MmsParams } mmsParams - Indicates the parameters of the MMS message. 86561847f8eSopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of downloadMms. For error code, see MmsFailCode. 86661847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 86761847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 86861847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 86961847f8eSopenharmony_ci * Incorrect parameter types. 87061847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 87161847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 87261847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 87361847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 87461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 87561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 87661847f8eSopenharmony_ci * @since 11 87761847f8eSopenharmony_ci */ 87861847f8eSopenharmony_ci function downloadMms(context: Context, mmsParams: MmsParams, callback: AsyncCallback<void>): void; 87961847f8eSopenharmony_ci 88061847f8eSopenharmony_ci /** 88161847f8eSopenharmony_ci * Downloads an MMS message. 88261847f8eSopenharmony_ci * 88361847f8eSopenharmony_ci * @permission ohos.permission.RECEIVE_MMS 88461847f8eSopenharmony_ci * @param { Context } context - Indicates the context of application or capability. 88561847f8eSopenharmony_ci * @param { MmsParams } mmsParams - Indicates the parameters of the MMS message. 88661847f8eSopenharmony_ci * @returns { Promise<void> } The promise returned by the downloadMms. For error code, see MmsFailCode. 88761847f8eSopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 88861847f8eSopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 88961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 89061847f8eSopenharmony_ci * Incorrect parameter types. 89161847f8eSopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 89261847f8eSopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 89361847f8eSopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 89461847f8eSopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 89561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 89661847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 89761847f8eSopenharmony_ci * @since 11 89861847f8eSopenharmony_ci */ 89961847f8eSopenharmony_ci function downloadMms(context: Context, mmsParams: MmsParams): Promise<void>; 90061847f8eSopenharmony_ci 90161847f8eSopenharmony_ci /** 90261847f8eSopenharmony_ci * Defines the MMS message param. 90361847f8eSopenharmony_ci * 90461847f8eSopenharmony_ci * @interface MmsParams 90561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 90661847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 90761847f8eSopenharmony_ci * @since 11 90861847f8eSopenharmony_ci */ 90961847f8eSopenharmony_ci export interface MmsParams { 91061847f8eSopenharmony_ci /** 91161847f8eSopenharmony_ci * Indicates the ID of the SIM card slot used for sending the MMS message. 91261847f8eSopenharmony_ci * 91361847f8eSopenharmony_ci * @type { number } 91461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 91561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 91661847f8eSopenharmony_ci * @since 11 91761847f8eSopenharmony_ci */ 91861847f8eSopenharmony_ci slotId: number; 91961847f8eSopenharmony_ci 92061847f8eSopenharmony_ci /** 92161847f8eSopenharmony_ci * Indicates the MMSC used for sending the MMS message. 92261847f8eSopenharmony_ci * 92361847f8eSopenharmony_ci * @type { string } 92461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 92561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 92661847f8eSopenharmony_ci * @since 11 92761847f8eSopenharmony_ci */ 92861847f8eSopenharmony_ci mmsc: string; 92961847f8eSopenharmony_ci 93061847f8eSopenharmony_ci /** 93161847f8eSopenharmony_ci * Indicates the MMS pdu url used for sending the MMS message. 93261847f8eSopenharmony_ci * 93361847f8eSopenharmony_ci * @type { string } 93461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 93561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 93661847f8eSopenharmony_ci * @since 11 93761847f8eSopenharmony_ci */ 93861847f8eSopenharmony_ci data: string; 93961847f8eSopenharmony_ci 94061847f8eSopenharmony_ci /** 94161847f8eSopenharmony_ci * Indicates the MMS UA and MMS UaProf used for sending the MMS message. 94261847f8eSopenharmony_ci * 94361847f8eSopenharmony_ci * @type { ?MmsConfig } 94461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 94561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 94661847f8eSopenharmony_ci * @since 11 94761847f8eSopenharmony_ci */ 94861847f8eSopenharmony_ci mmsConfig?: MmsConfig; 94961847f8eSopenharmony_ci } 95061847f8eSopenharmony_ci 95161847f8eSopenharmony_ci /** 95261847f8eSopenharmony_ci * Defines the MMS message config. 95361847f8eSopenharmony_ci * 95461847f8eSopenharmony_ci * @interface MmsConfig 95561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 95661847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 95761847f8eSopenharmony_ci * @since 11 95861847f8eSopenharmony_ci */ 95961847f8eSopenharmony_ci export interface MmsConfig { 96061847f8eSopenharmony_ci /** 96161847f8eSopenharmony_ci * Indicates the user agent used for the MMS message. 96261847f8eSopenharmony_ci * 96361847f8eSopenharmony_ci * @type { string } 96461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 96561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 96661847f8eSopenharmony_ci * @since 11 96761847f8eSopenharmony_ci */ 96861847f8eSopenharmony_ci userAgent: string; 96961847f8eSopenharmony_ci 97061847f8eSopenharmony_ci /** 97161847f8eSopenharmony_ci * Indicates the user agent profile for the MMS message. 97261847f8eSopenharmony_ci * 97361847f8eSopenharmony_ci * @type { string } 97461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 97561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 97661847f8eSopenharmony_ci * @since 11 97761847f8eSopenharmony_ci */ 97861847f8eSopenharmony_ci userAgentProfile: string; 97961847f8eSopenharmony_ci } 98061847f8eSopenharmony_ci 98161847f8eSopenharmony_ci /** 98261847f8eSopenharmony_ci * Defines an MMS message sending request. 98361847f8eSopenharmony_ci * 98461847f8eSopenharmony_ci * @interface MmsSendReq 98561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 98661847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 98761847f8eSopenharmony_ci * @since 8 98861847f8eSopenharmony_ci */ 98961847f8eSopenharmony_ci export interface MmsSendReq { 99061847f8eSopenharmony_ci /** 99161847f8eSopenharmony_ci * Indicates the source address for the MMS message sending request. 99261847f8eSopenharmony_ci * 99361847f8eSopenharmony_ci * @type { MmsAddress } 99461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 99561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 99661847f8eSopenharmony_ci * @since 8 99761847f8eSopenharmony_ci */ 99861847f8eSopenharmony_ci from: MmsAddress; 99961847f8eSopenharmony_ci 100061847f8eSopenharmony_ci /** 100161847f8eSopenharmony_ci * Indicates the transaction ID for the MMS message sending request. 100261847f8eSopenharmony_ci * 100361847f8eSopenharmony_ci * @type { string } 100461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 100561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 100661847f8eSopenharmony_ci * @since 8 100761847f8eSopenharmony_ci */ 100861847f8eSopenharmony_ci transactionId: string; 100961847f8eSopenharmony_ci 101061847f8eSopenharmony_ci /** 101161847f8eSopenharmony_ci * Indicates the content type for the MMS message sending request. 101261847f8eSopenharmony_ci * 101361847f8eSopenharmony_ci * @type { string } 101461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 101561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 101661847f8eSopenharmony_ci * @since 8 101761847f8eSopenharmony_ci */ 101861847f8eSopenharmony_ci contentType: string; 101961847f8eSopenharmony_ci 102061847f8eSopenharmony_ci /** 102161847f8eSopenharmony_ci * Indicates the version for the MMS message sending request. 102261847f8eSopenharmony_ci * 102361847f8eSopenharmony_ci * @type { MmsVersionType } 102461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 102561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 102661847f8eSopenharmony_ci * @since 8 102761847f8eSopenharmony_ci */ 102861847f8eSopenharmony_ci version: MmsVersionType; 102961847f8eSopenharmony_ci 103061847f8eSopenharmony_ci /** 103161847f8eSopenharmony_ci * Indicates the destination address for the MMS message sending request. 103261847f8eSopenharmony_ci * 103361847f8eSopenharmony_ci * @type { ?Array<MmsAddress> } 103461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 103561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 103661847f8eSopenharmony_ci * @since 8 103761847f8eSopenharmony_ci */ 103861847f8eSopenharmony_ci to?: Array<MmsAddress>; 103961847f8eSopenharmony_ci 104061847f8eSopenharmony_ci /** 104161847f8eSopenharmony_ci * Indicates the date for the MMS message sending request. 104261847f8eSopenharmony_ci * 104361847f8eSopenharmony_ci * @type { ?number } 104461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 104561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 104661847f8eSopenharmony_ci * @since 8 104761847f8eSopenharmony_ci */ 104861847f8eSopenharmony_ci date?: number; 104961847f8eSopenharmony_ci 105061847f8eSopenharmony_ci /** 105161847f8eSopenharmony_ci * Indicates the carbon copy address for the MMS message sending request. 105261847f8eSopenharmony_ci * 105361847f8eSopenharmony_ci * @type { ?Array<MmsAddress> } 105461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 105561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 105661847f8eSopenharmony_ci * @since 8 105761847f8eSopenharmony_ci */ 105861847f8eSopenharmony_ci cc?: Array<MmsAddress>; 105961847f8eSopenharmony_ci 106061847f8eSopenharmony_ci /** 106161847f8eSopenharmony_ci * Indicates the blind carbon copy address for the MMS message sending request. 106261847f8eSopenharmony_ci * 106361847f8eSopenharmony_ci * @type { ?Array<MmsAddress> } 106461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 106561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 106661847f8eSopenharmony_ci * @since 8 106761847f8eSopenharmony_ci */ 106861847f8eSopenharmony_ci bcc?: Array<MmsAddress>; 106961847f8eSopenharmony_ci 107061847f8eSopenharmony_ci /** 107161847f8eSopenharmony_ci * Indicates the subject for the MMS message sending request. 107261847f8eSopenharmony_ci * 107361847f8eSopenharmony_ci * @type { ?string } 107461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 107561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 107661847f8eSopenharmony_ci * @since 8 107761847f8eSopenharmony_ci */ 107861847f8eSopenharmony_ci subject?: string; 107961847f8eSopenharmony_ci 108061847f8eSopenharmony_ci /** 108161847f8eSopenharmony_ci * Indicates the message class for the MMS message sending request. 108261847f8eSopenharmony_ci * 108361847f8eSopenharmony_ci * @type { ?number } 108461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 108561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 108661847f8eSopenharmony_ci * @since 8 108761847f8eSopenharmony_ci */ 108861847f8eSopenharmony_ci messageClass?: number; 108961847f8eSopenharmony_ci 109061847f8eSopenharmony_ci /** 109161847f8eSopenharmony_ci * Indicates the expiration for the MMS message sending request. 109261847f8eSopenharmony_ci * 109361847f8eSopenharmony_ci * @type { ?number } 109461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 109561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 109661847f8eSopenharmony_ci * @since 8 109761847f8eSopenharmony_ci */ 109861847f8eSopenharmony_ci expiry?: number; 109961847f8eSopenharmony_ci 110061847f8eSopenharmony_ci /** 110161847f8eSopenharmony_ci * Indicates the priority for the MMS message sending request. 110261847f8eSopenharmony_ci * 110361847f8eSopenharmony_ci * @type { ?MmsPriorityType } 110461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 110561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 110661847f8eSopenharmony_ci * @since 8 110761847f8eSopenharmony_ci */ 110861847f8eSopenharmony_ci priority?: MmsPriorityType; 110961847f8eSopenharmony_ci 111061847f8eSopenharmony_ci /** 111161847f8eSopenharmony_ci * Indicates the sender visibility for the MMS message sending request. 111261847f8eSopenharmony_ci * 111361847f8eSopenharmony_ci * @type { ?number } 111461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 111561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 111661847f8eSopenharmony_ci * @since 8 111761847f8eSopenharmony_ci */ 111861847f8eSopenharmony_ci senderVisibility?: number; 111961847f8eSopenharmony_ci 112061847f8eSopenharmony_ci /** 112161847f8eSopenharmony_ci * Indicates the delivery report for the MMS message sending request. 112261847f8eSopenharmony_ci * 112361847f8eSopenharmony_ci * @type { ?number } 112461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 112561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 112661847f8eSopenharmony_ci * @since 8 112761847f8eSopenharmony_ci */ 112861847f8eSopenharmony_ci deliveryReport?: number; 112961847f8eSopenharmony_ci 113061847f8eSopenharmony_ci /** 113161847f8eSopenharmony_ci * Indicates the read report for the MMS message sending request. 113261847f8eSopenharmony_ci * 113361847f8eSopenharmony_ci * @type { ?number } 113461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 113561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 113661847f8eSopenharmony_ci * @since 8 113761847f8eSopenharmony_ci */ 113861847f8eSopenharmony_ci readReport?: number; 113961847f8eSopenharmony_ci } 114061847f8eSopenharmony_ci 114161847f8eSopenharmony_ci /** 114261847f8eSopenharmony_ci * Defines the MMS message sending configuration. 114361847f8eSopenharmony_ci * 114461847f8eSopenharmony_ci * @interface MmsSendConf 114561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 114661847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 114761847f8eSopenharmony_ci * @since 8 114861847f8eSopenharmony_ci */ 114961847f8eSopenharmony_ci export interface MmsSendConf { 115061847f8eSopenharmony_ci /** 115161847f8eSopenharmony_ci * Indicates the response status for the MMS message sending configuration. 115261847f8eSopenharmony_ci * 115361847f8eSopenharmony_ci * @type { number } 115461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 115561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 115661847f8eSopenharmony_ci * @since 8 115761847f8eSopenharmony_ci */ 115861847f8eSopenharmony_ci responseState: number; 115961847f8eSopenharmony_ci 116061847f8eSopenharmony_ci /** 116161847f8eSopenharmony_ci * Indicates the transaction ID for the MMS message sending configuration. 116261847f8eSopenharmony_ci * 116361847f8eSopenharmony_ci * @type { string } 116461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 116561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 116661847f8eSopenharmony_ci * @since 8 116761847f8eSopenharmony_ci */ 116861847f8eSopenharmony_ci transactionId: string; 116961847f8eSopenharmony_ci 117061847f8eSopenharmony_ci /** 117161847f8eSopenharmony_ci * Indicates the version for the MMS message sending configuration. 117261847f8eSopenharmony_ci * 117361847f8eSopenharmony_ci * @type { MmsVersionType } 117461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 117561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 117661847f8eSopenharmony_ci * @since 8 117761847f8eSopenharmony_ci */ 117861847f8eSopenharmony_ci version: MmsVersionType; 117961847f8eSopenharmony_ci 118061847f8eSopenharmony_ci /** 118161847f8eSopenharmony_ci * Indicates the message ID for the MMS message sending configuration. 118261847f8eSopenharmony_ci * 118361847f8eSopenharmony_ci * @type { ?string } 118461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 118561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 118661847f8eSopenharmony_ci * @since 8 118761847f8eSopenharmony_ci */ 118861847f8eSopenharmony_ci messageId?: string; 118961847f8eSopenharmony_ci } 119061847f8eSopenharmony_ci 119161847f8eSopenharmony_ci /** 119261847f8eSopenharmony_ci * Defines an MMS notification indication. 119361847f8eSopenharmony_ci * 119461847f8eSopenharmony_ci * @interface MmsNotificationInd 119561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 119661847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 119761847f8eSopenharmony_ci * @since 8 119861847f8eSopenharmony_ci */ 119961847f8eSopenharmony_ci export interface MmsNotificationInd { 120061847f8eSopenharmony_ci /** 120161847f8eSopenharmony_ci * Indicates the transaction ID for the MMS notification indication. 120261847f8eSopenharmony_ci * 120361847f8eSopenharmony_ci * @type { string } 120461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 120561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 120661847f8eSopenharmony_ci * @since 8 120761847f8eSopenharmony_ci */ 120861847f8eSopenharmony_ci transactionId: string; 120961847f8eSopenharmony_ci 121061847f8eSopenharmony_ci /** 121161847f8eSopenharmony_ci * Indicates the message class for the MMS notification indication. 121261847f8eSopenharmony_ci * 121361847f8eSopenharmony_ci * @type { number } 121461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 121561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 121661847f8eSopenharmony_ci * @since 8 121761847f8eSopenharmony_ci */ 121861847f8eSopenharmony_ci messageClass: number; 121961847f8eSopenharmony_ci 122061847f8eSopenharmony_ci /** 122161847f8eSopenharmony_ci * Indicates the message size for the MMS notification indication. 122261847f8eSopenharmony_ci * 122361847f8eSopenharmony_ci * @type { number } 122461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 122561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 122661847f8eSopenharmony_ci * @since 8 122761847f8eSopenharmony_ci */ 122861847f8eSopenharmony_ci messageSize: number; 122961847f8eSopenharmony_ci 123061847f8eSopenharmony_ci /** 123161847f8eSopenharmony_ci * Indicates the expiration for the MMS notification indication. 123261847f8eSopenharmony_ci * 123361847f8eSopenharmony_ci * @type { number } 123461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 123561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 123661847f8eSopenharmony_ci * @since 8 123761847f8eSopenharmony_ci */ 123861847f8eSopenharmony_ci expiry: number; 123961847f8eSopenharmony_ci 124061847f8eSopenharmony_ci /** 124161847f8eSopenharmony_ci * Indicates the content location for the MMS notification indication. 124261847f8eSopenharmony_ci * 124361847f8eSopenharmony_ci * @type { string } 124461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 124561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 124661847f8eSopenharmony_ci * @since 8 124761847f8eSopenharmony_ci */ 124861847f8eSopenharmony_ci contentLocation: string; 124961847f8eSopenharmony_ci 125061847f8eSopenharmony_ci /** 125161847f8eSopenharmony_ci * Indicates the version for the MMS notification indication. 125261847f8eSopenharmony_ci * 125361847f8eSopenharmony_ci * @type { MmsVersionType } 125461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 125561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 125661847f8eSopenharmony_ci * @since 8 125761847f8eSopenharmony_ci */ 125861847f8eSopenharmony_ci version: MmsVersionType; 125961847f8eSopenharmony_ci 126061847f8eSopenharmony_ci /** 126161847f8eSopenharmony_ci * Indicates the source address for the MMS notification indication. 126261847f8eSopenharmony_ci * 126361847f8eSopenharmony_ci * @type { ?MmsAddress } 126461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 126561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 126661847f8eSopenharmony_ci * @since 8 126761847f8eSopenharmony_ci */ 126861847f8eSopenharmony_ci from?: MmsAddress; 126961847f8eSopenharmony_ci 127061847f8eSopenharmony_ci /** 127161847f8eSopenharmony_ci * Indicates the subject for the MMS notification indication. 127261847f8eSopenharmony_ci * 127361847f8eSopenharmony_ci * @type { ?string } 127461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 127561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 127661847f8eSopenharmony_ci * @since 8 127761847f8eSopenharmony_ci */ 127861847f8eSopenharmony_ci subject?: string; 127961847f8eSopenharmony_ci 128061847f8eSopenharmony_ci /** 128161847f8eSopenharmony_ci * Indicates the status report for the MMS notification indication. 128261847f8eSopenharmony_ci * 128361847f8eSopenharmony_ci * @type { ?number } 128461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 128561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 128661847f8eSopenharmony_ci * @since 8 128761847f8eSopenharmony_ci */ 128861847f8eSopenharmony_ci deliveryReport?: number; 128961847f8eSopenharmony_ci 129061847f8eSopenharmony_ci /** 129161847f8eSopenharmony_ci * Indicates the content class for the MMS notification indication. 129261847f8eSopenharmony_ci * 129361847f8eSopenharmony_ci * @type { ?number } 129461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 129561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 129661847f8eSopenharmony_ci * @since 8 129761847f8eSopenharmony_ci */ 129861847f8eSopenharmony_ci contentClass?: number; 129961847f8eSopenharmony_ci } 130061847f8eSopenharmony_ci 130161847f8eSopenharmony_ci /** 130261847f8eSopenharmony_ci * Defines an MMS response indication. 130361847f8eSopenharmony_ci * 130461847f8eSopenharmony_ci * @interface MmsRespInd 130561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 130661847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 130761847f8eSopenharmony_ci * @since 8 130861847f8eSopenharmony_ci */ 130961847f8eSopenharmony_ci export interface MmsRespInd { 131061847f8eSopenharmony_ci /** 131161847f8eSopenharmony_ci * Indicates the event ID for the MMS response indication. 131261847f8eSopenharmony_ci * 131361847f8eSopenharmony_ci * @type { string } 131461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 131561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 131661847f8eSopenharmony_ci * @since 8 131761847f8eSopenharmony_ci */ 131861847f8eSopenharmony_ci transactionId: string; 131961847f8eSopenharmony_ci 132061847f8eSopenharmony_ci /** 132161847f8eSopenharmony_ci * Indicates the status for the MMS response indication. 132261847f8eSopenharmony_ci * 132361847f8eSopenharmony_ci * @type { number } 132461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 132561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 132661847f8eSopenharmony_ci * @since 8 132761847f8eSopenharmony_ci */ 132861847f8eSopenharmony_ci status: number; 132961847f8eSopenharmony_ci 133061847f8eSopenharmony_ci /** 133161847f8eSopenharmony_ci * Indicates the version for the MMS response indication. 133261847f8eSopenharmony_ci * 133361847f8eSopenharmony_ci * @type { MmsVersionType } 133461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 133561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 133661847f8eSopenharmony_ci * @since 8 133761847f8eSopenharmony_ci */ 133861847f8eSopenharmony_ci version: MmsVersionType; 133961847f8eSopenharmony_ci 134061847f8eSopenharmony_ci /** 134161847f8eSopenharmony_ci * Indicates the report allowed for the MMS response indication. 134261847f8eSopenharmony_ci * 134361847f8eSopenharmony_ci * @type { ?ReportType } 134461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 134561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 134661847f8eSopenharmony_ci * @since 8 134761847f8eSopenharmony_ci */ 134861847f8eSopenharmony_ci reportAllowed?: ReportType; 134961847f8eSopenharmony_ci } 135061847f8eSopenharmony_ci 135161847f8eSopenharmony_ci /** 135261847f8eSopenharmony_ci * Defines the MMS message retrieval configuration. 135361847f8eSopenharmony_ci * 135461847f8eSopenharmony_ci * @interface MmsRetrieveConf 135561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 135661847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 135761847f8eSopenharmony_ci * @since 8 135861847f8eSopenharmony_ci */ 135961847f8eSopenharmony_ci export interface MmsRetrieveConf { 136061847f8eSopenharmony_ci /** 136161847f8eSopenharmony_ci * Indicates the transaction ID for the MMS message retrieval configuration. 136261847f8eSopenharmony_ci * 136361847f8eSopenharmony_ci * @type { string } 136461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 136561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 136661847f8eSopenharmony_ci * @since 8 136761847f8eSopenharmony_ci */ 136861847f8eSopenharmony_ci transactionId: string; 136961847f8eSopenharmony_ci 137061847f8eSopenharmony_ci /** 137161847f8eSopenharmony_ci * Indicates the message ID for the MMS message retrieval configuration. 137261847f8eSopenharmony_ci * 137361847f8eSopenharmony_ci * @type { string } 137461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 137561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 137661847f8eSopenharmony_ci * @since 8 137761847f8eSopenharmony_ci */ 137861847f8eSopenharmony_ci messageId: string; 137961847f8eSopenharmony_ci 138061847f8eSopenharmony_ci /** 138161847f8eSopenharmony_ci * Indicates the date for the MMS message retrieval configuration. 138261847f8eSopenharmony_ci * 138361847f8eSopenharmony_ci * @type { number } 138461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 138561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 138661847f8eSopenharmony_ci * @since 8 138761847f8eSopenharmony_ci */ 138861847f8eSopenharmony_ci date: number; 138961847f8eSopenharmony_ci 139061847f8eSopenharmony_ci /** 139161847f8eSopenharmony_ci * Indicates the content type for the MMS message retrieval configuration. 139261847f8eSopenharmony_ci * 139361847f8eSopenharmony_ci * @type { string } 139461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 139561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 139661847f8eSopenharmony_ci * @since 8 139761847f8eSopenharmony_ci */ 139861847f8eSopenharmony_ci contentType: string; 139961847f8eSopenharmony_ci 140061847f8eSopenharmony_ci /** 140161847f8eSopenharmony_ci * Indicates the destination address for the MMS message retrieval configuration. 140261847f8eSopenharmony_ci * 140361847f8eSopenharmony_ci * @type { Array<MmsAddress> } 140461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 140561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 140661847f8eSopenharmony_ci * @since 8 140761847f8eSopenharmony_ci */ 140861847f8eSopenharmony_ci to: Array<MmsAddress>; 140961847f8eSopenharmony_ci 141061847f8eSopenharmony_ci /** 141161847f8eSopenharmony_ci * Indicates the version for the MMS message retrieval configuration. 141261847f8eSopenharmony_ci * 141361847f8eSopenharmony_ci * @type { MmsVersionType } 141461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 141561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 141661847f8eSopenharmony_ci * @since 8 141761847f8eSopenharmony_ci */ 141861847f8eSopenharmony_ci version: MmsVersionType; 141961847f8eSopenharmony_ci 142061847f8eSopenharmony_ci /** 142161847f8eSopenharmony_ci * Indicates the source address for the MMS message retrieval configuration. 142261847f8eSopenharmony_ci * 142361847f8eSopenharmony_ci * @type { ?MmsAddress } 142461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 142561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 142661847f8eSopenharmony_ci * @since 8 142761847f8eSopenharmony_ci */ 142861847f8eSopenharmony_ci from?: MmsAddress; 142961847f8eSopenharmony_ci 143061847f8eSopenharmony_ci /** 143161847f8eSopenharmony_ci * Indicates the carbon copy address for the MMS message retrieval configuration. 143261847f8eSopenharmony_ci * 143361847f8eSopenharmony_ci * @type { ?Array<MmsAddress> } 143461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 143561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 143661847f8eSopenharmony_ci * @since 8 143761847f8eSopenharmony_ci */ 143861847f8eSopenharmony_ci cc?: Array<MmsAddress>; 143961847f8eSopenharmony_ci 144061847f8eSopenharmony_ci /** 144161847f8eSopenharmony_ci * Indicates the subject for the MMS message retrieval configuration. 144261847f8eSopenharmony_ci * 144361847f8eSopenharmony_ci * @type { ?string } 144461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 144561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 144661847f8eSopenharmony_ci * @since 8 144761847f8eSopenharmony_ci */ 144861847f8eSopenharmony_ci subject?: string; 144961847f8eSopenharmony_ci 145061847f8eSopenharmony_ci /** 145161847f8eSopenharmony_ci * Indicates the priority for the MMS message retrieval configuration. 145261847f8eSopenharmony_ci * 145361847f8eSopenharmony_ci * @type { ?MmsPriorityType } 145461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 145561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 145661847f8eSopenharmony_ci * @since 8 145761847f8eSopenharmony_ci */ 145861847f8eSopenharmony_ci priority?: MmsPriorityType; 145961847f8eSopenharmony_ci 146061847f8eSopenharmony_ci /** 146161847f8eSopenharmony_ci * Indicates the status report for the MMS message retrieval configuration. 146261847f8eSopenharmony_ci * 146361847f8eSopenharmony_ci * @type { ?number } 146461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 146561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 146661847f8eSopenharmony_ci * @since 8 146761847f8eSopenharmony_ci */ 146861847f8eSopenharmony_ci deliveryReport?: number; 146961847f8eSopenharmony_ci 147061847f8eSopenharmony_ci /** 147161847f8eSopenharmony_ci * Indicates the read report for the MMS message retrieval configuration. 147261847f8eSopenharmony_ci * 147361847f8eSopenharmony_ci * @type { ?number } 147461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 147561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 147661847f8eSopenharmony_ci * @since 8 147761847f8eSopenharmony_ci */ 147861847f8eSopenharmony_ci readReport?: number; 147961847f8eSopenharmony_ci 148061847f8eSopenharmony_ci /** 148161847f8eSopenharmony_ci * Indicates the retrieval status for the MMS message retrieval configuration. 148261847f8eSopenharmony_ci * 148361847f8eSopenharmony_ci * @type { ?number } 148461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 148561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 148661847f8eSopenharmony_ci * @since 8 148761847f8eSopenharmony_ci */ 148861847f8eSopenharmony_ci retrieveStatus?: number; 148961847f8eSopenharmony_ci 149061847f8eSopenharmony_ci /** 149161847f8eSopenharmony_ci * Indicates the retrieval text for the MMS message retrieval configuration. 149261847f8eSopenharmony_ci * 149361847f8eSopenharmony_ci * @type { ?string } 149461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 149561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 149661847f8eSopenharmony_ci * @since 8 149761847f8eSopenharmony_ci */ 149861847f8eSopenharmony_ci retrieveText?: string; 149961847f8eSopenharmony_ci } 150061847f8eSopenharmony_ci 150161847f8eSopenharmony_ci /** 150261847f8eSopenharmony_ci * Defines an MMS confirmation indication. 150361847f8eSopenharmony_ci * 150461847f8eSopenharmony_ci * @interface MmsAcknowledgeInd 150561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 150661847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 150761847f8eSopenharmony_ci * @since 8 150861847f8eSopenharmony_ci */ 150961847f8eSopenharmony_ci export interface MmsAcknowledgeInd { 151061847f8eSopenharmony_ci /** 151161847f8eSopenharmony_ci * Indicates the transaction ID for the MMS confirmation indication. 151261847f8eSopenharmony_ci * 151361847f8eSopenharmony_ci * @type { string } 151461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 151561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 151661847f8eSopenharmony_ci * @since 8 151761847f8eSopenharmony_ci */ 151861847f8eSopenharmony_ci transactionId: string; 151961847f8eSopenharmony_ci 152061847f8eSopenharmony_ci /** 152161847f8eSopenharmony_ci * Indicates the version for the MMS confirmation indication. 152261847f8eSopenharmony_ci * 152361847f8eSopenharmony_ci * @type { MmsVersionType } 152461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 152561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 152661847f8eSopenharmony_ci * @since 8 152761847f8eSopenharmony_ci */ 152861847f8eSopenharmony_ci version: MmsVersionType; 152961847f8eSopenharmony_ci 153061847f8eSopenharmony_ci /** 153161847f8eSopenharmony_ci * Indicates the report allowed for the MMS confirmation indication. 153261847f8eSopenharmony_ci * 153361847f8eSopenharmony_ci * @type { ?ReportType } 153461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 153561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 153661847f8eSopenharmony_ci * @since 8 153761847f8eSopenharmony_ci */ 153861847f8eSopenharmony_ci reportAllowed?: ReportType; 153961847f8eSopenharmony_ci } 154061847f8eSopenharmony_ci 154161847f8eSopenharmony_ci /** 154261847f8eSopenharmony_ci * Defines an MMS message delivery indication. 154361847f8eSopenharmony_ci * 154461847f8eSopenharmony_ci * @interface MmsDeliveryInd 154561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 154661847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 154761847f8eSopenharmony_ci * @since 8 154861847f8eSopenharmony_ci */ 154961847f8eSopenharmony_ci export interface MmsDeliveryInd { 155061847f8eSopenharmony_ci /** 155161847f8eSopenharmony_ci * Indicates the message ID for the MMS message delivery indication. 155261847f8eSopenharmony_ci * 155361847f8eSopenharmony_ci * @type { string } 155461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 155561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 155661847f8eSopenharmony_ci * @since 8 155761847f8eSopenharmony_ci */ 155861847f8eSopenharmony_ci messageId: string; 155961847f8eSopenharmony_ci 156061847f8eSopenharmony_ci /** 156161847f8eSopenharmony_ci * Indicates the date for the MMS message delivery indication. 156261847f8eSopenharmony_ci * 156361847f8eSopenharmony_ci * @type { number } 156461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 156561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 156661847f8eSopenharmony_ci * @since 8 156761847f8eSopenharmony_ci */ 156861847f8eSopenharmony_ci date: number; 156961847f8eSopenharmony_ci 157061847f8eSopenharmony_ci /** 157161847f8eSopenharmony_ci * Indicates the destination address for the MMS message delivery indication. 157261847f8eSopenharmony_ci * 157361847f8eSopenharmony_ci * @type { Array<MmsAddress> } 157461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 157561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 157661847f8eSopenharmony_ci * @since 8 157761847f8eSopenharmony_ci */ 157861847f8eSopenharmony_ci to: Array<MmsAddress>; 157961847f8eSopenharmony_ci 158061847f8eSopenharmony_ci /** 158161847f8eSopenharmony_ci * Indicates the status for the MMS message delivery indication. 158261847f8eSopenharmony_ci * 158361847f8eSopenharmony_ci * @type { number } 158461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 158561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 158661847f8eSopenharmony_ci * @since 8 158761847f8eSopenharmony_ci */ 158861847f8eSopenharmony_ci status: number; 158961847f8eSopenharmony_ci 159061847f8eSopenharmony_ci /** 159161847f8eSopenharmony_ci * Indicates the version for the MMS message delivery indication. 159261847f8eSopenharmony_ci * 159361847f8eSopenharmony_ci * @type { MmsVersionType } 159461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 159561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 159661847f8eSopenharmony_ci * @since 8 159761847f8eSopenharmony_ci */ 159861847f8eSopenharmony_ci version: MmsVersionType; 159961847f8eSopenharmony_ci } 160061847f8eSopenharmony_ci 160161847f8eSopenharmony_ci /** 160261847f8eSopenharmony_ci * Defines the original MMS message reading indication. 160361847f8eSopenharmony_ci * 160461847f8eSopenharmony_ci * @interface MmsReadOrigInd 160561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 160661847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 160761847f8eSopenharmony_ci * @since 8 160861847f8eSopenharmony_ci */ 160961847f8eSopenharmony_ci export interface MmsReadOrigInd { 161061847f8eSopenharmony_ci /** 161161847f8eSopenharmony_ci * Indicates the version for the original MMS message reading indication. 161261847f8eSopenharmony_ci * 161361847f8eSopenharmony_ci * @type { MmsVersionType } 161461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 161561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 161661847f8eSopenharmony_ci * @since 8 161761847f8eSopenharmony_ci */ 161861847f8eSopenharmony_ci version: MmsVersionType; 161961847f8eSopenharmony_ci 162061847f8eSopenharmony_ci /** 162161847f8eSopenharmony_ci * Indicates the message ID for the original MMS message reading indication. 162261847f8eSopenharmony_ci * 162361847f8eSopenharmony_ci * @type { string } 162461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 162561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 162661847f8eSopenharmony_ci * @since 8 162761847f8eSopenharmony_ci */ 162861847f8eSopenharmony_ci messageId: string; 162961847f8eSopenharmony_ci 163061847f8eSopenharmony_ci /** 163161847f8eSopenharmony_ci * Indicates the destination address for the original MMS message reading indication. 163261847f8eSopenharmony_ci * 163361847f8eSopenharmony_ci * @type { Array<MmsAddress> } 163461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 163561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 163661847f8eSopenharmony_ci * @since 8 163761847f8eSopenharmony_ci */ 163861847f8eSopenharmony_ci to: Array<MmsAddress>; 163961847f8eSopenharmony_ci 164061847f8eSopenharmony_ci /** 164161847f8eSopenharmony_ci * Indicates the source address for the original MMS message reading indication. 164261847f8eSopenharmony_ci * 164361847f8eSopenharmony_ci * @type { MmsAddress } 164461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 164561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 164661847f8eSopenharmony_ci * @since 8 164761847f8eSopenharmony_ci */ 164861847f8eSopenharmony_ci from: MmsAddress; 164961847f8eSopenharmony_ci 165061847f8eSopenharmony_ci /** 165161847f8eSopenharmony_ci * Indicates the date for the original MMS message reading indication. 165261847f8eSopenharmony_ci * 165361847f8eSopenharmony_ci * @type { number } 165461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 165561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 165661847f8eSopenharmony_ci * @since 8 165761847f8eSopenharmony_ci */ 165861847f8eSopenharmony_ci date: number; 165961847f8eSopenharmony_ci 166061847f8eSopenharmony_ci /** 166161847f8eSopenharmony_ci * Indicates the read status for the original MMS message reading indication. 166261847f8eSopenharmony_ci * 166361847f8eSopenharmony_ci * @type { number } 166461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 166561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 166661847f8eSopenharmony_ci * @since 8 166761847f8eSopenharmony_ci */ 166861847f8eSopenharmony_ci readStatus: number; 166961847f8eSopenharmony_ci } 167061847f8eSopenharmony_ci 167161847f8eSopenharmony_ci /** 167261847f8eSopenharmony_ci * Defines the MMS message reading indication. 167361847f8eSopenharmony_ci * 167461847f8eSopenharmony_ci * @interface MmsReadRecInd 167561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 167661847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 167761847f8eSopenharmony_ci * @since 8 167861847f8eSopenharmony_ci */ 167961847f8eSopenharmony_ci export interface MmsReadRecInd { 168061847f8eSopenharmony_ci /** 168161847f8eSopenharmony_ci * Indicates the version for the MMS message reading indication. 168261847f8eSopenharmony_ci * 168361847f8eSopenharmony_ci * @type { MmsVersionType } 168461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 168561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 168661847f8eSopenharmony_ci * @since 8 168761847f8eSopenharmony_ci */ 168861847f8eSopenharmony_ci version: MmsVersionType; 168961847f8eSopenharmony_ci 169061847f8eSopenharmony_ci /** 169161847f8eSopenharmony_ci * Indicates the message ID for the MMS message reading indication. 169261847f8eSopenharmony_ci * 169361847f8eSopenharmony_ci * @type { string } 169461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 169561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 169661847f8eSopenharmony_ci * @since 8 169761847f8eSopenharmony_ci */ 169861847f8eSopenharmony_ci messageId: string; 169961847f8eSopenharmony_ci 170061847f8eSopenharmony_ci /** 170161847f8eSopenharmony_ci * Indicates the destination address for the MMS message reading indication. 170261847f8eSopenharmony_ci * 170361847f8eSopenharmony_ci * @type { Array<MmsAddress> } 170461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 170561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 170661847f8eSopenharmony_ci * @since 8 170761847f8eSopenharmony_ci */ 170861847f8eSopenharmony_ci to: Array<MmsAddress>; 170961847f8eSopenharmony_ci 171061847f8eSopenharmony_ci /** 171161847f8eSopenharmony_ci * Indicates the source address for the MMS message reading indication. 171261847f8eSopenharmony_ci * 171361847f8eSopenharmony_ci * @type { MmsAddress } 171461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 171561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 171661847f8eSopenharmony_ci * @since 8 171761847f8eSopenharmony_ci */ 171861847f8eSopenharmony_ci from: MmsAddress; 171961847f8eSopenharmony_ci 172061847f8eSopenharmony_ci /** 172161847f8eSopenharmony_ci * Indicates the read status for the MMS message reading indication. 172261847f8eSopenharmony_ci * 172361847f8eSopenharmony_ci * @type { number } 172461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 172561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 172661847f8eSopenharmony_ci * @since 8 172761847f8eSopenharmony_ci */ 172861847f8eSopenharmony_ci readStatus: number; 172961847f8eSopenharmony_ci 173061847f8eSopenharmony_ci /** 173161847f8eSopenharmony_ci * Indicates the date for the MMS message reading indication. 173261847f8eSopenharmony_ci * 173361847f8eSopenharmony_ci * @type { ?number } 173461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 173561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 173661847f8eSopenharmony_ci * @since 8 173761847f8eSopenharmony_ci */ 173861847f8eSopenharmony_ci date?: number; 173961847f8eSopenharmony_ci } 174061847f8eSopenharmony_ci 174161847f8eSopenharmony_ci /** 174261847f8eSopenharmony_ci * Defines the attachment of an MMS message. 174361847f8eSopenharmony_ci * 174461847f8eSopenharmony_ci * @interface MmsAttachment 174561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 174661847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 174761847f8eSopenharmony_ci * @since 8 174861847f8eSopenharmony_ci */ 174961847f8eSopenharmony_ci export interface MmsAttachment { 175061847f8eSopenharmony_ci /** 175161847f8eSopenharmony_ci * Indicates the content ID for the attachment. 175261847f8eSopenharmony_ci * 175361847f8eSopenharmony_ci * @type { string } 175461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 175561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 175661847f8eSopenharmony_ci * @since 8 175761847f8eSopenharmony_ci */ 175861847f8eSopenharmony_ci contentId: string; 175961847f8eSopenharmony_ci 176061847f8eSopenharmony_ci /** 176161847f8eSopenharmony_ci * Indicates the content location. 176261847f8eSopenharmony_ci * 176361847f8eSopenharmony_ci * @type { string } 176461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 176561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 176661847f8eSopenharmony_ci * @since 8 176761847f8eSopenharmony_ci */ 176861847f8eSopenharmony_ci contentLocation: string; 176961847f8eSopenharmony_ci 177061847f8eSopenharmony_ci /** 177161847f8eSopenharmony_ci * Indicates the content disposition for the attachment. 177261847f8eSopenharmony_ci * 177361847f8eSopenharmony_ci * @type { DispositionType } 177461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 177561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 177661847f8eSopenharmony_ci * @since 8 177761847f8eSopenharmony_ci */ 177861847f8eSopenharmony_ci contentDisposition: DispositionType; 177961847f8eSopenharmony_ci 178061847f8eSopenharmony_ci /** 178161847f8eSopenharmony_ci * Indicates the encoding for content transfer. 178261847f8eSopenharmony_ci * 178361847f8eSopenharmony_ci * @type { string } 178461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 178561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 178661847f8eSopenharmony_ci * @since 8 178761847f8eSopenharmony_ci */ 178861847f8eSopenharmony_ci contentTransferEncoding: string; 178961847f8eSopenharmony_ci 179061847f8eSopenharmony_ci /** 179161847f8eSopenharmony_ci * Indicates the content type for the attachment. 179261847f8eSopenharmony_ci * 179361847f8eSopenharmony_ci * @type { string } 179461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 179561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 179661847f8eSopenharmony_ci * @since 8 179761847f8eSopenharmony_ci */ 179861847f8eSopenharmony_ci contentType: string; 179961847f8eSopenharmony_ci 180061847f8eSopenharmony_ci /** 180161847f8eSopenharmony_ci * Indicates whether the synchronized multimedia integration language is used. 180261847f8eSopenharmony_ci * 180361847f8eSopenharmony_ci * @type { boolean } 180461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 180561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 180661847f8eSopenharmony_ci * @since 8 180761847f8eSopenharmony_ci */ 180861847f8eSopenharmony_ci isSmil: boolean; 180961847f8eSopenharmony_ci 181061847f8eSopenharmony_ci /** 181161847f8eSopenharmony_ci * Indicates the path for the attachment. 181261847f8eSopenharmony_ci * 181361847f8eSopenharmony_ci * @type { ?string } 181461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 181561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 181661847f8eSopenharmony_ci * @since 8 181761847f8eSopenharmony_ci */ 181861847f8eSopenharmony_ci path?: string; 181961847f8eSopenharmony_ci 182061847f8eSopenharmony_ci /** 182161847f8eSopenharmony_ci * Indicates whether the message is in the buffer. 182261847f8eSopenharmony_ci * 182361847f8eSopenharmony_ci * @type { ?Array<number> } 182461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 182561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 182661847f8eSopenharmony_ci * @since 8 182761847f8eSopenharmony_ci */ 182861847f8eSopenharmony_ci inBuff?: Array<number>; 182961847f8eSopenharmony_ci 183061847f8eSopenharmony_ci /** 183161847f8eSopenharmony_ci * Indicates the file name for the attachment. 183261847f8eSopenharmony_ci * 183361847f8eSopenharmony_ci * @type { ?string } 183461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 183561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 183661847f8eSopenharmony_ci * @since 8 183761847f8eSopenharmony_ci */ 183861847f8eSopenharmony_ci fileName?: string; 183961847f8eSopenharmony_ci 184061847f8eSopenharmony_ci /** 184161847f8eSopenharmony_ci * Indicates the character set for the attachment. 184261847f8eSopenharmony_ci * 184361847f8eSopenharmony_ci * @type { ?MmsCharSets } 184461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 184561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 184661847f8eSopenharmony_ci * @since 8 184761847f8eSopenharmony_ci */ 184861847f8eSopenharmony_ci charset?: MmsCharSets; 184961847f8eSopenharmony_ci } 185061847f8eSopenharmony_ci 185161847f8eSopenharmony_ci /** 185261847f8eSopenharmony_ci * Defines an MMSC address. 185361847f8eSopenharmony_ci * 185461847f8eSopenharmony_ci * @interface MmsAddress 185561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 185661847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 185761847f8eSopenharmony_ci * @since 8 185861847f8eSopenharmony_ci */ 185961847f8eSopenharmony_ci export interface MmsAddress { 186061847f8eSopenharmony_ci /** 186161847f8eSopenharmony_ci * Indicates the network address for the MMSC address. 186261847f8eSopenharmony_ci * 186361847f8eSopenharmony_ci * @type { string } 186461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 186561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 186661847f8eSopenharmony_ci * @since 8 186761847f8eSopenharmony_ci */ 186861847f8eSopenharmony_ci address: string; 186961847f8eSopenharmony_ci 187061847f8eSopenharmony_ci /** 187161847f8eSopenharmony_ci * Indicates the character set for the MMSC address. 187261847f8eSopenharmony_ci * 187361847f8eSopenharmony_ci * @type { MmsCharSets } 187461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 187561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 187661847f8eSopenharmony_ci * @since 8 187761847f8eSopenharmony_ci */ 187861847f8eSopenharmony_ci charset: MmsCharSets; 187961847f8eSopenharmony_ci } 188061847f8eSopenharmony_ci 188161847f8eSopenharmony_ci /** 188261847f8eSopenharmony_ci * Enumerates message type. 188361847f8eSopenharmony_ci * 188461847f8eSopenharmony_ci * @enum { number } 188561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 188661847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 188761847f8eSopenharmony_ci * @since 8 188861847f8eSopenharmony_ci */ 188961847f8eSopenharmony_ci export enum MessageType { 189061847f8eSopenharmony_ci /** 189161847f8eSopenharmony_ci * Indicates an MMS message sending request. 189261847f8eSopenharmony_ci * 189361847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 189461847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 189561847f8eSopenharmony_ci * @since 8 189661847f8eSopenharmony_ci */ 189761847f8eSopenharmony_ci TYPE_MMS_SEND_REQ = 128, 189861847f8eSopenharmony_ci 189961847f8eSopenharmony_ci /** 190061847f8eSopenharmony_ci * Indicates an MMS message sending configuration. 190161847f8eSopenharmony_ci * 190261847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 190361847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 190461847f8eSopenharmony_ci * @since 8 190561847f8eSopenharmony_ci */ 190661847f8eSopenharmony_ci TYPE_MMS_SEND_CONF, 190761847f8eSopenharmony_ci 190861847f8eSopenharmony_ci /** 190961847f8eSopenharmony_ci * Indicates an MMS notification. 191061847f8eSopenharmony_ci * 191161847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 191261847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 191361847f8eSopenharmony_ci * @since 8 191461847f8eSopenharmony_ci */ 191561847f8eSopenharmony_ci TYPE_MMS_NOTIFICATION_IND, 191661847f8eSopenharmony_ci 191761847f8eSopenharmony_ci /** 191861847f8eSopenharmony_ci * Indicates an MMS message response. 191961847f8eSopenharmony_ci * 192061847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 192161847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 192261847f8eSopenharmony_ci * @since 8 192361847f8eSopenharmony_ci */ 192461847f8eSopenharmony_ci TYPE_MMS_RESP_IND, 192561847f8eSopenharmony_ci 192661847f8eSopenharmony_ci /** 192761847f8eSopenharmony_ci * Indicates an MMS message retrieval configuration. 192861847f8eSopenharmony_ci * 192961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 193061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 193161847f8eSopenharmony_ci * @since 8 193261847f8eSopenharmony_ci */ 193361847f8eSopenharmony_ci TYPE_MMS_RETRIEVE_CONF, 193461847f8eSopenharmony_ci 193561847f8eSopenharmony_ci /** 193661847f8eSopenharmony_ci * Indicates the type of multimedia message confirmation index. 193761847f8eSopenharmony_ci * 193861847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 193961847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 194061847f8eSopenharmony_ci * @since 8 194161847f8eSopenharmony_ci */ 194261847f8eSopenharmony_ci TYPE_MMS_ACKNOWLEDGE_IND, 194361847f8eSopenharmony_ci 194461847f8eSopenharmony_ci /** 194561847f8eSopenharmony_ci * Indicates an MMS message delivery. 194661847f8eSopenharmony_ci * 194761847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 194861847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 194961847f8eSopenharmony_ci * @since 8 195061847f8eSopenharmony_ci */ 195161847f8eSopenharmony_ci TYPE_MMS_DELIVERY_IND, 195261847f8eSopenharmony_ci 195361847f8eSopenharmony_ci /** 195461847f8eSopenharmony_ci * Indicates an MMS message read report on the recipient side. 195561847f8eSopenharmony_ci * 195661847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 195761847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 195861847f8eSopenharmony_ci * @since 8 195961847f8eSopenharmony_ci */ 196061847f8eSopenharmony_ci TYPE_MMS_READ_REC_IND, 196161847f8eSopenharmony_ci 196261847f8eSopenharmony_ci /** 196361847f8eSopenharmony_ci * Indicates an original MMS message read report on the originating side. 196461847f8eSopenharmony_ci * 196561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 196661847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 196761847f8eSopenharmony_ci * @since 8 196861847f8eSopenharmony_ci */ 196961847f8eSopenharmony_ci TYPE_MMS_READ_ORIG_IND, 197061847f8eSopenharmony_ci } 197161847f8eSopenharmony_ci 197261847f8eSopenharmony_ci /** 197361847f8eSopenharmony_ci * Enumerates MMS message priorities. 197461847f8eSopenharmony_ci * 197561847f8eSopenharmony_ci * @enum { number } 197661847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 197761847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 197861847f8eSopenharmony_ci * @since 8 197961847f8eSopenharmony_ci */ 198061847f8eSopenharmony_ci export enum MmsPriorityType { 198161847f8eSopenharmony_ci /** 198261847f8eSopenharmony_ci * Indicates low priority. 198361847f8eSopenharmony_ci * 198461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 198561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 198661847f8eSopenharmony_ci * @since 8 198761847f8eSopenharmony_ci */ 198861847f8eSopenharmony_ci MMS_LOW = 128, 198961847f8eSopenharmony_ci 199061847f8eSopenharmony_ci /** 199161847f8eSopenharmony_ci * Indicates normal priority. 199261847f8eSopenharmony_ci * 199361847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 199461847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 199561847f8eSopenharmony_ci * @since 8 199661847f8eSopenharmony_ci */ 199761847f8eSopenharmony_ci MMS_NORMAL, 199861847f8eSopenharmony_ci 199961847f8eSopenharmony_ci /** 200061847f8eSopenharmony_ci * Indicates high priority. 200161847f8eSopenharmony_ci * 200261847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 200361847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 200461847f8eSopenharmony_ci * @since 8 200561847f8eSopenharmony_ci */ 200661847f8eSopenharmony_ci MMS_HIGH, 200761847f8eSopenharmony_ci } 200861847f8eSopenharmony_ci 200961847f8eSopenharmony_ci /** 201061847f8eSopenharmony_ci * Enumerates MMS versions. 201161847f8eSopenharmony_ci * 201261847f8eSopenharmony_ci * @enum { number } 201361847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 201461847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 201561847f8eSopenharmony_ci * @since 8 201661847f8eSopenharmony_ci */ 201761847f8eSopenharmony_ci export enum MmsVersionType { 201861847f8eSopenharmony_ci /** 201961847f8eSopenharmony_ci * Indicates MMS version 1_0. 202061847f8eSopenharmony_ci * 202161847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 202261847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 202361847f8eSopenharmony_ci * @since 8 202461847f8eSopenharmony_ci */ 202561847f8eSopenharmony_ci MMS_VERSION_1_0 = 0x10, 202661847f8eSopenharmony_ci 202761847f8eSopenharmony_ci /** 202861847f8eSopenharmony_ci * Indicates MMS version 1_1. 202961847f8eSopenharmony_ci * 203061847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 203161847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 203261847f8eSopenharmony_ci * @since 8 203361847f8eSopenharmony_ci */ 203461847f8eSopenharmony_ci MMS_VERSION_1_1, 203561847f8eSopenharmony_ci 203661847f8eSopenharmony_ci /** 203761847f8eSopenharmony_ci * Indicates MMS version 1_2. 203861847f8eSopenharmony_ci * 203961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 204061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 204161847f8eSopenharmony_ci * @since 8 204261847f8eSopenharmony_ci */ 204361847f8eSopenharmony_ci MMS_VERSION_1_2, 204461847f8eSopenharmony_ci 204561847f8eSopenharmony_ci /** 204661847f8eSopenharmony_ci * Indicates MMS version 1_3. 204761847f8eSopenharmony_ci * 204861847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 204961847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 205061847f8eSopenharmony_ci * @since 8 205161847f8eSopenharmony_ci */ 205261847f8eSopenharmony_ci MMS_VERSION_1_3, 205361847f8eSopenharmony_ci } 205461847f8eSopenharmony_ci 205561847f8eSopenharmony_ci /** 205661847f8eSopenharmony_ci * Enumerates MMS character sets. 205761847f8eSopenharmony_ci * 205861847f8eSopenharmony_ci * @enum { number } 205961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 206061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 206161847f8eSopenharmony_ci * @since 8 206261847f8eSopenharmony_ci */ 206361847f8eSopenharmony_ci export enum MmsCharSets { 206461847f8eSopenharmony_ci /** 206561847f8eSopenharmony_ci * Indicates the BIG5 format. 206661847f8eSopenharmony_ci * 206761847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 206861847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 206961847f8eSopenharmony_ci * @since 8 207061847f8eSopenharmony_ci */ 207161847f8eSopenharmony_ci BIG5 = 0X07EA, 207261847f8eSopenharmony_ci 207361847f8eSopenharmony_ci /** 207461847f8eSopenharmony_ci * Indicates the ISO_10646_UCS_2 format. 207561847f8eSopenharmony_ci * 207661847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 207761847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 207861847f8eSopenharmony_ci * @since 8 207961847f8eSopenharmony_ci */ 208061847f8eSopenharmony_ci ISO_10646_UCS_2 = 0X03E8, 208161847f8eSopenharmony_ci 208261847f8eSopenharmony_ci /** 208361847f8eSopenharmony_ci * Indicates the ISO_8859_1 format. 208461847f8eSopenharmony_ci * 208561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 208661847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 208761847f8eSopenharmony_ci * @since 8 208861847f8eSopenharmony_ci */ 208961847f8eSopenharmony_ci ISO_8859_1 = 0X04, 209061847f8eSopenharmony_ci 209161847f8eSopenharmony_ci /** 209261847f8eSopenharmony_ci * Indicates the ISO_8859_2 format. 209361847f8eSopenharmony_ci * 209461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 209561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 209661847f8eSopenharmony_ci * @since 8 209761847f8eSopenharmony_ci */ 209861847f8eSopenharmony_ci ISO_8859_2, 209961847f8eSopenharmony_ci 210061847f8eSopenharmony_ci /** 210161847f8eSopenharmony_ci * Indicates the ISO_8859_3 format. 210261847f8eSopenharmony_ci * 210361847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 210461847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 210561847f8eSopenharmony_ci * @since 8 210661847f8eSopenharmony_ci */ 210761847f8eSopenharmony_ci ISO_8859_3, 210861847f8eSopenharmony_ci 210961847f8eSopenharmony_ci /** 211061847f8eSopenharmony_ci * Indicates the ISO_8859_4 format. 211161847f8eSopenharmony_ci * 211261847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 211361847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 211461847f8eSopenharmony_ci * @since 8 211561847f8eSopenharmony_ci */ 211661847f8eSopenharmony_ci ISO_8859_4, 211761847f8eSopenharmony_ci 211861847f8eSopenharmony_ci /** 211961847f8eSopenharmony_ci * Indicates the ISO_8859_5 format. 212061847f8eSopenharmony_ci * 212161847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 212261847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 212361847f8eSopenharmony_ci * @since 8 212461847f8eSopenharmony_ci */ 212561847f8eSopenharmony_ci ISO_8859_5, 212661847f8eSopenharmony_ci 212761847f8eSopenharmony_ci /** 212861847f8eSopenharmony_ci * Indicates the ISO_8859_6 format. 212961847f8eSopenharmony_ci * 213061847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 213161847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 213261847f8eSopenharmony_ci * @since 8 213361847f8eSopenharmony_ci */ 213461847f8eSopenharmony_ci ISO_8859_6, 213561847f8eSopenharmony_ci 213661847f8eSopenharmony_ci /** 213761847f8eSopenharmony_ci * Indicates the ISO_8859_7 format. 213861847f8eSopenharmony_ci * 213961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 214061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 214161847f8eSopenharmony_ci * @since 8 214261847f8eSopenharmony_ci */ 214361847f8eSopenharmony_ci ISO_8859_7, 214461847f8eSopenharmony_ci 214561847f8eSopenharmony_ci /** 214661847f8eSopenharmony_ci * Indicates the ISO_8859_8 format. 214761847f8eSopenharmony_ci * 214861847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 214961847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 215061847f8eSopenharmony_ci * @since 8 215161847f8eSopenharmony_ci */ 215261847f8eSopenharmony_ci ISO_8859_8, 215361847f8eSopenharmony_ci 215461847f8eSopenharmony_ci /** 215561847f8eSopenharmony_ci * Indicates the ISO_8859_9 format. 215661847f8eSopenharmony_ci * 215761847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 215861847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 215961847f8eSopenharmony_ci * @since 8 216061847f8eSopenharmony_ci */ 216161847f8eSopenharmony_ci ISO_8859_9, 216261847f8eSopenharmony_ci 216361847f8eSopenharmony_ci /** 216461847f8eSopenharmony_ci * Indicates the SHIFT_JIS format. 216561847f8eSopenharmony_ci * 216661847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 216761847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 216861847f8eSopenharmony_ci * @since 8 216961847f8eSopenharmony_ci */ 217061847f8eSopenharmony_ci SHIFT_JIS = 0X11, 217161847f8eSopenharmony_ci 217261847f8eSopenharmony_ci /** 217361847f8eSopenharmony_ci * Indicates the US_ASCII format. 217461847f8eSopenharmony_ci * 217561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 217661847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 217761847f8eSopenharmony_ci * @since 8 217861847f8eSopenharmony_ci */ 217961847f8eSopenharmony_ci US_ASCII = 0X03, 218061847f8eSopenharmony_ci 218161847f8eSopenharmony_ci /** 218261847f8eSopenharmony_ci * Indicates the UTF_8 format. 218361847f8eSopenharmony_ci * 218461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 218561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 218661847f8eSopenharmony_ci * @since 8 218761847f8eSopenharmony_ci */ 218861847f8eSopenharmony_ci UTF_8 = 0X6A, 218961847f8eSopenharmony_ci } 219061847f8eSopenharmony_ci 219161847f8eSopenharmony_ci /** 219261847f8eSopenharmony_ci * Enumerates disposition types. 219361847f8eSopenharmony_ci * 219461847f8eSopenharmony_ci * @enum { number } 219561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 219661847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 219761847f8eSopenharmony_ci * @since 8 219861847f8eSopenharmony_ci */ 219961847f8eSopenharmony_ci export enum DispositionType { 220061847f8eSopenharmony_ci /** 220161847f8eSopenharmony_ci * Indicates the data source type. 220261847f8eSopenharmony_ci * 220361847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 220461847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 220561847f8eSopenharmony_ci * @since 8 220661847f8eSopenharmony_ci */ 220761847f8eSopenharmony_ci FROM_DATA = 0, 220861847f8eSopenharmony_ci 220961847f8eSopenharmony_ci /** 221061847f8eSopenharmony_ci * Indicates the attachment type. 221161847f8eSopenharmony_ci * 221261847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 221361847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 221461847f8eSopenharmony_ci * @since 8 221561847f8eSopenharmony_ci */ 221661847f8eSopenharmony_ci ATTACHMENT, 221761847f8eSopenharmony_ci 221861847f8eSopenharmony_ci /** 221961847f8eSopenharmony_ci * Indicates the inlining type. 222061847f8eSopenharmony_ci * 222161847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 222261847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 222361847f8eSopenharmony_ci * @since 8 222461847f8eSopenharmony_ci */ 222561847f8eSopenharmony_ci INLINE, 222661847f8eSopenharmony_ci } 222761847f8eSopenharmony_ci 222861847f8eSopenharmony_ci /** 222961847f8eSopenharmony_ci * Enumerates report types. 223061847f8eSopenharmony_ci * 223161847f8eSopenharmony_ci * @enum { number } 223261847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 223361847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 223461847f8eSopenharmony_ci * @since 8 223561847f8eSopenharmony_ci */ 223661847f8eSopenharmony_ci export enum ReportType { 223761847f8eSopenharmony_ci /** 223861847f8eSopenharmony_ci * Indicates that a report is required. 223961847f8eSopenharmony_ci * 224061847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 224161847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 224261847f8eSopenharmony_ci * @since 8 224361847f8eSopenharmony_ci */ 224461847f8eSopenharmony_ci MMS_YES = 128, 224561847f8eSopenharmony_ci 224661847f8eSopenharmony_ci /** 224761847f8eSopenharmony_ci * Indicates that a report is not required. 224861847f8eSopenharmony_ci * 224961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 225061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 225161847f8eSopenharmony_ci * @since 8 225261847f8eSopenharmony_ci */ 225361847f8eSopenharmony_ci MMS_NO, 225461847f8eSopenharmony_ci } 225561847f8eSopenharmony_ci 225661847f8eSopenharmony_ci /** 225761847f8eSopenharmony_ci * Defines the cell broadcast configuration options. 225861847f8eSopenharmony_ci * 225961847f8eSopenharmony_ci * @interface CBConfigOptions 226061847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 226161847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 226261847f8eSopenharmony_ci * @since 7 226361847f8eSopenharmony_ci */ 226461847f8eSopenharmony_ci export interface CBConfigOptions { 226561847f8eSopenharmony_ci /** 226661847f8eSopenharmony_ci * Indicates the card slot ID for the cell broadcast configuration options. 226761847f8eSopenharmony_ci * 226861847f8eSopenharmony_ci * @type { number } 226961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 227061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 227161847f8eSopenharmony_ci * @since 7 227261847f8eSopenharmony_ci */ 227361847f8eSopenharmony_ci slotId: number; 227461847f8eSopenharmony_ci 227561847f8eSopenharmony_ci /** 227661847f8eSopenharmony_ci * Indicates whether to enable cell broadcast. 227761847f8eSopenharmony_ci * 227861847f8eSopenharmony_ci * @type { boolean } 227961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 228061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 228161847f8eSopenharmony_ci * @since 7 228261847f8eSopenharmony_ci */ 228361847f8eSopenharmony_ci enable: boolean; 228461847f8eSopenharmony_ci 228561847f8eSopenharmony_ci /** 228661847f8eSopenharmony_ci * Indicates the start message ID for the cell broadcast configuration options. 228761847f8eSopenharmony_ci * 228861847f8eSopenharmony_ci * @type { number } 228961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 229061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 229161847f8eSopenharmony_ci * @since 7 229261847f8eSopenharmony_ci */ 229361847f8eSopenharmony_ci startMessageId: number; 229461847f8eSopenharmony_ci 229561847f8eSopenharmony_ci /** 229661847f8eSopenharmony_ci * Indicates the end message ID for the cell broadcast configuration options. 229761847f8eSopenharmony_ci * 229861847f8eSopenharmony_ci * @type { number } 229961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 230061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 230161847f8eSopenharmony_ci * @since 7 230261847f8eSopenharmony_ci */ 230361847f8eSopenharmony_ci endMessageId: number; 230461847f8eSopenharmony_ci 230561847f8eSopenharmony_ci /** 230661847f8eSopenharmony_ci * Indicates the RAN type for the cell broadcast configuration options. 230761847f8eSopenharmony_ci * 230861847f8eSopenharmony_ci * @type { RanType } 230961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 231061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 231161847f8eSopenharmony_ci * @since 7 231261847f8eSopenharmony_ci */ 231361847f8eSopenharmony_ci ranType: RanType; 231461847f8eSopenharmony_ci } 231561847f8eSopenharmony_ci 231661847f8eSopenharmony_ci /** 231761847f8eSopenharmony_ci * Defines the SIM message options. 231861847f8eSopenharmony_ci * 231961847f8eSopenharmony_ci * @interface SimMessageOptions 232061847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 232161847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 232261847f8eSopenharmony_ci * @since 7 232361847f8eSopenharmony_ci */ 232461847f8eSopenharmony_ci export interface SimMessageOptions { 232561847f8eSopenharmony_ci /** 232661847f8eSopenharmony_ci * Indicates the card slot ID for the SIM message options. 232761847f8eSopenharmony_ci * 232861847f8eSopenharmony_ci * @type { number } 232961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 233061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 233161847f8eSopenharmony_ci * @since 7 233261847f8eSopenharmony_ci */ 233361847f8eSopenharmony_ci slotId: number; 233461847f8eSopenharmony_ci 233561847f8eSopenharmony_ci /** 233661847f8eSopenharmony_ci * Indicates the short message service center for the SIM message options. 233761847f8eSopenharmony_ci * 233861847f8eSopenharmony_ci * @type { string } 233961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 234061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 234161847f8eSopenharmony_ci * @since 7 234261847f8eSopenharmony_ci */ 234361847f8eSopenharmony_ci smsc: string; 234461847f8eSopenharmony_ci 234561847f8eSopenharmony_ci /** 234661847f8eSopenharmony_ci * Indicates the protocol data unit for the SIM message options. 234761847f8eSopenharmony_ci * 234861847f8eSopenharmony_ci * @type { string } 234961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 235061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 235161847f8eSopenharmony_ci * @since 7 235261847f8eSopenharmony_ci */ 235361847f8eSopenharmony_ci pdu: string; 235461847f8eSopenharmony_ci 235561847f8eSopenharmony_ci /** 235661847f8eSopenharmony_ci * Indicates the status for the SIM message options. 235761847f8eSopenharmony_ci * 235861847f8eSopenharmony_ci * @type { SimMessageStatus } 235961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 236061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 236161847f8eSopenharmony_ci * @since 7 236261847f8eSopenharmony_ci */ 236361847f8eSopenharmony_ci status: SimMessageStatus; 236461847f8eSopenharmony_ci } 236561847f8eSopenharmony_ci 236661847f8eSopenharmony_ci /** 236761847f8eSopenharmony_ci * Defines the updating SIM message options. 236861847f8eSopenharmony_ci * 236961847f8eSopenharmony_ci * @interface UpdateSimMessageOptions 237061847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 237161847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 237261847f8eSopenharmony_ci * @since 7 237361847f8eSopenharmony_ci */ 237461847f8eSopenharmony_ci export interface UpdateSimMessageOptions { 237561847f8eSopenharmony_ci /** 237661847f8eSopenharmony_ci * Indicates the card slot ID for the updating SIM message options. 237761847f8eSopenharmony_ci * 237861847f8eSopenharmony_ci * @type { number } 237961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 238061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 238161847f8eSopenharmony_ci * @since 7 238261847f8eSopenharmony_ci */ 238361847f8eSopenharmony_ci slotId: number; 238461847f8eSopenharmony_ci 238561847f8eSopenharmony_ci /** 238661847f8eSopenharmony_ci * Indicates the message index for the updating SIM message options. 238761847f8eSopenharmony_ci * 238861847f8eSopenharmony_ci * @type { number } 238961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 239061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 239161847f8eSopenharmony_ci * @since 7 239261847f8eSopenharmony_ci */ 239361847f8eSopenharmony_ci msgIndex: number; 239461847f8eSopenharmony_ci 239561847f8eSopenharmony_ci /** 239661847f8eSopenharmony_ci * Indicates the new status for the updating SIM message options. 239761847f8eSopenharmony_ci * 239861847f8eSopenharmony_ci * @type { SimMessageStatus } 239961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 240061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 240161847f8eSopenharmony_ci * @since 7 240261847f8eSopenharmony_ci */ 240361847f8eSopenharmony_ci newStatus: SimMessageStatus; 240461847f8eSopenharmony_ci 240561847f8eSopenharmony_ci /** 240661847f8eSopenharmony_ci * Indicates the protocol data unit for the updating SIM message options. 240761847f8eSopenharmony_ci * 240861847f8eSopenharmony_ci * @type { string } 240961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 241061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 241161847f8eSopenharmony_ci * @since 7 241261847f8eSopenharmony_ci */ 241361847f8eSopenharmony_ci pdu: string; 241461847f8eSopenharmony_ci 241561847f8eSopenharmony_ci /** 241661847f8eSopenharmony_ci * Indicates the short message service center for the updating SIM message options. 241761847f8eSopenharmony_ci * 241861847f8eSopenharmony_ci * @type { string } 241961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 242061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 242161847f8eSopenharmony_ci * @since 7 242261847f8eSopenharmony_ci */ 242361847f8eSopenharmony_ci smsc: string; 242461847f8eSopenharmony_ci } 242561847f8eSopenharmony_ci 242661847f8eSopenharmony_ci /** 242761847f8eSopenharmony_ci * Defines an SMS message instance. 242861847f8eSopenharmony_ci * 242961847f8eSopenharmony_ci * @interface ShortMessage 243061847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 243161847f8eSopenharmony_ci * @since 6 243261847f8eSopenharmony_ci */ 243361847f8eSopenharmony_ci export interface ShortMessage { 243461847f8eSopenharmony_ci /** 243561847f8eSopenharmony_ci * Indicates the SMS message body. 243661847f8eSopenharmony_ci * 243761847f8eSopenharmony_ci * @type { string } 243861847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 243961847f8eSopenharmony_ci * @since 6 244061847f8eSopenharmony_ci */ 244161847f8eSopenharmony_ci visibleMessageBody: string; 244261847f8eSopenharmony_ci 244361847f8eSopenharmony_ci /** 244461847f8eSopenharmony_ci * Indicates the address of the sender, which is to be displayed on the UI. 244561847f8eSopenharmony_ci * 244661847f8eSopenharmony_ci * @type { string } 244761847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 244861847f8eSopenharmony_ci * @since 6 244961847f8eSopenharmony_ci */ 245061847f8eSopenharmony_ci visibleRawAddress: string; 245161847f8eSopenharmony_ci 245261847f8eSopenharmony_ci /** 245361847f8eSopenharmony_ci * Indicates the SMS type. 245461847f8eSopenharmony_ci * 245561847f8eSopenharmony_ci * @type { ShortMessageClass } 245661847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 245761847f8eSopenharmony_ci * @since 6 245861847f8eSopenharmony_ci */ 245961847f8eSopenharmony_ci messageClass: ShortMessageClass; 246061847f8eSopenharmony_ci 246161847f8eSopenharmony_ci /** 246261847f8eSopenharmony_ci * Indicates the protocol identifier. 246361847f8eSopenharmony_ci * 246461847f8eSopenharmony_ci * @type { number } 246561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 246661847f8eSopenharmony_ci * @since 6 246761847f8eSopenharmony_ci */ 246861847f8eSopenharmony_ci protocolId: number; 246961847f8eSopenharmony_ci 247061847f8eSopenharmony_ci /** 247161847f8eSopenharmony_ci * Indicates the short message service center (SMSC) address. 247261847f8eSopenharmony_ci * 247361847f8eSopenharmony_ci * @type { string } 247461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 247561847f8eSopenharmony_ci * @since 6 247661847f8eSopenharmony_ci */ 247761847f8eSopenharmony_ci scAddress: string; 247861847f8eSopenharmony_ci 247961847f8eSopenharmony_ci /** 248061847f8eSopenharmony_ci * Indicates the SMSC timestamp. 248161847f8eSopenharmony_ci * 248261847f8eSopenharmony_ci * @type { number } 248361847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 248461847f8eSopenharmony_ci * @since 6 248561847f8eSopenharmony_ci */ 248661847f8eSopenharmony_ci scTimestamp: number; 248761847f8eSopenharmony_ci 248861847f8eSopenharmony_ci /** 248961847f8eSopenharmony_ci * Indicates whether the received SMS is a "replace short message". 249061847f8eSopenharmony_ci * 249161847f8eSopenharmony_ci * @type { boolean } 249261847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 249361847f8eSopenharmony_ci * @since 6 249461847f8eSopenharmony_ci */ 249561847f8eSopenharmony_ci isReplaceMessage: boolean; 249661847f8eSopenharmony_ci 249761847f8eSopenharmony_ci /** 249861847f8eSopenharmony_ci * Indicates whether the received SMS contains "TP-Reply-Path". 249961847f8eSopenharmony_ci * 250061847f8eSopenharmony_ci * @type { boolean } 250161847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 250261847f8eSopenharmony_ci * @since 6 250361847f8eSopenharmony_ci */ 250461847f8eSopenharmony_ci hasReplyPath: boolean; 250561847f8eSopenharmony_ci 250661847f8eSopenharmony_ci /** 250761847f8eSopenharmony_ci * Indicates Protocol Data Units (PDUs) from an SMS message. 250861847f8eSopenharmony_ci * 250961847f8eSopenharmony_ci * @type { Array<number> } 251061847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 251161847f8eSopenharmony_ci * @since 6 251261847f8eSopenharmony_ci */ 251361847f8eSopenharmony_ci pdu: Array<number>; 251461847f8eSopenharmony_ci 251561847f8eSopenharmony_ci /** 251661847f8eSopenharmony_ci * Indicates the SMS message status from the SMS-STATUS-REPORT message sent by the 251761847f8eSopenharmony_ci * Short Message Service Center (SMSC). 251861847f8eSopenharmony_ci * 251961847f8eSopenharmony_ci * @type { number } 252061847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 252161847f8eSopenharmony_ci * @since 6 252261847f8eSopenharmony_ci */ 252361847f8eSopenharmony_ci status: number; 252461847f8eSopenharmony_ci 252561847f8eSopenharmony_ci /** 252661847f8eSopenharmony_ci * Indicates whether the current message is SMS-STATUS-REPORT. 252761847f8eSopenharmony_ci * 252861847f8eSopenharmony_ci * @type { boolean } 252961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 253061847f8eSopenharmony_ci * @since 6 253161847f8eSopenharmony_ci */ 253261847f8eSopenharmony_ci isSmsStatusReportMessage: boolean; 253361847f8eSopenharmony_ci } 253461847f8eSopenharmony_ci 253561847f8eSopenharmony_ci /** 253661847f8eSopenharmony_ci * Defines a SIM message. 253761847f8eSopenharmony_ci * 253861847f8eSopenharmony_ci * @interface SimShortMessage 253961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 254061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 254161847f8eSopenharmony_ci * @since 7 254261847f8eSopenharmony_ci */ 254361847f8eSopenharmony_ci export interface SimShortMessage { 254461847f8eSopenharmony_ci /** 254561847f8eSopenharmony_ci * Indicates the SMS message in the SIM. 254661847f8eSopenharmony_ci * 254761847f8eSopenharmony_ci * @type { ShortMessage } 254861847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 254961847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 255061847f8eSopenharmony_ci * @since 7 255161847f8eSopenharmony_ci */ 255261847f8eSopenharmony_ci shortMessage: ShortMessage; 255361847f8eSopenharmony_ci 255461847f8eSopenharmony_ci /** 255561847f8eSopenharmony_ci * Indicates the storage status of SMS messages in the SIM. 255661847f8eSopenharmony_ci * 255761847f8eSopenharmony_ci * @type { SimMessageStatus } 255861847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 255961847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 256061847f8eSopenharmony_ci * @since 7 256161847f8eSopenharmony_ci */ 256261847f8eSopenharmony_ci simMessageStatus: SimMessageStatus; 256361847f8eSopenharmony_ci 256461847f8eSopenharmony_ci /** 256561847f8eSopenharmony_ci * Indicates the index of SMS messages in the SIM. 256661847f8eSopenharmony_ci * 256761847f8eSopenharmony_ci * @type { number } 256861847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 256961847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 257061847f8eSopenharmony_ci * @since 7 257161847f8eSopenharmony_ci */ 257261847f8eSopenharmony_ci indexOnSim: number; 257361847f8eSopenharmony_ci } 257461847f8eSopenharmony_ci 257561847f8eSopenharmony_ci /** 257661847f8eSopenharmony_ci * Defines the SIM message status. 257761847f8eSopenharmony_ci * 257861847f8eSopenharmony_ci * @enum { number } 257961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 258061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 258161847f8eSopenharmony_ci * @since 7 258261847f8eSopenharmony_ci */ 258361847f8eSopenharmony_ci export enum SimMessageStatus { 258461847f8eSopenharmony_ci /** 258561847f8eSopenharmony_ci * Status free space on SIM. 258661847f8eSopenharmony_ci * 258761847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 258861847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 258961847f8eSopenharmony_ci * @since 7 259061847f8eSopenharmony_ci */ 259161847f8eSopenharmony_ci SIM_MESSAGE_STATUS_FREE = 0, 259261847f8eSopenharmony_ci 259361847f8eSopenharmony_ci /** 259461847f8eSopenharmony_ci * Indicates a read message. 259561847f8eSopenharmony_ci * 259661847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 259761847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 259861847f8eSopenharmony_ci * @since 7 259961847f8eSopenharmony_ci */ 260061847f8eSopenharmony_ci SIM_MESSAGE_STATUS_READ = 1, 260161847f8eSopenharmony_ci 260261847f8eSopenharmony_ci /** 260361847f8eSopenharmony_ci * Indicates an unread message. 260461847f8eSopenharmony_ci * 260561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 260661847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 260761847f8eSopenharmony_ci * @since 7 260861847f8eSopenharmony_ci */ 260961847f8eSopenharmony_ci SIM_MESSAGE_STATUS_UNREAD = 3, 261061847f8eSopenharmony_ci 261161847f8eSopenharmony_ci /** 261261847f8eSopenharmony_ci * Indicates a sent message (only applicable to SMS). 261361847f8eSopenharmony_ci * 261461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 261561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 261661847f8eSopenharmony_ci * @since 7 261761847f8eSopenharmony_ci */ 261861847f8eSopenharmony_ci SIM_MESSAGE_STATUS_SENT = 5, 261961847f8eSopenharmony_ci 262061847f8eSopenharmony_ci /** 262161847f8eSopenharmony_ci * Indicates an unsent message (only applicable to SMS). 262261847f8eSopenharmony_ci * 262361847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 262461847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 262561847f8eSopenharmony_ci * @since 7 262661847f8eSopenharmony_ci */ 262761847f8eSopenharmony_ci SIM_MESSAGE_STATUS_UNSENT = 7, 262861847f8eSopenharmony_ci } 262961847f8eSopenharmony_ci 263061847f8eSopenharmony_ci /** 263161847f8eSopenharmony_ci * Enumerates SMS message types. 263261847f8eSopenharmony_ci * 263361847f8eSopenharmony_ci * @enum { number } 263461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 263561847f8eSopenharmony_ci * @since 6 263661847f8eSopenharmony_ci */ 263761847f8eSopenharmony_ci export enum ShortMessageClass { 263861847f8eSopenharmony_ci /** 263961847f8eSopenharmony_ci * Indicates an unknown type. 264061847f8eSopenharmony_ci * 264161847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 264261847f8eSopenharmony_ci * @since 6 264361847f8eSopenharmony_ci */ 264461847f8eSopenharmony_ci UNKNOWN, 264561847f8eSopenharmony_ci 264661847f8eSopenharmony_ci /** 264761847f8eSopenharmony_ci * Indicates an instant message, which is displayed immediately after being received. 264861847f8eSopenharmony_ci * 264961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 265061847f8eSopenharmony_ci * @since 6 265161847f8eSopenharmony_ci */ 265261847f8eSopenharmony_ci INSTANT_MESSAGE, 265361847f8eSopenharmony_ci 265461847f8eSopenharmony_ci /** 265561847f8eSopenharmony_ci * Indicates an SMS message that can be stored on the device or SIM card based on the storage status. 265661847f8eSopenharmony_ci * 265761847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 265861847f8eSopenharmony_ci * @since 6 265961847f8eSopenharmony_ci */ 266061847f8eSopenharmony_ci OPTIONAL_MESSAGE, 266161847f8eSopenharmony_ci 266261847f8eSopenharmony_ci /** 266361847f8eSopenharmony_ci * Indicates an SMS message containing SIM card information, which is to be stored in a SIM card. 266461847f8eSopenharmony_ci * 266561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 266661847f8eSopenharmony_ci * @since 6 266761847f8eSopenharmony_ci */ 266861847f8eSopenharmony_ci SIM_MESSAGE, 266961847f8eSopenharmony_ci 267061847f8eSopenharmony_ci /** 267161847f8eSopenharmony_ci * Indicates an SMS message to be forwarded to another device. 267261847f8eSopenharmony_ci * 267361847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 267461847f8eSopenharmony_ci * @since 6 267561847f8eSopenharmony_ci */ 267661847f8eSopenharmony_ci FORWARD_MESSAGE 267761847f8eSopenharmony_ci } 267861847f8eSopenharmony_ci 267961847f8eSopenharmony_ci /** 268061847f8eSopenharmony_ci * Provides the options (including callbacks) for sending an SMS message. 268161847f8eSopenharmony_ci * 268261847f8eSopenharmony_ci * @interface SendMessageOptions 268361847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 268461847f8eSopenharmony_ci * @since 6 268561847f8eSopenharmony_ci */ 268661847f8eSopenharmony_ci export interface SendMessageOptions { 268761847f8eSopenharmony_ci /** 268861847f8eSopenharmony_ci * Indicates the ID of the SIM card slot used for sending the SMS message. 268961847f8eSopenharmony_ci * 269061847f8eSopenharmony_ci * @type { number } 269161847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 269261847f8eSopenharmony_ci * @since 6 269361847f8eSopenharmony_ci */ 269461847f8eSopenharmony_ci slotId: number; 269561847f8eSopenharmony_ci 269661847f8eSopenharmony_ci /** 269761847f8eSopenharmony_ci * Indicates the address to which the SMS message is sent. 269861847f8eSopenharmony_ci * 269961847f8eSopenharmony_ci * @type { string } 270061847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 270161847f8eSopenharmony_ci * @since 6 270261847f8eSopenharmony_ci */ 270361847f8eSopenharmony_ci destinationHost: string; 270461847f8eSopenharmony_ci 270561847f8eSopenharmony_ci /** 270661847f8eSopenharmony_ci * Indicates the SMSC address. If the value is {@code null}, the default SMSC address of the SIM card. 270761847f8eSopenharmony_ci * 270861847f8eSopenharmony_ci * @type { ?string } 270961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 271061847f8eSopenharmony_ci * @since 6 271161847f8eSopenharmony_ci */ 271261847f8eSopenharmony_ci serviceCenter?: string; 271361847f8eSopenharmony_ci 271461847f8eSopenharmony_ci /** 271561847f8eSopenharmony_ci * If the content is a string, this is a short message. If the content is a byte array, this is a data message. 271661847f8eSopenharmony_ci * 271761847f8eSopenharmony_ci * @type { string | Array<number> } 271861847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 271961847f8eSopenharmony_ci * @since 6 272061847f8eSopenharmony_ci */ 272161847f8eSopenharmony_ci content: string | Array<number>; 272261847f8eSopenharmony_ci 272361847f8eSopenharmony_ci /** 272461847f8eSopenharmony_ci * If send data message, destinationPort is mandatory. Otherwise is optional. 272561847f8eSopenharmony_ci * 272661847f8eSopenharmony_ci * @type { ?number } 272761847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 272861847f8eSopenharmony_ci * @since 6 272961847f8eSopenharmony_ci */ 273061847f8eSopenharmony_ci destinationPort?: number; 273161847f8eSopenharmony_ci 273261847f8eSopenharmony_ci /** 273361847f8eSopenharmony_ci * Indicates the callback invoked after the SMS message is sent. 273461847f8eSopenharmony_ci * 273561847f8eSopenharmony_ci * @type { ?AsyncCallback<ISendShortMessageCallback> } 273661847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 273761847f8eSopenharmony_ci * @since 6 273861847f8eSopenharmony_ci */ 273961847f8eSopenharmony_ci sendCallback?: AsyncCallback<ISendShortMessageCallback>; 274061847f8eSopenharmony_ci 274161847f8eSopenharmony_ci /** 274261847f8eSopenharmony_ci * Indicates the callback invoked after the SMS message is delivered. 274361847f8eSopenharmony_ci * 274461847f8eSopenharmony_ci * @type { ?AsyncCallback<IDeliveryShortMessageCallback> } 274561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 274661847f8eSopenharmony_ci * @since 6 274761847f8eSopenharmony_ci */ 274861847f8eSopenharmony_ci deliveryCallback?: AsyncCallback<IDeliveryShortMessageCallback>; 274961847f8eSopenharmony_ci } 275061847f8eSopenharmony_ci 275161847f8eSopenharmony_ci /** 275261847f8eSopenharmony_ci * Provides the callback for the SMS message sending result. 275361847f8eSopenharmony_ci * 275461847f8eSopenharmony_ci * @interface ISendShortMessageCallback 275561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 275661847f8eSopenharmony_ci * @since 6 275761847f8eSopenharmony_ci */ 275861847f8eSopenharmony_ci export interface ISendShortMessageCallback { 275961847f8eSopenharmony_ci /** 276061847f8eSopenharmony_ci * Indicates the SMS message sending result. 276161847f8eSopenharmony_ci * 276261847f8eSopenharmony_ci * @type { SendSmsResult } 276361847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 276461847f8eSopenharmony_ci * @since 6 276561847f8eSopenharmony_ci */ 276661847f8eSopenharmony_ci result: SendSmsResult; 276761847f8eSopenharmony_ci 276861847f8eSopenharmony_ci /** 276961847f8eSopenharmony_ci * Indicates the URI to store the sent SMS message. 277061847f8eSopenharmony_ci * 277161847f8eSopenharmony_ci * @type { string } 277261847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 277361847f8eSopenharmony_ci * @since 6 277461847f8eSopenharmony_ci */ 277561847f8eSopenharmony_ci url: string; 277661847f8eSopenharmony_ci 277761847f8eSopenharmony_ci /** 277861847f8eSopenharmony_ci * Specifies whether this is the last part of a multi-part SMS message. 277961847f8eSopenharmony_ci * 278061847f8eSopenharmony_ci * @type { boolean } 278161847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 278261847f8eSopenharmony_ci * @since 6 278361847f8eSopenharmony_ci */ 278461847f8eSopenharmony_ci isLastPart: boolean; 278561847f8eSopenharmony_ci } 278661847f8eSopenharmony_ci 278761847f8eSopenharmony_ci /** 278861847f8eSopenharmony_ci * Provides the callback for the SMS message delivery report. 278961847f8eSopenharmony_ci * 279061847f8eSopenharmony_ci * @interface IDeliveryShortMessageCallback 279161847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 279261847f8eSopenharmony_ci * @since 6 279361847f8eSopenharmony_ci */ 279461847f8eSopenharmony_ci export interface IDeliveryShortMessageCallback { 279561847f8eSopenharmony_ci /** 279661847f8eSopenharmony_ci * Indicates the SMS delivery report. 279761847f8eSopenharmony_ci * 279861847f8eSopenharmony_ci * @type { Array<number> } 279961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 280061847f8eSopenharmony_ci * @since 6 280161847f8eSopenharmony_ci */ 280261847f8eSopenharmony_ci pdu: Array<number>; 280361847f8eSopenharmony_ci } 280461847f8eSopenharmony_ci 280561847f8eSopenharmony_ci /** 280661847f8eSopenharmony_ci * Enumerates SMS message sending results. 280761847f8eSopenharmony_ci * 280861847f8eSopenharmony_ci * @enum { number } 280961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 281061847f8eSopenharmony_ci * @since 6 281161847f8eSopenharmony_ci */ 281261847f8eSopenharmony_ci export enum SendSmsResult { 281361847f8eSopenharmony_ci /** 281461847f8eSopenharmony_ci * Indicates that the SMS message is successfully sent. 281561847f8eSopenharmony_ci * 281661847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 281761847f8eSopenharmony_ci * @since 6 281861847f8eSopenharmony_ci */ 281961847f8eSopenharmony_ci SEND_SMS_SUCCESS = 0, 282061847f8eSopenharmony_ci 282161847f8eSopenharmony_ci /** 282261847f8eSopenharmony_ci * Indicates that sending the SMS message fails due to an unknown reason. 282361847f8eSopenharmony_ci * 282461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 282561847f8eSopenharmony_ci * @since 6 282661847f8eSopenharmony_ci */ 282761847f8eSopenharmony_ci SEND_SMS_FAILURE_UNKNOWN = 1, 282861847f8eSopenharmony_ci 282961847f8eSopenharmony_ci /** 283061847f8eSopenharmony_ci * Indicates that sending the SMS fails because the modem is powered off. 283161847f8eSopenharmony_ci * 283261847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 283361847f8eSopenharmony_ci * @since 6 283461847f8eSopenharmony_ci */ 283561847f8eSopenharmony_ci SEND_SMS_FAILURE_RADIO_OFF = 2, 283661847f8eSopenharmony_ci 283761847f8eSopenharmony_ci /** 283861847f8eSopenharmony_ci * Indicates that sending the SMS message fails because the network is unavailable 283961847f8eSopenharmony_ci * or does not support sending or reception of SMS messages. 284061847f8eSopenharmony_ci * 284161847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 284261847f8eSopenharmony_ci * @since 6 284361847f8eSopenharmony_ci */ 284461847f8eSopenharmony_ci SEND_SMS_FAILURE_SERVICE_UNAVAILABLE = 3 284561847f8eSopenharmony_ci } 284661847f8eSopenharmony_ci 284761847f8eSopenharmony_ci /** 284861847f8eSopenharmony_ci * Enumerates RAN type. 284961847f8eSopenharmony_ci * 285061847f8eSopenharmony_ci * @enum { number } 285161847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 285261847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 285361847f8eSopenharmony_ci * @since 7 285461847f8eSopenharmony_ci */ 285561847f8eSopenharmony_ci export enum RanType { 285661847f8eSopenharmony_ci /** 285761847f8eSopenharmony_ci * Indicates GSM type. 285861847f8eSopenharmony_ci * 285961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 286061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 286161847f8eSopenharmony_ci * @since 7 286261847f8eSopenharmony_ci */ 286361847f8eSopenharmony_ci TYPE_GSM = 1, 286461847f8eSopenharmony_ci 286561847f8eSopenharmony_ci /** 286661847f8eSopenharmony_ci * Indicates CDMA type. 286761847f8eSopenharmony_ci * 286861847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 286961847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 287061847f8eSopenharmony_ci * @since 7 287161847f8eSopenharmony_ci */ 287261847f8eSopenharmony_ci TYPE_CDMA = 2, 287361847f8eSopenharmony_ci } 287461847f8eSopenharmony_ci 287561847f8eSopenharmony_ci /** 287661847f8eSopenharmony_ci * Defines the SMS message segment information. 287761847f8eSopenharmony_ci * 287861847f8eSopenharmony_ci * @interface SmsSegmentsInfo 287961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 288061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 288161847f8eSopenharmony_ci * @since 8 288261847f8eSopenharmony_ci */ 288361847f8eSopenharmony_ci export interface SmsSegmentsInfo { 288461847f8eSopenharmony_ci /** 288561847f8eSopenharmony_ci * Indicates the split count for the SMS message segment information. 288661847f8eSopenharmony_ci * 288761847f8eSopenharmony_ci * @type { number } 288861847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 288961847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 289061847f8eSopenharmony_ci * @since 8 289161847f8eSopenharmony_ci */ 289261847f8eSopenharmony_ci splitCount: number; 289361847f8eSopenharmony_ci 289461847f8eSopenharmony_ci /** 289561847f8eSopenharmony_ci * Indicates the encoding count for the SMS message segment information. 289661847f8eSopenharmony_ci * 289761847f8eSopenharmony_ci * @type { number } 289861847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 289961847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 290061847f8eSopenharmony_ci * @since 8 290161847f8eSopenharmony_ci */ 290261847f8eSopenharmony_ci encodeCount: number; 290361847f8eSopenharmony_ci 290461847f8eSopenharmony_ci /** 290561847f8eSopenharmony_ci * Indicates the remaining encoding count for the SMS message segment information. 290661847f8eSopenharmony_ci * 290761847f8eSopenharmony_ci * @type { number } 290861847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 290961847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 291061847f8eSopenharmony_ci * @since 8 291161847f8eSopenharmony_ci */ 291261847f8eSopenharmony_ci encodeCountRemaining: number; 291361847f8eSopenharmony_ci 291461847f8eSopenharmony_ci /** 291561847f8eSopenharmony_ci * Indicates the encoding scheme for the SMS message segment information. 291661847f8eSopenharmony_ci * 291761847f8eSopenharmony_ci * @type { SmsEncodingScheme } 291861847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 291961847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 292061847f8eSopenharmony_ci * @since 8 292161847f8eSopenharmony_ci */ 292261847f8eSopenharmony_ci scheme: SmsEncodingScheme; 292361847f8eSopenharmony_ci } 292461847f8eSopenharmony_ci 292561847f8eSopenharmony_ci /** 292661847f8eSopenharmony_ci * Enumerates SMS encoding schemes. 292761847f8eSopenharmony_ci * 292861847f8eSopenharmony_ci * @enum { number } 292961847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 293061847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 293161847f8eSopenharmony_ci * @since 8 293261847f8eSopenharmony_ci */ 293361847f8eSopenharmony_ci export enum SmsEncodingScheme { 293461847f8eSopenharmony_ci /** 293561847f8eSopenharmony_ci * Indicates an unknown encoding schemes. 293661847f8eSopenharmony_ci * 293761847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 293861847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 293961847f8eSopenharmony_ci * @since 8 294061847f8eSopenharmony_ci */ 294161847f8eSopenharmony_ci SMS_ENCODING_UNKNOWN = 0, 294261847f8eSopenharmony_ci 294361847f8eSopenharmony_ci /** 294461847f8eSopenharmony_ci * Indicates that the encoding schemes is 7-digit. 294561847f8eSopenharmony_ci * 294661847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 294761847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 294861847f8eSopenharmony_ci * @since 8 294961847f8eSopenharmony_ci */ 295061847f8eSopenharmony_ci SMS_ENCODING_7BIT, 295161847f8eSopenharmony_ci 295261847f8eSopenharmony_ci /** 295361847f8eSopenharmony_ci * Indicates that the encoding schemes is 8-digit. 295461847f8eSopenharmony_ci * 295561847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 295661847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 295761847f8eSopenharmony_ci * @since 8 295861847f8eSopenharmony_ci */ 295961847f8eSopenharmony_ci SMS_ENCODING_8BIT, 296061847f8eSopenharmony_ci 296161847f8eSopenharmony_ci /** 296261847f8eSopenharmony_ci * Indicates that the encoding schemes is 16-digit. 296361847f8eSopenharmony_ci * 296461847f8eSopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 296561847f8eSopenharmony_ci * @systemapi Hide this for inner system use. 296661847f8eSopenharmony_ci * @since 8 296761847f8eSopenharmony_ci */ 296861847f8eSopenharmony_ci SMS_ENCODING_16BIT, 296961847f8eSopenharmony_ci } 297061847f8eSopenharmony_ci} 297161847f8eSopenharmony_ci 297261847f8eSopenharmony_ciexport default sms; 2973