1e5d0e473Sopenharmony_ci/* 2e5d0e473Sopenharmony_ci * Copyright (C) 2021-2023 Huawei Device Co., Ltd. 3e5d0e473Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4e5d0e473Sopenharmony_ci * you may not use this file except in compliance with the License. 5e5d0e473Sopenharmony_ci * You may obtain a copy of the License at 6e5d0e473Sopenharmony_ci * 7e5d0e473Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8e5d0e473Sopenharmony_ci * 9e5d0e473Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10e5d0e473Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11e5d0e473Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12e5d0e473Sopenharmony_ci * See the License for the specific language governing permissions and 13e5d0e473Sopenharmony_ci * limitations under the License. 14e5d0e473Sopenharmony_ci */ 15e5d0e473Sopenharmony_ci 16e5d0e473Sopenharmony_ci/** 17e5d0e473Sopenharmony_ci * @file 18e5d0e473Sopenharmony_ci * @kit TelephonyKit 19e5d0e473Sopenharmony_ci */ 20e5d0e473Sopenharmony_ci 21e5d0e473Sopenharmony_ciimport type { AsyncCallback } from './@ohos.base'; 22e5d0e473Sopenharmony_ciimport type Context from './application/BaseContext'; 23e5d0e473Sopenharmony_ci 24e5d0e473Sopenharmony_ci/** 25e5d0e473Sopenharmony_ci * Provides the capabilities and methods for obtaining Short Message Service (SMS) management objects. 26e5d0e473Sopenharmony_ci * 27e5d0e473Sopenharmony_ci * @namespace sms 28e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 29e5d0e473Sopenharmony_ci * @since 6 30e5d0e473Sopenharmony_ci */ 31e5d0e473Sopenharmony_cideclare namespace sms { 32e5d0e473Sopenharmony_ci /** 33e5d0e473Sopenharmony_ci * Splits a long SMS message into multiple fragments. 34e5d0e473Sopenharmony_ci * 35e5d0e473Sopenharmony_ci * <p>If the length of an SMS message exceeds the maximum length allowed (140 bytes), 36e5d0e473Sopenharmony_ci * the SMS message is split into multiple segments for processing. 37e5d0e473Sopenharmony_ci * 38e5d0e473Sopenharmony_ci * @permission ohos.permission.SEND_MESSAGES 39e5d0e473Sopenharmony_ci * @param { string } content - Indicates the short message content, which cannot be {@code null}. 40e5d0e473Sopenharmony_ci * @param { AsyncCallback<Array<string>> } callback - Indicates the callback for getting a list of split segments, 41e5d0e473Sopenharmony_ci * which can be combined into a complete SMS message; 42e5d0e473Sopenharmony_ci * Returns an empty string if no permission is granted or the short message content is {@code null}. 43e5d0e473Sopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 44e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 45e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 46e5d0e473Sopenharmony_ci * Incorrect parameter types. 47e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 48e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 49e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 50e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 51e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 52e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 53e5d0e473Sopenharmony_ci * @since 8 54e5d0e473Sopenharmony_ci */ 55e5d0e473Sopenharmony_ci function splitMessage(content: string, callback: AsyncCallback<Array<string>>): void; 56e5d0e473Sopenharmony_ci 57e5d0e473Sopenharmony_ci /** 58e5d0e473Sopenharmony_ci * Splits a long SMS message into multiple fragments. 59e5d0e473Sopenharmony_ci * 60e5d0e473Sopenharmony_ci * <p>If the length of an SMS message exceeds the maximum length allowed (140 bytes), 61e5d0e473Sopenharmony_ci * the SMS message is split into multiple segments for processing. 62e5d0e473Sopenharmony_ci * 63e5d0e473Sopenharmony_ci * @permission ohos.permission.SEND_MESSAGES 64e5d0e473Sopenharmony_ci * @param { string } content - Indicates the short message content, which cannot be {@code null}. 65e5d0e473Sopenharmony_ci * @returns { Promise<Array<string>> } Returns a list of split segments, which can be combined into a complete SMS 66e5d0e473Sopenharmony_ci * message; Returns an empty string if no permission is granted or the short message content is {@code null}. 67e5d0e473Sopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 68e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 69e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 70e5d0e473Sopenharmony_ci * Incorrect parameter types. 71e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 72e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 73e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 74e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 75e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 76e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 77e5d0e473Sopenharmony_ci * @since 8 78e5d0e473Sopenharmony_ci */ 79e5d0e473Sopenharmony_ci function splitMessage(content: string): Promise<Array<string>>; 80e5d0e473Sopenharmony_ci 81e5d0e473Sopenharmony_ci /** 82e5d0e473Sopenharmony_ci * Creates an SMS message instance based on the protocol data unit (PDU) and the specified SMS protocol. 83e5d0e473Sopenharmony_ci * 84e5d0e473Sopenharmony_ci * <p>After receiving the original PDU data, the system creates an SMS message instance according to the specified 85e5d0e473Sopenharmony_ci * SMS protocol. 86e5d0e473Sopenharmony_ci * 87e5d0e473Sopenharmony_ci * @param { Array<number> } pdu - Indicates the original data, which is obtained from the received SMS. 88e5d0e473Sopenharmony_ci * @param { string } specification - Indicates the SMS protocol type. The value {@code 3gpp} indicates GSM/UMTS/LTE 89e5d0e473Sopenharmony_ci * SMS, and the value {@code 3gpp2} indicates CDMA/LTE SMS. 90e5d0e473Sopenharmony_ci * @param { AsyncCallback<ShortMessage> } callback - Indicates the callback for getting an SMS message instance; 91e5d0e473Sopenharmony_ci * Returns {@code null} if {@code pdu} is empty or {@code specification} is not supported. 92e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 93e5d0e473Sopenharmony_ci * Incorrect parameter types. 94e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 95e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 96e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 97e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 98e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 99e5d0e473Sopenharmony_ci * @since 6 100e5d0e473Sopenharmony_ci */ 101e5d0e473Sopenharmony_ci function createMessage(pdu: Array<number>, specification: string, callback: AsyncCallback<ShortMessage>): void; 102e5d0e473Sopenharmony_ci 103e5d0e473Sopenharmony_ci /** 104e5d0e473Sopenharmony_ci * Creates an SMS message instance based on the protocol data unit (PDU) and the specified SMS protocol. 105e5d0e473Sopenharmony_ci * 106e5d0e473Sopenharmony_ci * <p>After receiving the original PDU data, the system creates an SMS message instance according to the specified 107e5d0e473Sopenharmony_ci * SMS protocol. 108e5d0e473Sopenharmony_ci * 109e5d0e473Sopenharmony_ci * @param { Array<number> } pdu - Indicates the original data, which is obtained from the received SMS. 110e5d0e473Sopenharmony_ci * @param { string } specification - Indicates the SMS protocol type. The value {@code 3gpp} indicates GSM/UMTS/LTE 111e5d0e473Sopenharmony_ci * SMS, and the value {@code 3gpp2} indicates CDMA/LTE SMS. 112e5d0e473Sopenharmony_ci * @returns { Promise<ShortMessage> } Returns an SMS message instance; 113e5d0e473Sopenharmony_ci * Returns {@code null} if {@code pdu} is empty or {@code specification} is not supported. 114e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 115e5d0e473Sopenharmony_ci * Incorrect parameter types. 116e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 117e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 118e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 119e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 120e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 121e5d0e473Sopenharmony_ci * @since 6 122e5d0e473Sopenharmony_ci */ 123e5d0e473Sopenharmony_ci function createMessage(pdu: Array<number>, specification: string): Promise<ShortMessage>; 124e5d0e473Sopenharmony_ci 125e5d0e473Sopenharmony_ci /** 126e5d0e473Sopenharmony_ci * Sends a text or data SMS message. 127e5d0e473Sopenharmony_ci * 128e5d0e473Sopenharmony_ci * <p>This method checks whether the length of an SMS message exceeds the maximum length. If the 129e5d0e473Sopenharmony_ci * maximum length is exceeded, the SMS message is split into multiple parts and sent separately. 130e5d0e473Sopenharmony_ci * 131e5d0e473Sopenharmony_ci * @permission ohos.permission.SEND_MESSAGES 132e5d0e473Sopenharmony_ci * @param { SendMessageOptions } options - Indicates the parameters and callback for sending the SMS message. 133e5d0e473Sopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 134e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 135e5d0e473Sopenharmony_ci * Incorrect parameter types. 136e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 137e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 138e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 139e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 140e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 141e5d0e473Sopenharmony_ci * @since 6 142e5d0e473Sopenharmony_ci * @deprecated since 10 143e5d0e473Sopenharmony_ci * @useinstead telephony.sms#sendShortMessage 144e5d0e473Sopenharmony_ci */ 145e5d0e473Sopenharmony_ci function sendMessage(options: SendMessageOptions): void; 146e5d0e473Sopenharmony_ci 147e5d0e473Sopenharmony_ci /** 148e5d0e473Sopenharmony_ci * Sends a text or data SMS message. 149e5d0e473Sopenharmony_ci * 150e5d0e473Sopenharmony_ci * <p>This method checks whether the length of an SMS message exceeds the maximum length. If the 151e5d0e473Sopenharmony_ci * maximum length is exceeded, the SMS message is split into multiple parts and sent separately. 152e5d0e473Sopenharmony_ci * 153e5d0e473Sopenharmony_ci * @permission ohos.permission.SEND_MESSAGES 154e5d0e473Sopenharmony_ci * @param { SendMessageOptions } options - Indicates the parameters and callback for sending the SMS message. 155e5d0e473Sopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of sendShortMessage. 156e5d0e473Sopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 157e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 158e5d0e473Sopenharmony_ci * Incorrect parameter types. 159e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 160e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 161e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 162e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 163e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 164e5d0e473Sopenharmony_ci * @since 10 165e5d0e473Sopenharmony_ci */ 166e5d0e473Sopenharmony_ci function sendShortMessage(options: SendMessageOptions, callback: AsyncCallback<void>): void; 167e5d0e473Sopenharmony_ci 168e5d0e473Sopenharmony_ci /** 169e5d0e473Sopenharmony_ci * Sends a text or data SMS message. 170e5d0e473Sopenharmony_ci * 171e5d0e473Sopenharmony_ci * <p>This method checks whether the length of an SMS message exceeds the maximum length. If the 172e5d0e473Sopenharmony_ci * maximum length is exceeded, the SMS message is split into multiple parts and sent separately. 173e5d0e473Sopenharmony_ci * 174e5d0e473Sopenharmony_ci * @permission ohos.permission.SEND_MESSAGES 175e5d0e473Sopenharmony_ci * @param { SendMessageOptions } options - Indicates the parameters and callback for sending the SMS message. 176e5d0e473Sopenharmony_ci * @returns { Promise<void> } The promise returned by the sendShortMessage. 177e5d0e473Sopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 178e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 179e5d0e473Sopenharmony_ci * Incorrect parameter types. 180e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 181e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 182e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 183e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 184e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 185e5d0e473Sopenharmony_ci * @since 10 186e5d0e473Sopenharmony_ci */ 187e5d0e473Sopenharmony_ci function sendShortMessage(options: SendMessageOptions): Promise<void>; 188e5d0e473Sopenharmony_ci 189e5d0e473Sopenharmony_ci /** 190e5d0e473Sopenharmony_ci * Sets the default SIM card for sending SMS messages. You can obtain the default SIM card by 191e5d0e473Sopenharmony_ci * using {@code getDefaultSmsSlotId}. 192e5d0e473Sopenharmony_ci * 193e5d0e473Sopenharmony_ci * @permission ohos.permission.SET_TELEPHONY_STATE 194e5d0e473Sopenharmony_ci * @param { number } slotId - Indicates the default SIM card for sending SMS messages. The value {@code 0} indicates 195e5d0e473Sopenharmony_ci * card slot 1, and the value {@code 1} indicates card slot 2. 196e5d0e473Sopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of setDefaultSmsSlotId. 197e5d0e473Sopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 198e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 199e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 200e5d0e473Sopenharmony_ci * Incorrect parameter types. 201e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 202e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 203e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 204e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300004 - Do not have sim card. 205e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 206e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 207e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 208e5d0e473Sopenharmony_ci * @since 7 209e5d0e473Sopenharmony_ci */ 210e5d0e473Sopenharmony_ci function setDefaultSmsSlotId(slotId: number, callback: AsyncCallback<void>): void; 211e5d0e473Sopenharmony_ci 212e5d0e473Sopenharmony_ci /** 213e5d0e473Sopenharmony_ci * Sets the default SIM card for sending SMS messages. You can obtain the default SIM card by 214e5d0e473Sopenharmony_ci * using {@code getDefaultSmsSlotId}. 215e5d0e473Sopenharmony_ci * 216e5d0e473Sopenharmony_ci * @permission ohos.permission.SET_TELEPHONY_STATE 217e5d0e473Sopenharmony_ci * @param { number } slotId - Indicates the default SIM card for sending SMS messages. The value {@code 0} indicates 218e5d0e473Sopenharmony_ci * card slot 1, and the value {@code 1} indicates card slot 2. 219e5d0e473Sopenharmony_ci * @returns { Promise<void> } The promise returned by the setDefaultSmsSlotId. 220e5d0e473Sopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 221e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 222e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 223e5d0e473Sopenharmony_ci * Incorrect parameter types. 224e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 225e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 226e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 227e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300004 - Do not have sim card. 228e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 229e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 230e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 231e5d0e473Sopenharmony_ci * @since 7 232e5d0e473Sopenharmony_ci */ 233e5d0e473Sopenharmony_ci function setDefaultSmsSlotId(slotId: number): Promise<void>; 234e5d0e473Sopenharmony_ci 235e5d0e473Sopenharmony_ci /** 236e5d0e473Sopenharmony_ci * Obtains the default SIM card for sending SMS messages. 237e5d0e473Sopenharmony_ci * 238e5d0e473Sopenharmony_ci * @param { AsyncCallback<number> } callback - Indicates the callback for getting the default SIM card for sending SMS 239e5d0e473Sopenharmony_ci * messages. 240e5d0e473Sopenharmony_ci * Returns {@code 0} if the default SIM card for sending SMS messages is in card slot 1; 241e5d0e473Sopenharmony_ci * Returns {@code 1} if the default SIM card for sending SMS messages is in card slot 2. 242e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 243e5d0e473Sopenharmony_ci * @since 7 244e5d0e473Sopenharmony_ci */ 245e5d0e473Sopenharmony_ci function getDefaultSmsSlotId(callback: AsyncCallback<number>): void; 246e5d0e473Sopenharmony_ci 247e5d0e473Sopenharmony_ci /** 248e5d0e473Sopenharmony_ci * Obtains the default SIM card for sending SMS messages. 249e5d0e473Sopenharmony_ci * 250e5d0e473Sopenharmony_ci * @returns { Promise<number> } Returns {@code 0} if the default SIM card for sending SMS messages is in card slot 1; 251e5d0e473Sopenharmony_ci * Returns {@code 1} if the default SIM card for sending SMS messages is in card slot 2. 252e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 253e5d0e473Sopenharmony_ci * @since 7 254e5d0e473Sopenharmony_ci */ 255e5d0e473Sopenharmony_ci function getDefaultSmsSlotId(): Promise<number>; 256e5d0e473Sopenharmony_ci 257e5d0e473Sopenharmony_ci /** 258e5d0e473Sopenharmony_ci * Sets the address for the Short Message Service Center (SMSC) based on a specified slot ID. 259e5d0e473Sopenharmony_ci * 260e5d0e473Sopenharmony_ci * @permission ohos.permission.SET_TELEPHONY_STATE 261e5d0e473Sopenharmony_ci * @param { number } slotId - Indicates the ID of the slot holding the SIM card for sending SMS messages. 262e5d0e473Sopenharmony_ci * @param { string } smscAddr - Indicates the SMSC address. 263e5d0e473Sopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of setSmscAddr. 264e5d0e473Sopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 265e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 266e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 267e5d0e473Sopenharmony_ci * Incorrect parameter types. 268e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 269e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 270e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 271e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 272e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 273e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 274e5d0e473Sopenharmony_ci * @since 7 275e5d0e473Sopenharmony_ci */ 276e5d0e473Sopenharmony_ci function setSmscAddr(slotId: number, smscAddr: string, callback: AsyncCallback<void>): void; 277e5d0e473Sopenharmony_ci 278e5d0e473Sopenharmony_ci /** 279e5d0e473Sopenharmony_ci * Sets the address for the Short Message Service Center (SMSC) based on a specified slot ID. 280e5d0e473Sopenharmony_ci * 281e5d0e473Sopenharmony_ci * @permission ohos.permission.SET_TELEPHONY_STATE 282e5d0e473Sopenharmony_ci * @param { number } slotId - Indicates the ID of the slot holding the SIM card for sending SMS messages. 283e5d0e473Sopenharmony_ci * @param { string } smscAddr - Indicates the SMSC address. 284e5d0e473Sopenharmony_ci * @returns { Promise<void> } The promise returned by the setSmscAddr. 285e5d0e473Sopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 286e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 287e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 288e5d0e473Sopenharmony_ci * Incorrect parameter types. 289e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 290e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 291e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 292e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 293e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 294e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 295e5d0e473Sopenharmony_ci * @since 7 296e5d0e473Sopenharmony_ci */ 297e5d0e473Sopenharmony_ci function setSmscAddr(slotId: number, smscAddr: string): Promise<void>; 298e5d0e473Sopenharmony_ci 299e5d0e473Sopenharmony_ci /** 300e5d0e473Sopenharmony_ci * Obtains the SMSC address based on a specified slot ID. 301e5d0e473Sopenharmony_ci * 302e5d0e473Sopenharmony_ci * @permission ohos.permission.GET_TELEPHONY_STATE 303e5d0e473Sopenharmony_ci * @param { number } slotId - Indicates the ID of the slot holding the SIM card for sending SMS messages. 304e5d0e473Sopenharmony_ci * @param { AsyncCallback<string> } callback - Indicates the callback for getting the SMSC address. 305e5d0e473Sopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 306e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 307e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 308e5d0e473Sopenharmony_ci * Incorrect parameter types. 309e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 310e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 311e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 312e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 313e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 314e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 315e5d0e473Sopenharmony_ci * @since 7 316e5d0e473Sopenharmony_ci */ 317e5d0e473Sopenharmony_ci function getSmscAddr(slotId: number, callback: AsyncCallback<string>): void; 318e5d0e473Sopenharmony_ci 319e5d0e473Sopenharmony_ci /** 320e5d0e473Sopenharmony_ci * Obtains the SMSC address based on a specified slot ID. 321e5d0e473Sopenharmony_ci * 322e5d0e473Sopenharmony_ci * @permission ohos.permission.GET_TELEPHONY_STATE 323e5d0e473Sopenharmony_ci * @param { number } slotId - Indicates the ID of the slot holding the SIM card for sending SMS messages. 324e5d0e473Sopenharmony_ci * @returns { Promise<string> } Returns the SMSC address. 325e5d0e473Sopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 326e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 327e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 328e5d0e473Sopenharmony_ci * Incorrect parameter types. 329e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 330e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 331e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 332e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 333e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 334e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 335e5d0e473Sopenharmony_ci * @since 7 336e5d0e473Sopenharmony_ci */ 337e5d0e473Sopenharmony_ci function getSmscAddr(slotId: number): Promise<string>; 338e5d0e473Sopenharmony_ci 339e5d0e473Sopenharmony_ci /** 340e5d0e473Sopenharmony_ci * Returns whether a device is capable of sending and receiving SMS messages. 341e5d0e473Sopenharmony_ci * 342e5d0e473Sopenharmony_ci * @returns { boolean } Returns {@code true} if the device is capable of sending and receiving SMS messages; 343e5d0e473Sopenharmony_ci * Returns {@code false} otherwise. 344e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 345e5d0e473Sopenharmony_ci * @since 7 346e5d0e473Sopenharmony_ci */ 347e5d0e473Sopenharmony_ci function hasSmsCapability(): boolean; 348e5d0e473Sopenharmony_ci 349e5d0e473Sopenharmony_ci /** 350e5d0e473Sopenharmony_ci * Add an SMS Message to SIM card. 351e5d0e473Sopenharmony_ci * 352e5d0e473Sopenharmony_ci * @permission ohos.permission.RECEIVE_SMS and ohos.permission.SEND_MESSAGES 353e5d0e473Sopenharmony_ci * @param { SimMessageOptions } options - Indicates SIM message options. 354e5d0e473Sopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of addSimMessage. 355e5d0e473Sopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 356e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 357e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 358e5d0e473Sopenharmony_ci * Incorrect parameter types. 3. Parameter verification failed. 359e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 360e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 361e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 362e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 363e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 364e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 365e5d0e473Sopenharmony_ci * @since 7 366e5d0e473Sopenharmony_ci */ 367e5d0e473Sopenharmony_ci function addSimMessage(options: SimMessageOptions, callback: AsyncCallback<void>): void; 368e5d0e473Sopenharmony_ci 369e5d0e473Sopenharmony_ci /** 370e5d0e473Sopenharmony_ci * Add an SMS Message to SIM card. 371e5d0e473Sopenharmony_ci * 372e5d0e473Sopenharmony_ci * @permission ohos.permission.RECEIVE_SMS and ohos.permission.SEND_MESSAGES 373e5d0e473Sopenharmony_ci * @param { SimMessageOptions } options - Indicates SIM message options. 374e5d0e473Sopenharmony_ci * @returns { Promise<void> } The promise returned by the addSimMessage. 375e5d0e473Sopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 376e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 377e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 378e5d0e473Sopenharmony_ci * Incorrect parameter types. 3. Parameter verification failed. 379e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 380e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 381e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 382e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 383e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 384e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 385e5d0e473Sopenharmony_ci * @since 7 386e5d0e473Sopenharmony_ci */ 387e5d0e473Sopenharmony_ci function addSimMessage(options: SimMessageOptions): Promise<void>; 388e5d0e473Sopenharmony_ci 389e5d0e473Sopenharmony_ci /** 390e5d0e473Sopenharmony_ci * Delete an SMS Message from the SIM card. 391e5d0e473Sopenharmony_ci * 392e5d0e473Sopenharmony_ci * @permission ohos.permission.RECEIVE_SMS and ohos.permission.SEND_MESSAGES 393e5d0e473Sopenharmony_ci * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot index 394e5d0e473Sopenharmony_ci * number supported by the device. 395e5d0e473Sopenharmony_ci * @param { number } msgIndex - Indicates the message index. 396e5d0e473Sopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of delSimMessage. 397e5d0e473Sopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 398e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 399e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 400e5d0e473Sopenharmony_ci * Incorrect parameter types. 401e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 402e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 403e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 404e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 405e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 406e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 407e5d0e473Sopenharmony_ci * @since 7 408e5d0e473Sopenharmony_ci */ 409e5d0e473Sopenharmony_ci function delSimMessage(slotId: number, msgIndex: number, callback: AsyncCallback<void>): void; 410e5d0e473Sopenharmony_ci 411e5d0e473Sopenharmony_ci /** 412e5d0e473Sopenharmony_ci * Delete an SMS Message from the SIM card. 413e5d0e473Sopenharmony_ci * 414e5d0e473Sopenharmony_ci * @permission ohos.permission.RECEIVE_SMS and ohos.permission.SEND_MESSAGES 415e5d0e473Sopenharmony_ci * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot index 416e5d0e473Sopenharmony_ci * number supported by the device. 417e5d0e473Sopenharmony_ci * @param { number } msgIndex - Indicates the message index. 418e5d0e473Sopenharmony_ci * @returns { Promise<void> } The promise returned by the delSimMessage. 419e5d0e473Sopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 420e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 421e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 422e5d0e473Sopenharmony_ci * Incorrect parameter types. 423e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 424e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 425e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 426e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 427e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 428e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 429e5d0e473Sopenharmony_ci * @since 7 430e5d0e473Sopenharmony_ci */ 431e5d0e473Sopenharmony_ci function delSimMessage(slotId: number, msgIndex: number): Promise<void>; 432e5d0e473Sopenharmony_ci 433e5d0e473Sopenharmony_ci /** 434e5d0e473Sopenharmony_ci * Update a SIM SMS of SIM card. 435e5d0e473Sopenharmony_ci * 436e5d0e473Sopenharmony_ci * @permission ohos.permission.RECEIVE_SMS and ohos.permission.SEND_MESSAGES 437e5d0e473Sopenharmony_ci * @param { UpdateSimMessageOptions } options - Indicates update SIM message options. 438e5d0e473Sopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of updateSimMessage. 439e5d0e473Sopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 440e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 441e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 442e5d0e473Sopenharmony_ci * Incorrect parameter types. 3. Parameter verification failed. 443e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 444e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 445e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 446e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 447e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 448e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 449e5d0e473Sopenharmony_ci * @since 7 450e5d0e473Sopenharmony_ci */ 451e5d0e473Sopenharmony_ci function updateSimMessage(options: UpdateSimMessageOptions, callback: AsyncCallback<void>): void; 452e5d0e473Sopenharmony_ci 453e5d0e473Sopenharmony_ci /** 454e5d0e473Sopenharmony_ci * Update a SIM SMS of SIM card. 455e5d0e473Sopenharmony_ci * 456e5d0e473Sopenharmony_ci * @permission ohos.permission.RECEIVE_SMS and ohos.permission.SEND_MESSAGES 457e5d0e473Sopenharmony_ci * @param { UpdateSimMessageOptions } options - Indicates update SIM message options. 458e5d0e473Sopenharmony_ci * @returns { Promise<void> } The promise returned by the updateSimMessage. 459e5d0e473Sopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 460e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 461e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 462e5d0e473Sopenharmony_ci * Incorrect parameter types. 3. Parameter verification failed. 463e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 464e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 465e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 466e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 467e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 468e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 469e5d0e473Sopenharmony_ci * @since 7 470e5d0e473Sopenharmony_ci */ 471e5d0e473Sopenharmony_ci function updateSimMessage(options: UpdateSimMessageOptions): Promise<void>; 472e5d0e473Sopenharmony_ci 473e5d0e473Sopenharmony_ci /** 474e5d0e473Sopenharmony_ci * Get all SMS records in SIM. 475e5d0e473Sopenharmony_ci * 476e5d0e473Sopenharmony_ci * @permission ohos.permission.RECEIVE_SMS 477e5d0e473Sopenharmony_ci * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot index 478e5d0e473Sopenharmony_ci * number supported by the device. 479e5d0e473Sopenharmony_ci * @param { AsyncCallback<Array<SimShortMessage>> } callback - Indicates the callback for getting a 480e5d0e473Sopenharmony_ci * {@code SimShortMessage} object. 481e5d0e473Sopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 482e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 483e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 484e5d0e473Sopenharmony_ci * Incorrect parameter types. 485e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 486e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 487e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 488e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 489e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 490e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 491e5d0e473Sopenharmony_ci * @since 7 492e5d0e473Sopenharmony_ci */ 493e5d0e473Sopenharmony_ci function getAllSimMessages(slotId: number, callback: AsyncCallback<Array<SimShortMessage>>): void; 494e5d0e473Sopenharmony_ci 495e5d0e473Sopenharmony_ci /** 496e5d0e473Sopenharmony_ci * Get all SMS records in SIM. 497e5d0e473Sopenharmony_ci * 498e5d0e473Sopenharmony_ci * @permission ohos.permission.RECEIVE_SMS 499e5d0e473Sopenharmony_ci * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot index 500e5d0e473Sopenharmony_ci * number supported by the device. 501e5d0e473Sopenharmony_ci * @returns { Promise<Array<SimShortMessage>> } Returns a {@code SimShortMessage} object. 502e5d0e473Sopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 503e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 504e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 505e5d0e473Sopenharmony_ci * Incorrect parameter types. 506e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 507e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 508e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 509e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 510e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 511e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 512e5d0e473Sopenharmony_ci * @since 7 513e5d0e473Sopenharmony_ci */ 514e5d0e473Sopenharmony_ci function getAllSimMessages(slotId: number): Promise<Array<SimShortMessage>>; 515e5d0e473Sopenharmony_ci 516e5d0e473Sopenharmony_ci /** 517e5d0e473Sopenharmony_ci * Turn on or off Cell BroadCast. 518e5d0e473Sopenharmony_ci * 519e5d0e473Sopenharmony_ci * @permission ohos.permission.RECEIVE_SMS 520e5d0e473Sopenharmony_ci * @param { CBConfigOptions } options - Indicates cell broadcast configuration options. 521e5d0e473Sopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of setCBConfig. 522e5d0e473Sopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 523e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 524e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 525e5d0e473Sopenharmony_ci * Incorrect parameter types. 526e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 527e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 528e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 529e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 530e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 531e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 532e5d0e473Sopenharmony_ci * @since 7 533e5d0e473Sopenharmony_ci */ 534e5d0e473Sopenharmony_ci function setCBConfig(options: CBConfigOptions, callback: AsyncCallback<void>): void; 535e5d0e473Sopenharmony_ci 536e5d0e473Sopenharmony_ci /** 537e5d0e473Sopenharmony_ci * Turn on or off Cell BroadCast. 538e5d0e473Sopenharmony_ci * 539e5d0e473Sopenharmony_ci * @permission ohos.permission.RECEIVE_SMS 540e5d0e473Sopenharmony_ci * @param { CBConfigOptions } options - Indicates cell broadcast configuration options. 541e5d0e473Sopenharmony_ci * @returns { Promise<void> } The promise returned by the setCBConfig. 542e5d0e473Sopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 543e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 544e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 545e5d0e473Sopenharmony_ci * Incorrect parameter types. 546e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 547e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 548e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 549e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 550e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 551e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 552e5d0e473Sopenharmony_ci * @since 7 553e5d0e473Sopenharmony_ci */ 554e5d0e473Sopenharmony_ci function setCBConfig(options: CBConfigOptions): Promise<void>; 555e5d0e473Sopenharmony_ci 556e5d0e473Sopenharmony_ci /** 557e5d0e473Sopenharmony_ci * Get an SMS segment encode relation information. 558e5d0e473Sopenharmony_ci * 559e5d0e473Sopenharmony_ci * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot index 560e5d0e473Sopenharmony_ci * number supported by the device. 561e5d0e473Sopenharmony_ci * @param { string } message - Indicates short message. 562e5d0e473Sopenharmony_ci * @param { boolean } force7bit - Indicates whether to use 7 bit encoding. 563e5d0e473Sopenharmony_ci * @param { AsyncCallback<SmsSegmentsInfo> } callback - Indicates the callback for getting a {@code SmsSegmentsInfo} 564e5d0e473Sopenharmony_ci * object. 565e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 566e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 567e5d0e473Sopenharmony_ci * Incorrect parameter types. 3. Parameter verification failed. 568e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 569e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 570e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 571e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 572e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 573e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 574e5d0e473Sopenharmony_ci * @since 8 575e5d0e473Sopenharmony_ci */ 576e5d0e473Sopenharmony_ci function getSmsSegmentsInfo(slotId: number, message: string, force7bit: boolean, callback: AsyncCallback<SmsSegmentsInfo>): void; 577e5d0e473Sopenharmony_ci 578e5d0e473Sopenharmony_ci /** 579e5d0e473Sopenharmony_ci * Get an SMS segment encode relation information. 580e5d0e473Sopenharmony_ci * 581e5d0e473Sopenharmony_ci * @param { number } slotId - Indicates the card slot index number, ranging from 0 to the maximum card slot index 582e5d0e473Sopenharmony_ci * number supported by the device. 583e5d0e473Sopenharmony_ci * @param { string } message - Indicates short message. 584e5d0e473Sopenharmony_ci * @param { boolean } force7bit - Indicates whether to use 7 bit encoding. 585e5d0e473Sopenharmony_ci * @returns { Promise<SmsSegmentsInfo> } Returns a {@code SmsSegmentsInfo} object. 586e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 587e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 588e5d0e473Sopenharmony_ci * Incorrect parameter types. 3. Parameter verification failed. 589e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 590e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 591e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 592e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 593e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 594e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 595e5d0e473Sopenharmony_ci * @since 8 596e5d0e473Sopenharmony_ci */ 597e5d0e473Sopenharmony_ci function getSmsSegmentsInfo(slotId: number, message: string, force7bit: boolean): Promise<SmsSegmentsInfo>; 598e5d0e473Sopenharmony_ci 599e5d0e473Sopenharmony_ci /** 600e5d0e473Sopenharmony_ci * SMS over IMS is supported if IMS is registered and SMS is supported on IMS. 601e5d0e473Sopenharmony_ci * 602e5d0e473Sopenharmony_ci * @param { number } slotId - Indicates the default SIM card for Ims Sms. The value {@code 0} indicates card slot 1, 603e5d0e473Sopenharmony_ci * and the value {@code 1} indicates card slot 2. 604e5d0e473Sopenharmony_ci * @param { AsyncCallback<boolean> } callback - Indicates the callback of isImsSmsSupported. 605e5d0e473Sopenharmony_ci * Returns {@code true} if SMS over IMS is supported, {@code false} otherwise. 606e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 607e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 608e5d0e473Sopenharmony_ci * Incorrect parameter types. 609e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 610e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 611e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 612e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 613e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 614e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 615e5d0e473Sopenharmony_ci * @since 8 616e5d0e473Sopenharmony_ci */ 617e5d0e473Sopenharmony_ci function isImsSmsSupported(slotId: number, callback: AsyncCallback<boolean>): void; 618e5d0e473Sopenharmony_ci 619e5d0e473Sopenharmony_ci /** 620e5d0e473Sopenharmony_ci * SMS over IMS is supported if IMS is registered and SMS is supported on IMS. 621e5d0e473Sopenharmony_ci * 622e5d0e473Sopenharmony_ci * @param { number } slotId - Indicates the default SIM card for Ims Sms. The value {@code 0} indicates card slot 1, 623e5d0e473Sopenharmony_ci * and the value {@code 1} indicates card slot 2. 624e5d0e473Sopenharmony_ci * @returns { Promise<boolean> } Returns {@code true} if SMS over IMS is supported, {@code false} otherwise. 625e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 626e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 627e5d0e473Sopenharmony_ci * Incorrect parameter types. 628e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 629e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 630e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 631e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 632e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 633e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 634e5d0e473Sopenharmony_ci * @since 8 635e5d0e473Sopenharmony_ci */ 636e5d0e473Sopenharmony_ci function isImsSmsSupported(slotId: number): Promise<boolean>; 637e5d0e473Sopenharmony_ci 638e5d0e473Sopenharmony_ci /** 639e5d0e473Sopenharmony_ci * Gets SMS format supported on IMS. SMS over IMS format is either 3GPP or 3GPP2. 640e5d0e473Sopenharmony_ci * 641e5d0e473Sopenharmony_ci * @param { AsyncCallback<string> } callback - Indicates the callback for getting format, 3gpp, 3gpp2 or unknown. 642e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 643e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 644e5d0e473Sopenharmony_ci * Incorrect parameter types. 645e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 646e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 647e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 648e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 649e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 650e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 651e5d0e473Sopenharmony_ci * @since 8 652e5d0e473Sopenharmony_ci */ 653e5d0e473Sopenharmony_ci function getImsShortMessageFormat(callback: AsyncCallback<string>): void; 654e5d0e473Sopenharmony_ci 655e5d0e473Sopenharmony_ci /** 656e5d0e473Sopenharmony_ci * Gets SMS format supported on IMS. SMS over IMS format is either 3GPP or 3GPP2. 657e5d0e473Sopenharmony_ci * 658e5d0e473Sopenharmony_ci * @returns { Promise<string> } Returns format, 3gpp, 3gpp2 or unknown. 659e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 660e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 661e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 662e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 663e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 664e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 665e5d0e473Sopenharmony_ci * @since 8 666e5d0e473Sopenharmony_ci */ 667e5d0e473Sopenharmony_ci function getImsShortMessageFormat(): Promise<string>; 668e5d0e473Sopenharmony_ci 669e5d0e473Sopenharmony_ci /** 670e5d0e473Sopenharmony_ci * Decode the message content. 671e5d0e473Sopenharmony_ci * 672e5d0e473Sopenharmony_ci * @param { string | Array<number> } mmsFilePathName - Indicates the path name of the multimedia message file. 673e5d0e473Sopenharmony_ci * @param { AsyncCallback<MmsInformation> } callback - Indicates the callback for getting a {@code MmsInformation} 674e5d0e473Sopenharmony_ci * object. 675e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 676e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 677e5d0e473Sopenharmony_ci * Incorrect parameter types. 3. Parameter verification failed. 678e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 679e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 680e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 681e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 682e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 683e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 684e5d0e473Sopenharmony_ci * @since 8 685e5d0e473Sopenharmony_ci */ 686e5d0e473Sopenharmony_ci function decodeMms(mmsFilePathName: string | Array<number>, callback: AsyncCallback<MmsInformation>): void; 687e5d0e473Sopenharmony_ci 688e5d0e473Sopenharmony_ci /** 689e5d0e473Sopenharmony_ci * Decode the message content. 690e5d0e473Sopenharmony_ci * 691e5d0e473Sopenharmony_ci * @param { string | Array<number> } mmsFilePathName - Indicates the path name of the multimedia message file. 692e5d0e473Sopenharmony_ci * @returns { Promise<MmsInformation> } Returns a {@code MmsInformation} object. 693e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 694e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 695e5d0e473Sopenharmony_ci * Incorrect parameter types. 3. Parameter verification failed. 696e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 697e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 698e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 699e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 700e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 701e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 702e5d0e473Sopenharmony_ci * @since 8 703e5d0e473Sopenharmony_ci */ 704e5d0e473Sopenharmony_ci function decodeMms(mmsFilePathName: string | Array<number>): Promise<MmsInformation>; 705e5d0e473Sopenharmony_ci 706e5d0e473Sopenharmony_ci /** 707e5d0e473Sopenharmony_ci * Encode the message content. 708e5d0e473Sopenharmony_ci * 709e5d0e473Sopenharmony_ci * @param { MmsInformation } mms - Indicates MMS messages. 710e5d0e473Sopenharmony_ci * @param { AsyncCallback<Array<number>> } callback - Indicates the callback for getting the result of MMS encoding. 711e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 712e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 713e5d0e473Sopenharmony_ci * Incorrect parameter types. 3. Parameter verification failed. 714e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 715e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 716e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 717e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 718e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 719e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 720e5d0e473Sopenharmony_ci * @since 8 721e5d0e473Sopenharmony_ci */ 722e5d0e473Sopenharmony_ci function encodeMms(mms: MmsInformation, callback: AsyncCallback<Array<number>>): void; 723e5d0e473Sopenharmony_ci 724e5d0e473Sopenharmony_ci /** 725e5d0e473Sopenharmony_ci * Encode the message content. 726e5d0e473Sopenharmony_ci * 727e5d0e473Sopenharmony_ci * @param { MmsInformation } mms - Indicates MMS messages. 728e5d0e473Sopenharmony_ci * @returns { Promise<Array<number>> } Returns the result of MMS encoding. 729e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 730e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 731e5d0e473Sopenharmony_ci * Incorrect parameter types. 3. Parameter verification failed. 732e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 733e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 734e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 735e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 736e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 737e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 738e5d0e473Sopenharmony_ci * @since 8 739e5d0e473Sopenharmony_ci */ 740e5d0e473Sopenharmony_ci function encodeMms(mms: MmsInformation): Promise<Array<number>>; 741e5d0e473Sopenharmony_ci 742e5d0e473Sopenharmony_ci /** 743e5d0e473Sopenharmony_ci * Obtains the default SIM ID for sending SMS messages. 744e5d0e473Sopenharmony_ci * 745e5d0e473Sopenharmony_ci * @param { AsyncCallback<number> } callback - Returns the SIM ID of the default sms sim and 746e5d0e473Sopenharmony_ci * SIM ID will increase from 1. 747e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 748e5d0e473Sopenharmony_ci * Incorrect parameter types. 749e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 750e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 751e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 752e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300004 - Do not have sim card. 753e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 754e5d0e473Sopenharmony_ci * @throws { BusinessError } 8301001 - SIM card is not activated. 755e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 756e5d0e473Sopenharmony_ci * @since 10 757e5d0e473Sopenharmony_ci */ 758e5d0e473Sopenharmony_ci function getDefaultSmsSimId(callback: AsyncCallback<number>): void; 759e5d0e473Sopenharmony_ci 760e5d0e473Sopenharmony_ci /** 761e5d0e473Sopenharmony_ci * Obtains the default SIM ID for sending SMS messages. 762e5d0e473Sopenharmony_ci * 763e5d0e473Sopenharmony_ci * @returns { Promise<number> } Returns the SIM ID of the default sms sim and 764e5d0e473Sopenharmony_ci * SIM ID will increase from 1. 765e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 766e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 767e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 768e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300004 - Do not have sim card. 769e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 770e5d0e473Sopenharmony_ci * @throws { BusinessError } 8301001 - SIM card is not activated. 771e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 772e5d0e473Sopenharmony_ci * @since 10 773e5d0e473Sopenharmony_ci */ 774e5d0e473Sopenharmony_ci function getDefaultSmsSimId(): Promise<number>; 775e5d0e473Sopenharmony_ci 776e5d0e473Sopenharmony_ci /** 777e5d0e473Sopenharmony_ci * Defines the MMS message information. 778e5d0e473Sopenharmony_ci * 779e5d0e473Sopenharmony_ci * @interface MmsInformation 780e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 781e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 782e5d0e473Sopenharmony_ci * @since 8 783e5d0e473Sopenharmony_ci */ 784e5d0e473Sopenharmony_ci export interface MmsInformation { 785e5d0e473Sopenharmony_ci /** 786e5d0e473Sopenharmony_ci * Indicates the message type for the MMS message. 787e5d0e473Sopenharmony_ci * 788e5d0e473Sopenharmony_ci * @type { MessageType } 789e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 790e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 791e5d0e473Sopenharmony_ci * @since 8 792e5d0e473Sopenharmony_ci */ 793e5d0e473Sopenharmony_ci messageType: MessageType; 794e5d0e473Sopenharmony_ci 795e5d0e473Sopenharmony_ci /** 796e5d0e473Sopenharmony_ci * Indicates the PDU header type for the MMS message. 797e5d0e473Sopenharmony_ci * 798e5d0e473Sopenharmony_ci * @type { MmsSendReq | MmsSendConf | MmsNotificationInd | MmsRespInd | MmsRetrieveConf | MmsAcknowledgeInd | 799e5d0e473Sopenharmony_ci * MmsDeliveryInd | MmsReadOrigInd | MmsReadRecInd } 800e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 801e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 802e5d0e473Sopenharmony_ci * @since 8 803e5d0e473Sopenharmony_ci */ 804e5d0e473Sopenharmony_ci mmsType: MmsSendReq | MmsSendConf | MmsNotificationInd | MmsRespInd | MmsRetrieveConf | MmsAcknowledgeInd | MmsDeliveryInd | MmsReadOrigInd | MmsReadRecInd; 805e5d0e473Sopenharmony_ci 806e5d0e473Sopenharmony_ci /** 807e5d0e473Sopenharmony_ci * Indicates the attachment for the MMS message. 808e5d0e473Sopenharmony_ci * 809e5d0e473Sopenharmony_ci * @type { ?Array<MmsAttachment> } 810e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 811e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 812e5d0e473Sopenharmony_ci * @since 8 813e5d0e473Sopenharmony_ci */ 814e5d0e473Sopenharmony_ci attachment?: Array<MmsAttachment>; 815e5d0e473Sopenharmony_ci } 816e5d0e473Sopenharmony_ci 817e5d0e473Sopenharmony_ci /** 818e5d0e473Sopenharmony_ci * Sends an MMS message. 819e5d0e473Sopenharmony_ci * 820e5d0e473Sopenharmony_ci * @permission ohos.permission.SEND_MESSAGES 821e5d0e473Sopenharmony_ci * @param { Context } context - Indicates the context of application or capability. 822e5d0e473Sopenharmony_ci * @param { MmsParams } mmsParams - Indicates the parameters of the MMS message. 823e5d0e473Sopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of sendMms. For error code, see MmsFailCode. 824e5d0e473Sopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 825e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 826e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 827e5d0e473Sopenharmony_ci * Incorrect parameter types. 3. Parameter verification failed. 828e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 829e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 830e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 831e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 832e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 833e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 834e5d0e473Sopenharmony_ci * @since 11 835e5d0e473Sopenharmony_ci */ 836e5d0e473Sopenharmony_ci function sendMms(context: Context, mmsParams: MmsParams, callback: AsyncCallback<void>): void; 837e5d0e473Sopenharmony_ci 838e5d0e473Sopenharmony_ci /** 839e5d0e473Sopenharmony_ci * Sends an MMS message. 840e5d0e473Sopenharmony_ci * 841e5d0e473Sopenharmony_ci * @permission ohos.permission.SEND_MESSAGES 842e5d0e473Sopenharmony_ci * @param { Context } context - Indicates the context of application or capability. 843e5d0e473Sopenharmony_ci * @param { MmsParams } mmsParams - Indicates the parameters of the MMS message. 844e5d0e473Sopenharmony_ci * @returns { Promise<void> } The promise returned by the sendMms. 845e5d0e473Sopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 846e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 847e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 848e5d0e473Sopenharmony_ci * Incorrect parameter types. 3. Parameter verification failed. 849e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 850e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 851e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 852e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 853e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 854e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 855e5d0e473Sopenharmony_ci * @since 11 856e5d0e473Sopenharmony_ci */ 857e5d0e473Sopenharmony_ci function sendMms(context: Context, mmsParams: MmsParams): Promise<void>; 858e5d0e473Sopenharmony_ci 859e5d0e473Sopenharmony_ci /** 860e5d0e473Sopenharmony_ci * Downloads an MMS message. 861e5d0e473Sopenharmony_ci * 862e5d0e473Sopenharmony_ci * @permission ohos.permission.RECEIVE_MMS 863e5d0e473Sopenharmony_ci * @param { Context } context - Indicates the context of application or capability. 864e5d0e473Sopenharmony_ci * @param { MmsParams } mmsParams - Indicates the parameters of the MMS message. 865e5d0e473Sopenharmony_ci * @param { AsyncCallback<void> } callback - The callback of downloadMms. For error code, see MmsFailCode. 866e5d0e473Sopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 867e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 868e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 869e5d0e473Sopenharmony_ci * Incorrect parameter types. 870e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 871e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 872e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 873e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 874e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 875e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 876e5d0e473Sopenharmony_ci * @since 11 877e5d0e473Sopenharmony_ci */ 878e5d0e473Sopenharmony_ci function downloadMms(context: Context, mmsParams: MmsParams, callback: AsyncCallback<void>): void; 879e5d0e473Sopenharmony_ci 880e5d0e473Sopenharmony_ci /** 881e5d0e473Sopenharmony_ci * Downloads an MMS message. 882e5d0e473Sopenharmony_ci * 883e5d0e473Sopenharmony_ci * @permission ohos.permission.RECEIVE_MMS 884e5d0e473Sopenharmony_ci * @param { Context } context - Indicates the context of application or capability. 885e5d0e473Sopenharmony_ci * @param { MmsParams } mmsParams - Indicates the parameters of the MMS message. 886e5d0e473Sopenharmony_ci * @returns { Promise<void> } The promise returned by the downloadMms. For error code, see MmsFailCode. 887e5d0e473Sopenharmony_ci * @throws { BusinessError } 201 - Permission denied. 888e5d0e473Sopenharmony_ci * @throws { BusinessError } 202 - Non-system applications use system APIs. 889e5d0e473Sopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. 890e5d0e473Sopenharmony_ci * Incorrect parameter types. 891e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300001 - Invalid parameter value. 892e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. 893e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300003 - System internal error. 894e5d0e473Sopenharmony_ci * @throws { BusinessError } 8300999 - Unknown error code. 895e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 896e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 897e5d0e473Sopenharmony_ci * @since 11 898e5d0e473Sopenharmony_ci */ 899e5d0e473Sopenharmony_ci function downloadMms(context: Context, mmsParams: MmsParams): Promise<void>; 900e5d0e473Sopenharmony_ci 901e5d0e473Sopenharmony_ci /** 902e5d0e473Sopenharmony_ci * Defines the MMS message param. 903e5d0e473Sopenharmony_ci * 904e5d0e473Sopenharmony_ci * @interface MmsParams 905e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 906e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 907e5d0e473Sopenharmony_ci * @since 11 908e5d0e473Sopenharmony_ci */ 909e5d0e473Sopenharmony_ci export interface MmsParams { 910e5d0e473Sopenharmony_ci /** 911e5d0e473Sopenharmony_ci * Indicates the ID of the SIM card slot used for sending the MMS message. 912e5d0e473Sopenharmony_ci * 913e5d0e473Sopenharmony_ci * @type { number } 914e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 915e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 916e5d0e473Sopenharmony_ci * @since 11 917e5d0e473Sopenharmony_ci */ 918e5d0e473Sopenharmony_ci slotId: number; 919e5d0e473Sopenharmony_ci 920e5d0e473Sopenharmony_ci /** 921e5d0e473Sopenharmony_ci * Indicates the MMSC used for sending the MMS message. 922e5d0e473Sopenharmony_ci * 923e5d0e473Sopenharmony_ci * @type { string } 924e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 925e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 926e5d0e473Sopenharmony_ci * @since 11 927e5d0e473Sopenharmony_ci */ 928e5d0e473Sopenharmony_ci mmsc: string; 929e5d0e473Sopenharmony_ci 930e5d0e473Sopenharmony_ci /** 931e5d0e473Sopenharmony_ci * Indicates the MMS pdu url used for sending the MMS message. 932e5d0e473Sopenharmony_ci * 933e5d0e473Sopenharmony_ci * @type { string } 934e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 935e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 936e5d0e473Sopenharmony_ci * @since 11 937e5d0e473Sopenharmony_ci */ 938e5d0e473Sopenharmony_ci data: string; 939e5d0e473Sopenharmony_ci 940e5d0e473Sopenharmony_ci /** 941e5d0e473Sopenharmony_ci * Indicates the MMS UA and MMS UaProf used for sending the MMS message. 942e5d0e473Sopenharmony_ci * 943e5d0e473Sopenharmony_ci * @type { ?MmsConfig } 944e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 945e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 946e5d0e473Sopenharmony_ci * @since 11 947e5d0e473Sopenharmony_ci */ 948e5d0e473Sopenharmony_ci mmsConfig?: MmsConfig; 949e5d0e473Sopenharmony_ci } 950e5d0e473Sopenharmony_ci 951e5d0e473Sopenharmony_ci /** 952e5d0e473Sopenharmony_ci * Defines the MMS message config. 953e5d0e473Sopenharmony_ci * 954e5d0e473Sopenharmony_ci * @interface MmsConfig 955e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 956e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 957e5d0e473Sopenharmony_ci * @since 11 958e5d0e473Sopenharmony_ci */ 959e5d0e473Sopenharmony_ci export interface MmsConfig { 960e5d0e473Sopenharmony_ci /** 961e5d0e473Sopenharmony_ci * Indicates the user agent used for the MMS message. 962e5d0e473Sopenharmony_ci * 963e5d0e473Sopenharmony_ci * @type { string } 964e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 965e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 966e5d0e473Sopenharmony_ci * @since 11 967e5d0e473Sopenharmony_ci */ 968e5d0e473Sopenharmony_ci userAgent: string; 969e5d0e473Sopenharmony_ci 970e5d0e473Sopenharmony_ci /** 971e5d0e473Sopenharmony_ci * Indicates the user agent profile for the MMS message. 972e5d0e473Sopenharmony_ci * 973e5d0e473Sopenharmony_ci * @type { string } 974e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 975e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 976e5d0e473Sopenharmony_ci * @since 11 977e5d0e473Sopenharmony_ci */ 978e5d0e473Sopenharmony_ci userAgentProfile: string; 979e5d0e473Sopenharmony_ci } 980e5d0e473Sopenharmony_ci 981e5d0e473Sopenharmony_ci /** 982e5d0e473Sopenharmony_ci * Defines an MMS message sending request. 983e5d0e473Sopenharmony_ci * 984e5d0e473Sopenharmony_ci * @interface MmsSendReq 985e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 986e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 987e5d0e473Sopenharmony_ci * @since 8 988e5d0e473Sopenharmony_ci */ 989e5d0e473Sopenharmony_ci export interface MmsSendReq { 990e5d0e473Sopenharmony_ci /** 991e5d0e473Sopenharmony_ci * Indicates the source address for the MMS message sending request. 992e5d0e473Sopenharmony_ci * 993e5d0e473Sopenharmony_ci * @type { MmsAddress } 994e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 995e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 996e5d0e473Sopenharmony_ci * @since 8 997e5d0e473Sopenharmony_ci */ 998e5d0e473Sopenharmony_ci from: MmsAddress; 999e5d0e473Sopenharmony_ci 1000e5d0e473Sopenharmony_ci /** 1001e5d0e473Sopenharmony_ci * Indicates the transaction ID for the MMS message sending request. 1002e5d0e473Sopenharmony_ci * 1003e5d0e473Sopenharmony_ci * @type { string } 1004e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1005e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1006e5d0e473Sopenharmony_ci * @since 8 1007e5d0e473Sopenharmony_ci */ 1008e5d0e473Sopenharmony_ci transactionId: string; 1009e5d0e473Sopenharmony_ci 1010e5d0e473Sopenharmony_ci /** 1011e5d0e473Sopenharmony_ci * Indicates the content type for the MMS message sending request. 1012e5d0e473Sopenharmony_ci * 1013e5d0e473Sopenharmony_ci * @type { string } 1014e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1015e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1016e5d0e473Sopenharmony_ci * @since 8 1017e5d0e473Sopenharmony_ci */ 1018e5d0e473Sopenharmony_ci contentType: string; 1019e5d0e473Sopenharmony_ci 1020e5d0e473Sopenharmony_ci /** 1021e5d0e473Sopenharmony_ci * Indicates the version for the MMS message sending request. 1022e5d0e473Sopenharmony_ci * 1023e5d0e473Sopenharmony_ci * @type { MmsVersionType } 1024e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1025e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1026e5d0e473Sopenharmony_ci * @since 8 1027e5d0e473Sopenharmony_ci */ 1028e5d0e473Sopenharmony_ci version: MmsVersionType; 1029e5d0e473Sopenharmony_ci 1030e5d0e473Sopenharmony_ci /** 1031e5d0e473Sopenharmony_ci * Indicates the destination address for the MMS message sending request. 1032e5d0e473Sopenharmony_ci * 1033e5d0e473Sopenharmony_ci * @type { ?Array<MmsAddress> } 1034e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1035e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1036e5d0e473Sopenharmony_ci * @since 8 1037e5d0e473Sopenharmony_ci */ 1038e5d0e473Sopenharmony_ci to?: Array<MmsAddress>; 1039e5d0e473Sopenharmony_ci 1040e5d0e473Sopenharmony_ci /** 1041e5d0e473Sopenharmony_ci * Indicates the date for the MMS message sending request. 1042e5d0e473Sopenharmony_ci * 1043e5d0e473Sopenharmony_ci * @type { ?number } 1044e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1045e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1046e5d0e473Sopenharmony_ci * @since 8 1047e5d0e473Sopenharmony_ci */ 1048e5d0e473Sopenharmony_ci date?: number; 1049e5d0e473Sopenharmony_ci 1050e5d0e473Sopenharmony_ci /** 1051e5d0e473Sopenharmony_ci * Indicates the carbon copy address for the MMS message sending request. 1052e5d0e473Sopenharmony_ci * 1053e5d0e473Sopenharmony_ci * @type { ?Array<MmsAddress> } 1054e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1055e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1056e5d0e473Sopenharmony_ci * @since 8 1057e5d0e473Sopenharmony_ci */ 1058e5d0e473Sopenharmony_ci cc?: Array<MmsAddress>; 1059e5d0e473Sopenharmony_ci 1060e5d0e473Sopenharmony_ci /** 1061e5d0e473Sopenharmony_ci * Indicates the blind carbon copy address for the MMS message sending request. 1062e5d0e473Sopenharmony_ci * 1063e5d0e473Sopenharmony_ci * @type { ?Array<MmsAddress> } 1064e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1065e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1066e5d0e473Sopenharmony_ci * @since 8 1067e5d0e473Sopenharmony_ci */ 1068e5d0e473Sopenharmony_ci bcc?: Array<MmsAddress>; 1069e5d0e473Sopenharmony_ci 1070e5d0e473Sopenharmony_ci /** 1071e5d0e473Sopenharmony_ci * Indicates the subject for the MMS message sending request. 1072e5d0e473Sopenharmony_ci * 1073e5d0e473Sopenharmony_ci * @type { ?string } 1074e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1075e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1076e5d0e473Sopenharmony_ci * @since 8 1077e5d0e473Sopenharmony_ci */ 1078e5d0e473Sopenharmony_ci subject?: string; 1079e5d0e473Sopenharmony_ci 1080e5d0e473Sopenharmony_ci /** 1081e5d0e473Sopenharmony_ci * Indicates the message class for the MMS message sending request. 1082e5d0e473Sopenharmony_ci * 1083e5d0e473Sopenharmony_ci * @type { ?number } 1084e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1085e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1086e5d0e473Sopenharmony_ci * @since 8 1087e5d0e473Sopenharmony_ci */ 1088e5d0e473Sopenharmony_ci messageClass?: number; 1089e5d0e473Sopenharmony_ci 1090e5d0e473Sopenharmony_ci /** 1091e5d0e473Sopenharmony_ci * Indicates the expiration for the MMS message sending request. 1092e5d0e473Sopenharmony_ci * 1093e5d0e473Sopenharmony_ci * @type { ?number } 1094e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1095e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1096e5d0e473Sopenharmony_ci * @since 8 1097e5d0e473Sopenharmony_ci */ 1098e5d0e473Sopenharmony_ci expiry?: number; 1099e5d0e473Sopenharmony_ci 1100e5d0e473Sopenharmony_ci /** 1101e5d0e473Sopenharmony_ci * Indicates the priority for the MMS message sending request. 1102e5d0e473Sopenharmony_ci * 1103e5d0e473Sopenharmony_ci * @type { ?MmsPriorityType } 1104e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1105e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1106e5d0e473Sopenharmony_ci * @since 8 1107e5d0e473Sopenharmony_ci */ 1108e5d0e473Sopenharmony_ci priority?: MmsPriorityType; 1109e5d0e473Sopenharmony_ci 1110e5d0e473Sopenharmony_ci /** 1111e5d0e473Sopenharmony_ci * Indicates the sender visibility for the MMS message sending request. 1112e5d0e473Sopenharmony_ci * 1113e5d0e473Sopenharmony_ci * @type { ?number } 1114e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1115e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1116e5d0e473Sopenharmony_ci * @since 8 1117e5d0e473Sopenharmony_ci */ 1118e5d0e473Sopenharmony_ci senderVisibility?: number; 1119e5d0e473Sopenharmony_ci 1120e5d0e473Sopenharmony_ci /** 1121e5d0e473Sopenharmony_ci * Indicates the delivery report for the MMS message sending request. 1122e5d0e473Sopenharmony_ci * 1123e5d0e473Sopenharmony_ci * @type { ?number } 1124e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1125e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1126e5d0e473Sopenharmony_ci * @since 8 1127e5d0e473Sopenharmony_ci */ 1128e5d0e473Sopenharmony_ci deliveryReport?: number; 1129e5d0e473Sopenharmony_ci 1130e5d0e473Sopenharmony_ci /** 1131e5d0e473Sopenharmony_ci * Indicates the read report for the MMS message sending request. 1132e5d0e473Sopenharmony_ci * 1133e5d0e473Sopenharmony_ci * @type { ?number } 1134e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1135e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1136e5d0e473Sopenharmony_ci * @since 8 1137e5d0e473Sopenharmony_ci */ 1138e5d0e473Sopenharmony_ci readReport?: number; 1139e5d0e473Sopenharmony_ci } 1140e5d0e473Sopenharmony_ci 1141e5d0e473Sopenharmony_ci /** 1142e5d0e473Sopenharmony_ci * Defines the MMS message sending configuration. 1143e5d0e473Sopenharmony_ci * 1144e5d0e473Sopenharmony_ci * @interface MmsSendConf 1145e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1146e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1147e5d0e473Sopenharmony_ci * @since 8 1148e5d0e473Sopenharmony_ci */ 1149e5d0e473Sopenharmony_ci export interface MmsSendConf { 1150e5d0e473Sopenharmony_ci /** 1151e5d0e473Sopenharmony_ci * Indicates the response status for the MMS message sending configuration. 1152e5d0e473Sopenharmony_ci * 1153e5d0e473Sopenharmony_ci * @type { number } 1154e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1155e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1156e5d0e473Sopenharmony_ci * @since 8 1157e5d0e473Sopenharmony_ci */ 1158e5d0e473Sopenharmony_ci responseState: number; 1159e5d0e473Sopenharmony_ci 1160e5d0e473Sopenharmony_ci /** 1161e5d0e473Sopenharmony_ci * Indicates the transaction ID for the MMS message sending configuration. 1162e5d0e473Sopenharmony_ci * 1163e5d0e473Sopenharmony_ci * @type { string } 1164e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1165e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1166e5d0e473Sopenharmony_ci * @since 8 1167e5d0e473Sopenharmony_ci */ 1168e5d0e473Sopenharmony_ci transactionId: string; 1169e5d0e473Sopenharmony_ci 1170e5d0e473Sopenharmony_ci /** 1171e5d0e473Sopenharmony_ci * Indicates the version for the MMS message sending configuration. 1172e5d0e473Sopenharmony_ci * 1173e5d0e473Sopenharmony_ci * @type { MmsVersionType } 1174e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1175e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1176e5d0e473Sopenharmony_ci * @since 8 1177e5d0e473Sopenharmony_ci */ 1178e5d0e473Sopenharmony_ci version: MmsVersionType; 1179e5d0e473Sopenharmony_ci 1180e5d0e473Sopenharmony_ci /** 1181e5d0e473Sopenharmony_ci * Indicates the message ID for the MMS message sending configuration. 1182e5d0e473Sopenharmony_ci * 1183e5d0e473Sopenharmony_ci * @type { ?string } 1184e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1185e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1186e5d0e473Sopenharmony_ci * @since 8 1187e5d0e473Sopenharmony_ci */ 1188e5d0e473Sopenharmony_ci messageId?: string; 1189e5d0e473Sopenharmony_ci } 1190e5d0e473Sopenharmony_ci 1191e5d0e473Sopenharmony_ci /** 1192e5d0e473Sopenharmony_ci * Defines an MMS notification indication. 1193e5d0e473Sopenharmony_ci * 1194e5d0e473Sopenharmony_ci * @interface MmsNotificationInd 1195e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1196e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1197e5d0e473Sopenharmony_ci * @since 8 1198e5d0e473Sopenharmony_ci */ 1199e5d0e473Sopenharmony_ci export interface MmsNotificationInd { 1200e5d0e473Sopenharmony_ci /** 1201e5d0e473Sopenharmony_ci * Indicates the transaction ID for the MMS notification indication. 1202e5d0e473Sopenharmony_ci * 1203e5d0e473Sopenharmony_ci * @type { string } 1204e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1205e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1206e5d0e473Sopenharmony_ci * @since 8 1207e5d0e473Sopenharmony_ci */ 1208e5d0e473Sopenharmony_ci transactionId: string; 1209e5d0e473Sopenharmony_ci 1210e5d0e473Sopenharmony_ci /** 1211e5d0e473Sopenharmony_ci * Indicates the message class for the MMS notification indication. 1212e5d0e473Sopenharmony_ci * 1213e5d0e473Sopenharmony_ci * @type { number } 1214e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1215e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1216e5d0e473Sopenharmony_ci * @since 8 1217e5d0e473Sopenharmony_ci */ 1218e5d0e473Sopenharmony_ci messageClass: number; 1219e5d0e473Sopenharmony_ci 1220e5d0e473Sopenharmony_ci /** 1221e5d0e473Sopenharmony_ci * Indicates the message size for the MMS notification indication. 1222e5d0e473Sopenharmony_ci * 1223e5d0e473Sopenharmony_ci * @type { number } 1224e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1225e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1226e5d0e473Sopenharmony_ci * @since 8 1227e5d0e473Sopenharmony_ci */ 1228e5d0e473Sopenharmony_ci messageSize: number; 1229e5d0e473Sopenharmony_ci 1230e5d0e473Sopenharmony_ci /** 1231e5d0e473Sopenharmony_ci * Indicates the expiration for the MMS notification indication. 1232e5d0e473Sopenharmony_ci * 1233e5d0e473Sopenharmony_ci * @type { number } 1234e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1235e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1236e5d0e473Sopenharmony_ci * @since 8 1237e5d0e473Sopenharmony_ci */ 1238e5d0e473Sopenharmony_ci expiry: number; 1239e5d0e473Sopenharmony_ci 1240e5d0e473Sopenharmony_ci /** 1241e5d0e473Sopenharmony_ci * Indicates the content location for the MMS notification indication. 1242e5d0e473Sopenharmony_ci * 1243e5d0e473Sopenharmony_ci * @type { string } 1244e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1245e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1246e5d0e473Sopenharmony_ci * @since 8 1247e5d0e473Sopenharmony_ci */ 1248e5d0e473Sopenharmony_ci contentLocation: string; 1249e5d0e473Sopenharmony_ci 1250e5d0e473Sopenharmony_ci /** 1251e5d0e473Sopenharmony_ci * Indicates the version for the MMS notification indication. 1252e5d0e473Sopenharmony_ci * 1253e5d0e473Sopenharmony_ci * @type { MmsVersionType } 1254e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1255e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1256e5d0e473Sopenharmony_ci * @since 8 1257e5d0e473Sopenharmony_ci */ 1258e5d0e473Sopenharmony_ci version: MmsVersionType; 1259e5d0e473Sopenharmony_ci 1260e5d0e473Sopenharmony_ci /** 1261e5d0e473Sopenharmony_ci * Indicates the source address for the MMS notification indication. 1262e5d0e473Sopenharmony_ci * 1263e5d0e473Sopenharmony_ci * @type { ?MmsAddress } 1264e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1265e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1266e5d0e473Sopenharmony_ci * @since 8 1267e5d0e473Sopenharmony_ci */ 1268e5d0e473Sopenharmony_ci from?: MmsAddress; 1269e5d0e473Sopenharmony_ci 1270e5d0e473Sopenharmony_ci /** 1271e5d0e473Sopenharmony_ci * Indicates the subject for the MMS notification indication. 1272e5d0e473Sopenharmony_ci * 1273e5d0e473Sopenharmony_ci * @type { ?string } 1274e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1275e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1276e5d0e473Sopenharmony_ci * @since 8 1277e5d0e473Sopenharmony_ci */ 1278e5d0e473Sopenharmony_ci subject?: string; 1279e5d0e473Sopenharmony_ci 1280e5d0e473Sopenharmony_ci /** 1281e5d0e473Sopenharmony_ci * Indicates the status report for the MMS notification indication. 1282e5d0e473Sopenharmony_ci * 1283e5d0e473Sopenharmony_ci * @type { ?number } 1284e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1285e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1286e5d0e473Sopenharmony_ci * @since 8 1287e5d0e473Sopenharmony_ci */ 1288e5d0e473Sopenharmony_ci deliveryReport?: number; 1289e5d0e473Sopenharmony_ci 1290e5d0e473Sopenharmony_ci /** 1291e5d0e473Sopenharmony_ci * Indicates the content class for the MMS notification indication. 1292e5d0e473Sopenharmony_ci * 1293e5d0e473Sopenharmony_ci * @type { ?number } 1294e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1295e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1296e5d0e473Sopenharmony_ci * @since 8 1297e5d0e473Sopenharmony_ci */ 1298e5d0e473Sopenharmony_ci contentClass?: number; 1299e5d0e473Sopenharmony_ci } 1300e5d0e473Sopenharmony_ci 1301e5d0e473Sopenharmony_ci /** 1302e5d0e473Sopenharmony_ci * Defines an MMS response indication. 1303e5d0e473Sopenharmony_ci * 1304e5d0e473Sopenharmony_ci * @interface MmsRespInd 1305e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1306e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1307e5d0e473Sopenharmony_ci * @since 8 1308e5d0e473Sopenharmony_ci */ 1309e5d0e473Sopenharmony_ci export interface MmsRespInd { 1310e5d0e473Sopenharmony_ci /** 1311e5d0e473Sopenharmony_ci * Indicates the event ID for the MMS response indication. 1312e5d0e473Sopenharmony_ci * 1313e5d0e473Sopenharmony_ci * @type { string } 1314e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1315e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1316e5d0e473Sopenharmony_ci * @since 8 1317e5d0e473Sopenharmony_ci */ 1318e5d0e473Sopenharmony_ci transactionId: string; 1319e5d0e473Sopenharmony_ci 1320e5d0e473Sopenharmony_ci /** 1321e5d0e473Sopenharmony_ci * Indicates the status for the MMS response indication. 1322e5d0e473Sopenharmony_ci * 1323e5d0e473Sopenharmony_ci * @type { number } 1324e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1325e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1326e5d0e473Sopenharmony_ci * @since 8 1327e5d0e473Sopenharmony_ci */ 1328e5d0e473Sopenharmony_ci status: number; 1329e5d0e473Sopenharmony_ci 1330e5d0e473Sopenharmony_ci /** 1331e5d0e473Sopenharmony_ci * Indicates the version for the MMS response indication. 1332e5d0e473Sopenharmony_ci * 1333e5d0e473Sopenharmony_ci * @type { MmsVersionType } 1334e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1335e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1336e5d0e473Sopenharmony_ci * @since 8 1337e5d0e473Sopenharmony_ci */ 1338e5d0e473Sopenharmony_ci version: MmsVersionType; 1339e5d0e473Sopenharmony_ci 1340e5d0e473Sopenharmony_ci /** 1341e5d0e473Sopenharmony_ci * Indicates the report allowed for the MMS response indication. 1342e5d0e473Sopenharmony_ci * 1343e5d0e473Sopenharmony_ci * @type { ?ReportType } 1344e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1345e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1346e5d0e473Sopenharmony_ci * @since 8 1347e5d0e473Sopenharmony_ci */ 1348e5d0e473Sopenharmony_ci reportAllowed?: ReportType; 1349e5d0e473Sopenharmony_ci } 1350e5d0e473Sopenharmony_ci 1351e5d0e473Sopenharmony_ci /** 1352e5d0e473Sopenharmony_ci * Defines the MMS message retrieval configuration. 1353e5d0e473Sopenharmony_ci * 1354e5d0e473Sopenharmony_ci * @interface MmsRetrieveConf 1355e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1356e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1357e5d0e473Sopenharmony_ci * @since 8 1358e5d0e473Sopenharmony_ci */ 1359e5d0e473Sopenharmony_ci export interface MmsRetrieveConf { 1360e5d0e473Sopenharmony_ci /** 1361e5d0e473Sopenharmony_ci * Indicates the transaction ID for the MMS message retrieval configuration. 1362e5d0e473Sopenharmony_ci * 1363e5d0e473Sopenharmony_ci * @type { string } 1364e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1365e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1366e5d0e473Sopenharmony_ci * @since 8 1367e5d0e473Sopenharmony_ci */ 1368e5d0e473Sopenharmony_ci transactionId: string; 1369e5d0e473Sopenharmony_ci 1370e5d0e473Sopenharmony_ci /** 1371e5d0e473Sopenharmony_ci * Indicates the message ID for the MMS message retrieval configuration. 1372e5d0e473Sopenharmony_ci * 1373e5d0e473Sopenharmony_ci * @type { string } 1374e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1375e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1376e5d0e473Sopenharmony_ci * @since 8 1377e5d0e473Sopenharmony_ci */ 1378e5d0e473Sopenharmony_ci messageId: string; 1379e5d0e473Sopenharmony_ci 1380e5d0e473Sopenharmony_ci /** 1381e5d0e473Sopenharmony_ci * Indicates the date for the MMS message retrieval configuration. 1382e5d0e473Sopenharmony_ci * 1383e5d0e473Sopenharmony_ci * @type { number } 1384e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1385e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1386e5d0e473Sopenharmony_ci * @since 8 1387e5d0e473Sopenharmony_ci */ 1388e5d0e473Sopenharmony_ci date: number; 1389e5d0e473Sopenharmony_ci 1390e5d0e473Sopenharmony_ci /** 1391e5d0e473Sopenharmony_ci * Indicates the content type for the MMS message retrieval configuration. 1392e5d0e473Sopenharmony_ci * 1393e5d0e473Sopenharmony_ci * @type { string } 1394e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1395e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1396e5d0e473Sopenharmony_ci * @since 8 1397e5d0e473Sopenharmony_ci */ 1398e5d0e473Sopenharmony_ci contentType: string; 1399e5d0e473Sopenharmony_ci 1400e5d0e473Sopenharmony_ci /** 1401e5d0e473Sopenharmony_ci * Indicates the destination address for the MMS message retrieval configuration. 1402e5d0e473Sopenharmony_ci * 1403e5d0e473Sopenharmony_ci * @type { Array<MmsAddress> } 1404e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1405e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1406e5d0e473Sopenharmony_ci * @since 8 1407e5d0e473Sopenharmony_ci */ 1408e5d0e473Sopenharmony_ci to: Array<MmsAddress>; 1409e5d0e473Sopenharmony_ci 1410e5d0e473Sopenharmony_ci /** 1411e5d0e473Sopenharmony_ci * Indicates the version for the MMS message retrieval configuration. 1412e5d0e473Sopenharmony_ci * 1413e5d0e473Sopenharmony_ci * @type { MmsVersionType } 1414e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1415e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1416e5d0e473Sopenharmony_ci * @since 8 1417e5d0e473Sopenharmony_ci */ 1418e5d0e473Sopenharmony_ci version: MmsVersionType; 1419e5d0e473Sopenharmony_ci 1420e5d0e473Sopenharmony_ci /** 1421e5d0e473Sopenharmony_ci * Indicates the source address for the MMS message retrieval configuration. 1422e5d0e473Sopenharmony_ci * 1423e5d0e473Sopenharmony_ci * @type { ?MmsAddress } 1424e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1425e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1426e5d0e473Sopenharmony_ci * @since 8 1427e5d0e473Sopenharmony_ci */ 1428e5d0e473Sopenharmony_ci from?: MmsAddress; 1429e5d0e473Sopenharmony_ci 1430e5d0e473Sopenharmony_ci /** 1431e5d0e473Sopenharmony_ci * Indicates the carbon copy address for the MMS message retrieval configuration. 1432e5d0e473Sopenharmony_ci * 1433e5d0e473Sopenharmony_ci * @type { ?Array<MmsAddress> } 1434e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1435e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1436e5d0e473Sopenharmony_ci * @since 8 1437e5d0e473Sopenharmony_ci */ 1438e5d0e473Sopenharmony_ci cc?: Array<MmsAddress>; 1439e5d0e473Sopenharmony_ci 1440e5d0e473Sopenharmony_ci /** 1441e5d0e473Sopenharmony_ci * Indicates the subject for the MMS message retrieval configuration. 1442e5d0e473Sopenharmony_ci * 1443e5d0e473Sopenharmony_ci * @type { ?string } 1444e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1445e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1446e5d0e473Sopenharmony_ci * @since 8 1447e5d0e473Sopenharmony_ci */ 1448e5d0e473Sopenharmony_ci subject?: string; 1449e5d0e473Sopenharmony_ci 1450e5d0e473Sopenharmony_ci /** 1451e5d0e473Sopenharmony_ci * Indicates the priority for the MMS message retrieval configuration. 1452e5d0e473Sopenharmony_ci * 1453e5d0e473Sopenharmony_ci * @type { ?MmsPriorityType } 1454e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1455e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1456e5d0e473Sopenharmony_ci * @since 8 1457e5d0e473Sopenharmony_ci */ 1458e5d0e473Sopenharmony_ci priority?: MmsPriorityType; 1459e5d0e473Sopenharmony_ci 1460e5d0e473Sopenharmony_ci /** 1461e5d0e473Sopenharmony_ci * Indicates the status report for the MMS message retrieval configuration. 1462e5d0e473Sopenharmony_ci * 1463e5d0e473Sopenharmony_ci * @type { ?number } 1464e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1465e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1466e5d0e473Sopenharmony_ci * @since 8 1467e5d0e473Sopenharmony_ci */ 1468e5d0e473Sopenharmony_ci deliveryReport?: number; 1469e5d0e473Sopenharmony_ci 1470e5d0e473Sopenharmony_ci /** 1471e5d0e473Sopenharmony_ci * Indicates the read report for the MMS message retrieval configuration. 1472e5d0e473Sopenharmony_ci * 1473e5d0e473Sopenharmony_ci * @type { ?number } 1474e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1475e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1476e5d0e473Sopenharmony_ci * @since 8 1477e5d0e473Sopenharmony_ci */ 1478e5d0e473Sopenharmony_ci readReport?: number; 1479e5d0e473Sopenharmony_ci 1480e5d0e473Sopenharmony_ci /** 1481e5d0e473Sopenharmony_ci * Indicates the retrieval status for the MMS message retrieval configuration. 1482e5d0e473Sopenharmony_ci * 1483e5d0e473Sopenharmony_ci * @type { ?number } 1484e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1485e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1486e5d0e473Sopenharmony_ci * @since 8 1487e5d0e473Sopenharmony_ci */ 1488e5d0e473Sopenharmony_ci retrieveStatus?: number; 1489e5d0e473Sopenharmony_ci 1490e5d0e473Sopenharmony_ci /** 1491e5d0e473Sopenharmony_ci * Indicates the retrieval text for the MMS message retrieval configuration. 1492e5d0e473Sopenharmony_ci * 1493e5d0e473Sopenharmony_ci * @type { ?string } 1494e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1495e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1496e5d0e473Sopenharmony_ci * @since 8 1497e5d0e473Sopenharmony_ci */ 1498e5d0e473Sopenharmony_ci retrieveText?: string; 1499e5d0e473Sopenharmony_ci } 1500e5d0e473Sopenharmony_ci 1501e5d0e473Sopenharmony_ci /** 1502e5d0e473Sopenharmony_ci * Defines an MMS confirmation indication. 1503e5d0e473Sopenharmony_ci * 1504e5d0e473Sopenharmony_ci * @interface MmsAcknowledgeInd 1505e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1506e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1507e5d0e473Sopenharmony_ci * @since 8 1508e5d0e473Sopenharmony_ci */ 1509e5d0e473Sopenharmony_ci export interface MmsAcknowledgeInd { 1510e5d0e473Sopenharmony_ci /** 1511e5d0e473Sopenharmony_ci * Indicates the transaction ID for the MMS confirmation indication. 1512e5d0e473Sopenharmony_ci * 1513e5d0e473Sopenharmony_ci * @type { string } 1514e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1515e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1516e5d0e473Sopenharmony_ci * @since 8 1517e5d0e473Sopenharmony_ci */ 1518e5d0e473Sopenharmony_ci transactionId: string; 1519e5d0e473Sopenharmony_ci 1520e5d0e473Sopenharmony_ci /** 1521e5d0e473Sopenharmony_ci * Indicates the version for the MMS confirmation indication. 1522e5d0e473Sopenharmony_ci * 1523e5d0e473Sopenharmony_ci * @type { MmsVersionType } 1524e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1525e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1526e5d0e473Sopenharmony_ci * @since 8 1527e5d0e473Sopenharmony_ci */ 1528e5d0e473Sopenharmony_ci version: MmsVersionType; 1529e5d0e473Sopenharmony_ci 1530e5d0e473Sopenharmony_ci /** 1531e5d0e473Sopenharmony_ci * Indicates the report allowed for the MMS confirmation indication. 1532e5d0e473Sopenharmony_ci * 1533e5d0e473Sopenharmony_ci * @type { ?ReportType } 1534e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1535e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1536e5d0e473Sopenharmony_ci * @since 8 1537e5d0e473Sopenharmony_ci */ 1538e5d0e473Sopenharmony_ci reportAllowed?: ReportType; 1539e5d0e473Sopenharmony_ci } 1540e5d0e473Sopenharmony_ci 1541e5d0e473Sopenharmony_ci /** 1542e5d0e473Sopenharmony_ci * Defines an MMS message delivery indication. 1543e5d0e473Sopenharmony_ci * 1544e5d0e473Sopenharmony_ci * @interface MmsDeliveryInd 1545e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1546e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1547e5d0e473Sopenharmony_ci * @since 8 1548e5d0e473Sopenharmony_ci */ 1549e5d0e473Sopenharmony_ci export interface MmsDeliveryInd { 1550e5d0e473Sopenharmony_ci /** 1551e5d0e473Sopenharmony_ci * Indicates the message ID for the MMS message delivery indication. 1552e5d0e473Sopenharmony_ci * 1553e5d0e473Sopenharmony_ci * @type { string } 1554e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1555e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1556e5d0e473Sopenharmony_ci * @since 8 1557e5d0e473Sopenharmony_ci */ 1558e5d0e473Sopenharmony_ci messageId: string; 1559e5d0e473Sopenharmony_ci 1560e5d0e473Sopenharmony_ci /** 1561e5d0e473Sopenharmony_ci * Indicates the date for the MMS message delivery indication. 1562e5d0e473Sopenharmony_ci * 1563e5d0e473Sopenharmony_ci * @type { number } 1564e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1565e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1566e5d0e473Sopenharmony_ci * @since 8 1567e5d0e473Sopenharmony_ci */ 1568e5d0e473Sopenharmony_ci date: number; 1569e5d0e473Sopenharmony_ci 1570e5d0e473Sopenharmony_ci /** 1571e5d0e473Sopenharmony_ci * Indicates the destination address for the MMS message delivery indication. 1572e5d0e473Sopenharmony_ci * 1573e5d0e473Sopenharmony_ci * @type { Array<MmsAddress> } 1574e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1575e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1576e5d0e473Sopenharmony_ci * @since 8 1577e5d0e473Sopenharmony_ci */ 1578e5d0e473Sopenharmony_ci to: Array<MmsAddress>; 1579e5d0e473Sopenharmony_ci 1580e5d0e473Sopenharmony_ci /** 1581e5d0e473Sopenharmony_ci * Indicates the status for the MMS message delivery indication. 1582e5d0e473Sopenharmony_ci * 1583e5d0e473Sopenharmony_ci * @type { number } 1584e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1585e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1586e5d0e473Sopenharmony_ci * @since 8 1587e5d0e473Sopenharmony_ci */ 1588e5d0e473Sopenharmony_ci status: number; 1589e5d0e473Sopenharmony_ci 1590e5d0e473Sopenharmony_ci /** 1591e5d0e473Sopenharmony_ci * Indicates the version for the MMS message delivery indication. 1592e5d0e473Sopenharmony_ci * 1593e5d0e473Sopenharmony_ci * @type { MmsVersionType } 1594e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1595e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1596e5d0e473Sopenharmony_ci * @since 8 1597e5d0e473Sopenharmony_ci */ 1598e5d0e473Sopenharmony_ci version: MmsVersionType; 1599e5d0e473Sopenharmony_ci } 1600e5d0e473Sopenharmony_ci 1601e5d0e473Sopenharmony_ci /** 1602e5d0e473Sopenharmony_ci * Defines the original MMS message reading indication. 1603e5d0e473Sopenharmony_ci * 1604e5d0e473Sopenharmony_ci * @interface MmsReadOrigInd 1605e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1606e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1607e5d0e473Sopenharmony_ci * @since 8 1608e5d0e473Sopenharmony_ci */ 1609e5d0e473Sopenharmony_ci export interface MmsReadOrigInd { 1610e5d0e473Sopenharmony_ci /** 1611e5d0e473Sopenharmony_ci * Indicates the version for the original MMS message reading indication. 1612e5d0e473Sopenharmony_ci * 1613e5d0e473Sopenharmony_ci * @type { MmsVersionType } 1614e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1615e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1616e5d0e473Sopenharmony_ci * @since 8 1617e5d0e473Sopenharmony_ci */ 1618e5d0e473Sopenharmony_ci version: MmsVersionType; 1619e5d0e473Sopenharmony_ci 1620e5d0e473Sopenharmony_ci /** 1621e5d0e473Sopenharmony_ci * Indicates the message ID for the original MMS message reading indication. 1622e5d0e473Sopenharmony_ci * 1623e5d0e473Sopenharmony_ci * @type { string } 1624e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1625e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1626e5d0e473Sopenharmony_ci * @since 8 1627e5d0e473Sopenharmony_ci */ 1628e5d0e473Sopenharmony_ci messageId: string; 1629e5d0e473Sopenharmony_ci 1630e5d0e473Sopenharmony_ci /** 1631e5d0e473Sopenharmony_ci * Indicates the destination address for the original MMS message reading indication. 1632e5d0e473Sopenharmony_ci * 1633e5d0e473Sopenharmony_ci * @type { Array<MmsAddress> } 1634e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1635e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1636e5d0e473Sopenharmony_ci * @since 8 1637e5d0e473Sopenharmony_ci */ 1638e5d0e473Sopenharmony_ci to: Array<MmsAddress>; 1639e5d0e473Sopenharmony_ci 1640e5d0e473Sopenharmony_ci /** 1641e5d0e473Sopenharmony_ci * Indicates the source address for the original MMS message reading indication. 1642e5d0e473Sopenharmony_ci * 1643e5d0e473Sopenharmony_ci * @type { MmsAddress } 1644e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1645e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1646e5d0e473Sopenharmony_ci * @since 8 1647e5d0e473Sopenharmony_ci */ 1648e5d0e473Sopenharmony_ci from: MmsAddress; 1649e5d0e473Sopenharmony_ci 1650e5d0e473Sopenharmony_ci /** 1651e5d0e473Sopenharmony_ci * Indicates the date for the original MMS message reading indication. 1652e5d0e473Sopenharmony_ci * 1653e5d0e473Sopenharmony_ci * @type { number } 1654e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1655e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1656e5d0e473Sopenharmony_ci * @since 8 1657e5d0e473Sopenharmony_ci */ 1658e5d0e473Sopenharmony_ci date: number; 1659e5d0e473Sopenharmony_ci 1660e5d0e473Sopenharmony_ci /** 1661e5d0e473Sopenharmony_ci * Indicates the read status for the original MMS message reading indication. 1662e5d0e473Sopenharmony_ci * 1663e5d0e473Sopenharmony_ci * @type { number } 1664e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1665e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1666e5d0e473Sopenharmony_ci * @since 8 1667e5d0e473Sopenharmony_ci */ 1668e5d0e473Sopenharmony_ci readStatus: number; 1669e5d0e473Sopenharmony_ci } 1670e5d0e473Sopenharmony_ci 1671e5d0e473Sopenharmony_ci /** 1672e5d0e473Sopenharmony_ci * Defines the MMS message reading indication. 1673e5d0e473Sopenharmony_ci * 1674e5d0e473Sopenharmony_ci * @interface MmsReadRecInd 1675e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1676e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1677e5d0e473Sopenharmony_ci * @since 8 1678e5d0e473Sopenharmony_ci */ 1679e5d0e473Sopenharmony_ci export interface MmsReadRecInd { 1680e5d0e473Sopenharmony_ci /** 1681e5d0e473Sopenharmony_ci * Indicates the version for the MMS message reading indication. 1682e5d0e473Sopenharmony_ci * 1683e5d0e473Sopenharmony_ci * @type { MmsVersionType } 1684e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1685e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1686e5d0e473Sopenharmony_ci * @since 8 1687e5d0e473Sopenharmony_ci */ 1688e5d0e473Sopenharmony_ci version: MmsVersionType; 1689e5d0e473Sopenharmony_ci 1690e5d0e473Sopenharmony_ci /** 1691e5d0e473Sopenharmony_ci * Indicates the message ID for the MMS message reading indication. 1692e5d0e473Sopenharmony_ci * 1693e5d0e473Sopenharmony_ci * @type { string } 1694e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1695e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1696e5d0e473Sopenharmony_ci * @since 8 1697e5d0e473Sopenharmony_ci */ 1698e5d0e473Sopenharmony_ci messageId: string; 1699e5d0e473Sopenharmony_ci 1700e5d0e473Sopenharmony_ci /** 1701e5d0e473Sopenharmony_ci * Indicates the destination address for the MMS message reading indication. 1702e5d0e473Sopenharmony_ci * 1703e5d0e473Sopenharmony_ci * @type { Array<MmsAddress> } 1704e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1705e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1706e5d0e473Sopenharmony_ci * @since 8 1707e5d0e473Sopenharmony_ci */ 1708e5d0e473Sopenharmony_ci to: Array<MmsAddress>; 1709e5d0e473Sopenharmony_ci 1710e5d0e473Sopenharmony_ci /** 1711e5d0e473Sopenharmony_ci * Indicates the source address for the MMS message reading indication. 1712e5d0e473Sopenharmony_ci * 1713e5d0e473Sopenharmony_ci * @type { MmsAddress } 1714e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1715e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1716e5d0e473Sopenharmony_ci * @since 8 1717e5d0e473Sopenharmony_ci */ 1718e5d0e473Sopenharmony_ci from: MmsAddress; 1719e5d0e473Sopenharmony_ci 1720e5d0e473Sopenharmony_ci /** 1721e5d0e473Sopenharmony_ci * Indicates the read status for the MMS message reading indication. 1722e5d0e473Sopenharmony_ci * 1723e5d0e473Sopenharmony_ci * @type { number } 1724e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1725e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1726e5d0e473Sopenharmony_ci * @since 8 1727e5d0e473Sopenharmony_ci */ 1728e5d0e473Sopenharmony_ci readStatus: number; 1729e5d0e473Sopenharmony_ci 1730e5d0e473Sopenharmony_ci /** 1731e5d0e473Sopenharmony_ci * Indicates the date for the MMS message reading indication. 1732e5d0e473Sopenharmony_ci * 1733e5d0e473Sopenharmony_ci * @type { ?number } 1734e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1735e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1736e5d0e473Sopenharmony_ci * @since 8 1737e5d0e473Sopenharmony_ci */ 1738e5d0e473Sopenharmony_ci date?: number; 1739e5d0e473Sopenharmony_ci } 1740e5d0e473Sopenharmony_ci 1741e5d0e473Sopenharmony_ci /** 1742e5d0e473Sopenharmony_ci * Defines the attachment of an MMS message. 1743e5d0e473Sopenharmony_ci * 1744e5d0e473Sopenharmony_ci * @interface MmsAttachment 1745e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1746e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1747e5d0e473Sopenharmony_ci * @since 8 1748e5d0e473Sopenharmony_ci */ 1749e5d0e473Sopenharmony_ci export interface MmsAttachment { 1750e5d0e473Sopenharmony_ci /** 1751e5d0e473Sopenharmony_ci * Indicates the content ID for the attachment. 1752e5d0e473Sopenharmony_ci * 1753e5d0e473Sopenharmony_ci * @type { string } 1754e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1755e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1756e5d0e473Sopenharmony_ci * @since 8 1757e5d0e473Sopenharmony_ci */ 1758e5d0e473Sopenharmony_ci contentId: string; 1759e5d0e473Sopenharmony_ci 1760e5d0e473Sopenharmony_ci /** 1761e5d0e473Sopenharmony_ci * Indicates the content location. 1762e5d0e473Sopenharmony_ci * 1763e5d0e473Sopenharmony_ci * @type { string } 1764e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1765e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1766e5d0e473Sopenharmony_ci * @since 8 1767e5d0e473Sopenharmony_ci */ 1768e5d0e473Sopenharmony_ci contentLocation: string; 1769e5d0e473Sopenharmony_ci 1770e5d0e473Sopenharmony_ci /** 1771e5d0e473Sopenharmony_ci * Indicates the content disposition for the attachment. 1772e5d0e473Sopenharmony_ci * 1773e5d0e473Sopenharmony_ci * @type { DispositionType } 1774e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1775e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1776e5d0e473Sopenharmony_ci * @since 8 1777e5d0e473Sopenharmony_ci */ 1778e5d0e473Sopenharmony_ci contentDisposition: DispositionType; 1779e5d0e473Sopenharmony_ci 1780e5d0e473Sopenharmony_ci /** 1781e5d0e473Sopenharmony_ci * Indicates the encoding for content transfer. 1782e5d0e473Sopenharmony_ci * 1783e5d0e473Sopenharmony_ci * @type { string } 1784e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1785e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1786e5d0e473Sopenharmony_ci * @since 8 1787e5d0e473Sopenharmony_ci */ 1788e5d0e473Sopenharmony_ci contentTransferEncoding: string; 1789e5d0e473Sopenharmony_ci 1790e5d0e473Sopenharmony_ci /** 1791e5d0e473Sopenharmony_ci * Indicates the content type for the attachment. 1792e5d0e473Sopenharmony_ci * 1793e5d0e473Sopenharmony_ci * @type { string } 1794e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1795e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1796e5d0e473Sopenharmony_ci * @since 8 1797e5d0e473Sopenharmony_ci */ 1798e5d0e473Sopenharmony_ci contentType: string; 1799e5d0e473Sopenharmony_ci 1800e5d0e473Sopenharmony_ci /** 1801e5d0e473Sopenharmony_ci * Indicates whether the synchronized multimedia integration language is used. 1802e5d0e473Sopenharmony_ci * 1803e5d0e473Sopenharmony_ci * @type { boolean } 1804e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1805e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1806e5d0e473Sopenharmony_ci * @since 8 1807e5d0e473Sopenharmony_ci */ 1808e5d0e473Sopenharmony_ci isSmil: boolean; 1809e5d0e473Sopenharmony_ci 1810e5d0e473Sopenharmony_ci /** 1811e5d0e473Sopenharmony_ci * Indicates the path for the attachment. 1812e5d0e473Sopenharmony_ci * 1813e5d0e473Sopenharmony_ci * @type { ?string } 1814e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1815e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1816e5d0e473Sopenharmony_ci * @since 8 1817e5d0e473Sopenharmony_ci */ 1818e5d0e473Sopenharmony_ci path?: string; 1819e5d0e473Sopenharmony_ci 1820e5d0e473Sopenharmony_ci /** 1821e5d0e473Sopenharmony_ci * Indicates whether the message is in the buffer. 1822e5d0e473Sopenharmony_ci * 1823e5d0e473Sopenharmony_ci * @type { ?Array<number> } 1824e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1825e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1826e5d0e473Sopenharmony_ci * @since 8 1827e5d0e473Sopenharmony_ci */ 1828e5d0e473Sopenharmony_ci inBuff?: Array<number>; 1829e5d0e473Sopenharmony_ci 1830e5d0e473Sopenharmony_ci /** 1831e5d0e473Sopenharmony_ci * Indicates the file name for the attachment. 1832e5d0e473Sopenharmony_ci * 1833e5d0e473Sopenharmony_ci * @type { ?string } 1834e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1835e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1836e5d0e473Sopenharmony_ci * @since 8 1837e5d0e473Sopenharmony_ci */ 1838e5d0e473Sopenharmony_ci fileName?: string; 1839e5d0e473Sopenharmony_ci 1840e5d0e473Sopenharmony_ci /** 1841e5d0e473Sopenharmony_ci * Indicates the character set for the attachment. 1842e5d0e473Sopenharmony_ci * 1843e5d0e473Sopenharmony_ci * @type { ?MmsCharSets } 1844e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1845e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1846e5d0e473Sopenharmony_ci * @since 8 1847e5d0e473Sopenharmony_ci */ 1848e5d0e473Sopenharmony_ci charset?: MmsCharSets; 1849e5d0e473Sopenharmony_ci } 1850e5d0e473Sopenharmony_ci 1851e5d0e473Sopenharmony_ci /** 1852e5d0e473Sopenharmony_ci * Defines an MMSC address. 1853e5d0e473Sopenharmony_ci * 1854e5d0e473Sopenharmony_ci * @interface MmsAddress 1855e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1856e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1857e5d0e473Sopenharmony_ci * @since 8 1858e5d0e473Sopenharmony_ci */ 1859e5d0e473Sopenharmony_ci export interface MmsAddress { 1860e5d0e473Sopenharmony_ci /** 1861e5d0e473Sopenharmony_ci * Indicates the network address for the MMSC address. 1862e5d0e473Sopenharmony_ci * 1863e5d0e473Sopenharmony_ci * @type { string } 1864e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1865e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1866e5d0e473Sopenharmony_ci * @since 8 1867e5d0e473Sopenharmony_ci */ 1868e5d0e473Sopenharmony_ci address: string; 1869e5d0e473Sopenharmony_ci 1870e5d0e473Sopenharmony_ci /** 1871e5d0e473Sopenharmony_ci * Indicates the character set for the MMSC address. 1872e5d0e473Sopenharmony_ci * 1873e5d0e473Sopenharmony_ci * @type { MmsCharSets } 1874e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1875e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1876e5d0e473Sopenharmony_ci * @since 8 1877e5d0e473Sopenharmony_ci */ 1878e5d0e473Sopenharmony_ci charset: MmsCharSets; 1879e5d0e473Sopenharmony_ci } 1880e5d0e473Sopenharmony_ci 1881e5d0e473Sopenharmony_ci /** 1882e5d0e473Sopenharmony_ci * Enumerates message type. 1883e5d0e473Sopenharmony_ci * 1884e5d0e473Sopenharmony_ci * @enum { number } 1885e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1886e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1887e5d0e473Sopenharmony_ci * @since 8 1888e5d0e473Sopenharmony_ci */ 1889e5d0e473Sopenharmony_ci export enum MessageType { 1890e5d0e473Sopenharmony_ci /** 1891e5d0e473Sopenharmony_ci * Indicates an MMS message sending request. 1892e5d0e473Sopenharmony_ci * 1893e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1894e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1895e5d0e473Sopenharmony_ci * @since 8 1896e5d0e473Sopenharmony_ci */ 1897e5d0e473Sopenharmony_ci TYPE_MMS_SEND_REQ = 128, 1898e5d0e473Sopenharmony_ci 1899e5d0e473Sopenharmony_ci /** 1900e5d0e473Sopenharmony_ci * Indicates an MMS message sending configuration. 1901e5d0e473Sopenharmony_ci * 1902e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1903e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1904e5d0e473Sopenharmony_ci * @since 8 1905e5d0e473Sopenharmony_ci */ 1906e5d0e473Sopenharmony_ci TYPE_MMS_SEND_CONF, 1907e5d0e473Sopenharmony_ci 1908e5d0e473Sopenharmony_ci /** 1909e5d0e473Sopenharmony_ci * Indicates an MMS notification. 1910e5d0e473Sopenharmony_ci * 1911e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1912e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1913e5d0e473Sopenharmony_ci * @since 8 1914e5d0e473Sopenharmony_ci */ 1915e5d0e473Sopenharmony_ci TYPE_MMS_NOTIFICATION_IND, 1916e5d0e473Sopenharmony_ci 1917e5d0e473Sopenharmony_ci /** 1918e5d0e473Sopenharmony_ci * Indicates an MMS message response. 1919e5d0e473Sopenharmony_ci * 1920e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1921e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1922e5d0e473Sopenharmony_ci * @since 8 1923e5d0e473Sopenharmony_ci */ 1924e5d0e473Sopenharmony_ci TYPE_MMS_RESP_IND, 1925e5d0e473Sopenharmony_ci 1926e5d0e473Sopenharmony_ci /** 1927e5d0e473Sopenharmony_ci * Indicates an MMS message retrieval configuration. 1928e5d0e473Sopenharmony_ci * 1929e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1930e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1931e5d0e473Sopenharmony_ci * @since 8 1932e5d0e473Sopenharmony_ci */ 1933e5d0e473Sopenharmony_ci TYPE_MMS_RETRIEVE_CONF, 1934e5d0e473Sopenharmony_ci 1935e5d0e473Sopenharmony_ci /** 1936e5d0e473Sopenharmony_ci * Indicates the type of multimedia message confirmation index. 1937e5d0e473Sopenharmony_ci * 1938e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1939e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1940e5d0e473Sopenharmony_ci * @since 8 1941e5d0e473Sopenharmony_ci */ 1942e5d0e473Sopenharmony_ci TYPE_MMS_ACKNOWLEDGE_IND, 1943e5d0e473Sopenharmony_ci 1944e5d0e473Sopenharmony_ci /** 1945e5d0e473Sopenharmony_ci * Indicates an MMS message delivery. 1946e5d0e473Sopenharmony_ci * 1947e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1948e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1949e5d0e473Sopenharmony_ci * @since 8 1950e5d0e473Sopenharmony_ci */ 1951e5d0e473Sopenharmony_ci TYPE_MMS_DELIVERY_IND, 1952e5d0e473Sopenharmony_ci 1953e5d0e473Sopenharmony_ci /** 1954e5d0e473Sopenharmony_ci * Indicates an MMS message read report on the recipient side. 1955e5d0e473Sopenharmony_ci * 1956e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1957e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1958e5d0e473Sopenharmony_ci * @since 8 1959e5d0e473Sopenharmony_ci */ 1960e5d0e473Sopenharmony_ci TYPE_MMS_READ_REC_IND, 1961e5d0e473Sopenharmony_ci 1962e5d0e473Sopenharmony_ci /** 1963e5d0e473Sopenharmony_ci * Indicates an original MMS message read report on the originating side. 1964e5d0e473Sopenharmony_ci * 1965e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1966e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1967e5d0e473Sopenharmony_ci * @since 8 1968e5d0e473Sopenharmony_ci */ 1969e5d0e473Sopenharmony_ci TYPE_MMS_READ_ORIG_IND, 1970e5d0e473Sopenharmony_ci } 1971e5d0e473Sopenharmony_ci 1972e5d0e473Sopenharmony_ci /** 1973e5d0e473Sopenharmony_ci * Enumerates MMS message priorities. 1974e5d0e473Sopenharmony_ci * 1975e5d0e473Sopenharmony_ci * @enum { number } 1976e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1977e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1978e5d0e473Sopenharmony_ci * @since 8 1979e5d0e473Sopenharmony_ci */ 1980e5d0e473Sopenharmony_ci export enum MmsPriorityType { 1981e5d0e473Sopenharmony_ci /** 1982e5d0e473Sopenharmony_ci * Indicates low priority. 1983e5d0e473Sopenharmony_ci * 1984e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1985e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1986e5d0e473Sopenharmony_ci * @since 8 1987e5d0e473Sopenharmony_ci */ 1988e5d0e473Sopenharmony_ci MMS_LOW = 128, 1989e5d0e473Sopenharmony_ci 1990e5d0e473Sopenharmony_ci /** 1991e5d0e473Sopenharmony_ci * Indicates normal priority. 1992e5d0e473Sopenharmony_ci * 1993e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 1994e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 1995e5d0e473Sopenharmony_ci * @since 8 1996e5d0e473Sopenharmony_ci */ 1997e5d0e473Sopenharmony_ci MMS_NORMAL, 1998e5d0e473Sopenharmony_ci 1999e5d0e473Sopenharmony_ci /** 2000e5d0e473Sopenharmony_ci * Indicates high priority. 2001e5d0e473Sopenharmony_ci * 2002e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2003e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2004e5d0e473Sopenharmony_ci * @since 8 2005e5d0e473Sopenharmony_ci */ 2006e5d0e473Sopenharmony_ci MMS_HIGH, 2007e5d0e473Sopenharmony_ci } 2008e5d0e473Sopenharmony_ci 2009e5d0e473Sopenharmony_ci /** 2010e5d0e473Sopenharmony_ci * Enumerates MMS versions. 2011e5d0e473Sopenharmony_ci * 2012e5d0e473Sopenharmony_ci * @enum { number } 2013e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2014e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2015e5d0e473Sopenharmony_ci * @since 8 2016e5d0e473Sopenharmony_ci */ 2017e5d0e473Sopenharmony_ci export enum MmsVersionType { 2018e5d0e473Sopenharmony_ci /** 2019e5d0e473Sopenharmony_ci * Indicates MMS version 1_0. 2020e5d0e473Sopenharmony_ci * 2021e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2022e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2023e5d0e473Sopenharmony_ci * @since 8 2024e5d0e473Sopenharmony_ci */ 2025e5d0e473Sopenharmony_ci MMS_VERSION_1_0 = 0x10, 2026e5d0e473Sopenharmony_ci 2027e5d0e473Sopenharmony_ci /** 2028e5d0e473Sopenharmony_ci * Indicates MMS version 1_1. 2029e5d0e473Sopenharmony_ci * 2030e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2031e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2032e5d0e473Sopenharmony_ci * @since 8 2033e5d0e473Sopenharmony_ci */ 2034e5d0e473Sopenharmony_ci MMS_VERSION_1_1, 2035e5d0e473Sopenharmony_ci 2036e5d0e473Sopenharmony_ci /** 2037e5d0e473Sopenharmony_ci * Indicates MMS version 1_2. 2038e5d0e473Sopenharmony_ci * 2039e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2040e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2041e5d0e473Sopenharmony_ci * @since 8 2042e5d0e473Sopenharmony_ci */ 2043e5d0e473Sopenharmony_ci MMS_VERSION_1_2, 2044e5d0e473Sopenharmony_ci 2045e5d0e473Sopenharmony_ci /** 2046e5d0e473Sopenharmony_ci * Indicates MMS version 1_3. 2047e5d0e473Sopenharmony_ci * 2048e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2049e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2050e5d0e473Sopenharmony_ci * @since 8 2051e5d0e473Sopenharmony_ci */ 2052e5d0e473Sopenharmony_ci MMS_VERSION_1_3, 2053e5d0e473Sopenharmony_ci } 2054e5d0e473Sopenharmony_ci 2055e5d0e473Sopenharmony_ci /** 2056e5d0e473Sopenharmony_ci * Enumerates MMS character sets. 2057e5d0e473Sopenharmony_ci * 2058e5d0e473Sopenharmony_ci * @enum { number } 2059e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2060e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2061e5d0e473Sopenharmony_ci * @since 8 2062e5d0e473Sopenharmony_ci */ 2063e5d0e473Sopenharmony_ci export enum MmsCharSets { 2064e5d0e473Sopenharmony_ci /** 2065e5d0e473Sopenharmony_ci * Indicates the BIG5 format. 2066e5d0e473Sopenharmony_ci * 2067e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2068e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2069e5d0e473Sopenharmony_ci * @since 8 2070e5d0e473Sopenharmony_ci */ 2071e5d0e473Sopenharmony_ci BIG5 = 0X07EA, 2072e5d0e473Sopenharmony_ci 2073e5d0e473Sopenharmony_ci /** 2074e5d0e473Sopenharmony_ci * Indicates the ISO_10646_UCS_2 format. 2075e5d0e473Sopenharmony_ci * 2076e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2077e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2078e5d0e473Sopenharmony_ci * @since 8 2079e5d0e473Sopenharmony_ci */ 2080e5d0e473Sopenharmony_ci ISO_10646_UCS_2 = 0X03E8, 2081e5d0e473Sopenharmony_ci 2082e5d0e473Sopenharmony_ci /** 2083e5d0e473Sopenharmony_ci * Indicates the ISO_8859_1 format. 2084e5d0e473Sopenharmony_ci * 2085e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2086e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2087e5d0e473Sopenharmony_ci * @since 8 2088e5d0e473Sopenharmony_ci */ 2089e5d0e473Sopenharmony_ci ISO_8859_1 = 0X04, 2090e5d0e473Sopenharmony_ci 2091e5d0e473Sopenharmony_ci /** 2092e5d0e473Sopenharmony_ci * Indicates the ISO_8859_2 format. 2093e5d0e473Sopenharmony_ci * 2094e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2095e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2096e5d0e473Sopenharmony_ci * @since 8 2097e5d0e473Sopenharmony_ci */ 2098e5d0e473Sopenharmony_ci ISO_8859_2, 2099e5d0e473Sopenharmony_ci 2100e5d0e473Sopenharmony_ci /** 2101e5d0e473Sopenharmony_ci * Indicates the ISO_8859_3 format. 2102e5d0e473Sopenharmony_ci * 2103e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2104e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2105e5d0e473Sopenharmony_ci * @since 8 2106e5d0e473Sopenharmony_ci */ 2107e5d0e473Sopenharmony_ci ISO_8859_3, 2108e5d0e473Sopenharmony_ci 2109e5d0e473Sopenharmony_ci /** 2110e5d0e473Sopenharmony_ci * Indicates the ISO_8859_4 format. 2111e5d0e473Sopenharmony_ci * 2112e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2113e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2114e5d0e473Sopenharmony_ci * @since 8 2115e5d0e473Sopenharmony_ci */ 2116e5d0e473Sopenharmony_ci ISO_8859_4, 2117e5d0e473Sopenharmony_ci 2118e5d0e473Sopenharmony_ci /** 2119e5d0e473Sopenharmony_ci * Indicates the ISO_8859_5 format. 2120e5d0e473Sopenharmony_ci * 2121e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2122e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2123e5d0e473Sopenharmony_ci * @since 8 2124e5d0e473Sopenharmony_ci */ 2125e5d0e473Sopenharmony_ci ISO_8859_5, 2126e5d0e473Sopenharmony_ci 2127e5d0e473Sopenharmony_ci /** 2128e5d0e473Sopenharmony_ci * Indicates the ISO_8859_6 format. 2129e5d0e473Sopenharmony_ci * 2130e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2131e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2132e5d0e473Sopenharmony_ci * @since 8 2133e5d0e473Sopenharmony_ci */ 2134e5d0e473Sopenharmony_ci ISO_8859_6, 2135e5d0e473Sopenharmony_ci 2136e5d0e473Sopenharmony_ci /** 2137e5d0e473Sopenharmony_ci * Indicates the ISO_8859_7 format. 2138e5d0e473Sopenharmony_ci * 2139e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2140e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2141e5d0e473Sopenharmony_ci * @since 8 2142e5d0e473Sopenharmony_ci */ 2143e5d0e473Sopenharmony_ci ISO_8859_7, 2144e5d0e473Sopenharmony_ci 2145e5d0e473Sopenharmony_ci /** 2146e5d0e473Sopenharmony_ci * Indicates the ISO_8859_8 format. 2147e5d0e473Sopenharmony_ci * 2148e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2149e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2150e5d0e473Sopenharmony_ci * @since 8 2151e5d0e473Sopenharmony_ci */ 2152e5d0e473Sopenharmony_ci ISO_8859_8, 2153e5d0e473Sopenharmony_ci 2154e5d0e473Sopenharmony_ci /** 2155e5d0e473Sopenharmony_ci * Indicates the ISO_8859_9 format. 2156e5d0e473Sopenharmony_ci * 2157e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2158e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2159e5d0e473Sopenharmony_ci * @since 8 2160e5d0e473Sopenharmony_ci */ 2161e5d0e473Sopenharmony_ci ISO_8859_9, 2162e5d0e473Sopenharmony_ci 2163e5d0e473Sopenharmony_ci /** 2164e5d0e473Sopenharmony_ci * Indicates the SHIFT_JIS format. 2165e5d0e473Sopenharmony_ci * 2166e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2167e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2168e5d0e473Sopenharmony_ci * @since 8 2169e5d0e473Sopenharmony_ci */ 2170e5d0e473Sopenharmony_ci SHIFT_JIS = 0X11, 2171e5d0e473Sopenharmony_ci 2172e5d0e473Sopenharmony_ci /** 2173e5d0e473Sopenharmony_ci * Indicates the US_ASCII format. 2174e5d0e473Sopenharmony_ci * 2175e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2176e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2177e5d0e473Sopenharmony_ci * @since 8 2178e5d0e473Sopenharmony_ci */ 2179e5d0e473Sopenharmony_ci US_ASCII = 0X03, 2180e5d0e473Sopenharmony_ci 2181e5d0e473Sopenharmony_ci /** 2182e5d0e473Sopenharmony_ci * Indicates the UTF_8 format. 2183e5d0e473Sopenharmony_ci * 2184e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2185e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2186e5d0e473Sopenharmony_ci * @since 8 2187e5d0e473Sopenharmony_ci */ 2188e5d0e473Sopenharmony_ci UTF_8 = 0X6A, 2189e5d0e473Sopenharmony_ci } 2190e5d0e473Sopenharmony_ci 2191e5d0e473Sopenharmony_ci /** 2192e5d0e473Sopenharmony_ci * Enumerates disposition types. 2193e5d0e473Sopenharmony_ci * 2194e5d0e473Sopenharmony_ci * @enum { number } 2195e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2196e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2197e5d0e473Sopenharmony_ci * @since 8 2198e5d0e473Sopenharmony_ci */ 2199e5d0e473Sopenharmony_ci export enum DispositionType { 2200e5d0e473Sopenharmony_ci /** 2201e5d0e473Sopenharmony_ci * Indicates the data source type. 2202e5d0e473Sopenharmony_ci * 2203e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2204e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2205e5d0e473Sopenharmony_ci * @since 8 2206e5d0e473Sopenharmony_ci */ 2207e5d0e473Sopenharmony_ci FROM_DATA = 0, 2208e5d0e473Sopenharmony_ci 2209e5d0e473Sopenharmony_ci /** 2210e5d0e473Sopenharmony_ci * Indicates the attachment type. 2211e5d0e473Sopenharmony_ci * 2212e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2213e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2214e5d0e473Sopenharmony_ci * @since 8 2215e5d0e473Sopenharmony_ci */ 2216e5d0e473Sopenharmony_ci ATTACHMENT, 2217e5d0e473Sopenharmony_ci 2218e5d0e473Sopenharmony_ci /** 2219e5d0e473Sopenharmony_ci * Indicates the inlining type. 2220e5d0e473Sopenharmony_ci * 2221e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2222e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2223e5d0e473Sopenharmony_ci * @since 8 2224e5d0e473Sopenharmony_ci */ 2225e5d0e473Sopenharmony_ci INLINE, 2226e5d0e473Sopenharmony_ci } 2227e5d0e473Sopenharmony_ci 2228e5d0e473Sopenharmony_ci /** 2229e5d0e473Sopenharmony_ci * Enumerates report types. 2230e5d0e473Sopenharmony_ci * 2231e5d0e473Sopenharmony_ci * @enum { number } 2232e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2233e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2234e5d0e473Sopenharmony_ci * @since 8 2235e5d0e473Sopenharmony_ci */ 2236e5d0e473Sopenharmony_ci export enum ReportType { 2237e5d0e473Sopenharmony_ci /** 2238e5d0e473Sopenharmony_ci * Indicates that a report is required. 2239e5d0e473Sopenharmony_ci * 2240e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2241e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2242e5d0e473Sopenharmony_ci * @since 8 2243e5d0e473Sopenharmony_ci */ 2244e5d0e473Sopenharmony_ci MMS_YES = 128, 2245e5d0e473Sopenharmony_ci 2246e5d0e473Sopenharmony_ci /** 2247e5d0e473Sopenharmony_ci * Indicates that a report is not required. 2248e5d0e473Sopenharmony_ci * 2249e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2250e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2251e5d0e473Sopenharmony_ci * @since 8 2252e5d0e473Sopenharmony_ci */ 2253e5d0e473Sopenharmony_ci MMS_NO, 2254e5d0e473Sopenharmony_ci } 2255e5d0e473Sopenharmony_ci 2256e5d0e473Sopenharmony_ci /** 2257e5d0e473Sopenharmony_ci * Defines the cell broadcast configuration options. 2258e5d0e473Sopenharmony_ci * 2259e5d0e473Sopenharmony_ci * @interface CBConfigOptions 2260e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2261e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2262e5d0e473Sopenharmony_ci * @since 7 2263e5d0e473Sopenharmony_ci */ 2264e5d0e473Sopenharmony_ci export interface CBConfigOptions { 2265e5d0e473Sopenharmony_ci /** 2266e5d0e473Sopenharmony_ci * Indicates the card slot ID for the cell broadcast configuration options. 2267e5d0e473Sopenharmony_ci * 2268e5d0e473Sopenharmony_ci * @type { number } 2269e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2270e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2271e5d0e473Sopenharmony_ci * @since 7 2272e5d0e473Sopenharmony_ci */ 2273e5d0e473Sopenharmony_ci slotId: number; 2274e5d0e473Sopenharmony_ci 2275e5d0e473Sopenharmony_ci /** 2276e5d0e473Sopenharmony_ci * Indicates whether to enable cell broadcast. 2277e5d0e473Sopenharmony_ci * 2278e5d0e473Sopenharmony_ci * @type { boolean } 2279e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2280e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2281e5d0e473Sopenharmony_ci * @since 7 2282e5d0e473Sopenharmony_ci */ 2283e5d0e473Sopenharmony_ci enable: boolean; 2284e5d0e473Sopenharmony_ci 2285e5d0e473Sopenharmony_ci /** 2286e5d0e473Sopenharmony_ci * Indicates the start message ID for the cell broadcast configuration options. 2287e5d0e473Sopenharmony_ci * 2288e5d0e473Sopenharmony_ci * @type { number } 2289e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2290e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2291e5d0e473Sopenharmony_ci * @since 7 2292e5d0e473Sopenharmony_ci */ 2293e5d0e473Sopenharmony_ci startMessageId: number; 2294e5d0e473Sopenharmony_ci 2295e5d0e473Sopenharmony_ci /** 2296e5d0e473Sopenharmony_ci * Indicates the end message ID for the cell broadcast configuration options. 2297e5d0e473Sopenharmony_ci * 2298e5d0e473Sopenharmony_ci * @type { number } 2299e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2300e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2301e5d0e473Sopenharmony_ci * @since 7 2302e5d0e473Sopenharmony_ci */ 2303e5d0e473Sopenharmony_ci endMessageId: number; 2304e5d0e473Sopenharmony_ci 2305e5d0e473Sopenharmony_ci /** 2306e5d0e473Sopenharmony_ci * Indicates the RAN type for the cell broadcast configuration options. 2307e5d0e473Sopenharmony_ci * 2308e5d0e473Sopenharmony_ci * @type { RanType } 2309e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2310e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2311e5d0e473Sopenharmony_ci * @since 7 2312e5d0e473Sopenharmony_ci */ 2313e5d0e473Sopenharmony_ci ranType: RanType; 2314e5d0e473Sopenharmony_ci } 2315e5d0e473Sopenharmony_ci 2316e5d0e473Sopenharmony_ci /** 2317e5d0e473Sopenharmony_ci * Defines the SIM message options. 2318e5d0e473Sopenharmony_ci * 2319e5d0e473Sopenharmony_ci * @interface SimMessageOptions 2320e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2321e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2322e5d0e473Sopenharmony_ci * @since 7 2323e5d0e473Sopenharmony_ci */ 2324e5d0e473Sopenharmony_ci export interface SimMessageOptions { 2325e5d0e473Sopenharmony_ci /** 2326e5d0e473Sopenharmony_ci * Indicates the card slot ID for the SIM message options. 2327e5d0e473Sopenharmony_ci * 2328e5d0e473Sopenharmony_ci * @type { number } 2329e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2330e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2331e5d0e473Sopenharmony_ci * @since 7 2332e5d0e473Sopenharmony_ci */ 2333e5d0e473Sopenharmony_ci slotId: number; 2334e5d0e473Sopenharmony_ci 2335e5d0e473Sopenharmony_ci /** 2336e5d0e473Sopenharmony_ci * Indicates the short message service center for the SIM message options. 2337e5d0e473Sopenharmony_ci * 2338e5d0e473Sopenharmony_ci * @type { string } 2339e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2340e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2341e5d0e473Sopenharmony_ci * @since 7 2342e5d0e473Sopenharmony_ci */ 2343e5d0e473Sopenharmony_ci smsc: string; 2344e5d0e473Sopenharmony_ci 2345e5d0e473Sopenharmony_ci /** 2346e5d0e473Sopenharmony_ci * Indicates the protocol data unit for the SIM message options. 2347e5d0e473Sopenharmony_ci * 2348e5d0e473Sopenharmony_ci * @type { string } 2349e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2350e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2351e5d0e473Sopenharmony_ci * @since 7 2352e5d0e473Sopenharmony_ci */ 2353e5d0e473Sopenharmony_ci pdu: string; 2354e5d0e473Sopenharmony_ci 2355e5d0e473Sopenharmony_ci /** 2356e5d0e473Sopenharmony_ci * Indicates the status for the SIM message options. 2357e5d0e473Sopenharmony_ci * 2358e5d0e473Sopenharmony_ci * @type { SimMessageStatus } 2359e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2360e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2361e5d0e473Sopenharmony_ci * @since 7 2362e5d0e473Sopenharmony_ci */ 2363e5d0e473Sopenharmony_ci status: SimMessageStatus; 2364e5d0e473Sopenharmony_ci } 2365e5d0e473Sopenharmony_ci 2366e5d0e473Sopenharmony_ci /** 2367e5d0e473Sopenharmony_ci * Defines the updating SIM message options. 2368e5d0e473Sopenharmony_ci * 2369e5d0e473Sopenharmony_ci * @interface UpdateSimMessageOptions 2370e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2371e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2372e5d0e473Sopenharmony_ci * @since 7 2373e5d0e473Sopenharmony_ci */ 2374e5d0e473Sopenharmony_ci export interface UpdateSimMessageOptions { 2375e5d0e473Sopenharmony_ci /** 2376e5d0e473Sopenharmony_ci * Indicates the card slot ID for the updating SIM message options. 2377e5d0e473Sopenharmony_ci * 2378e5d0e473Sopenharmony_ci * @type { number } 2379e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2380e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2381e5d0e473Sopenharmony_ci * @since 7 2382e5d0e473Sopenharmony_ci */ 2383e5d0e473Sopenharmony_ci slotId: number; 2384e5d0e473Sopenharmony_ci 2385e5d0e473Sopenharmony_ci /** 2386e5d0e473Sopenharmony_ci * Indicates the message index for the updating SIM message options. 2387e5d0e473Sopenharmony_ci * 2388e5d0e473Sopenharmony_ci * @type { number } 2389e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2390e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2391e5d0e473Sopenharmony_ci * @since 7 2392e5d0e473Sopenharmony_ci */ 2393e5d0e473Sopenharmony_ci msgIndex: number; 2394e5d0e473Sopenharmony_ci 2395e5d0e473Sopenharmony_ci /** 2396e5d0e473Sopenharmony_ci * Indicates the new status for the updating SIM message options. 2397e5d0e473Sopenharmony_ci * 2398e5d0e473Sopenharmony_ci * @type { SimMessageStatus } 2399e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2400e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2401e5d0e473Sopenharmony_ci * @since 7 2402e5d0e473Sopenharmony_ci */ 2403e5d0e473Sopenharmony_ci newStatus: SimMessageStatus; 2404e5d0e473Sopenharmony_ci 2405e5d0e473Sopenharmony_ci /** 2406e5d0e473Sopenharmony_ci * Indicates the protocol data unit for the updating SIM message options. 2407e5d0e473Sopenharmony_ci * 2408e5d0e473Sopenharmony_ci * @type { string } 2409e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2410e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2411e5d0e473Sopenharmony_ci * @since 7 2412e5d0e473Sopenharmony_ci */ 2413e5d0e473Sopenharmony_ci pdu: string; 2414e5d0e473Sopenharmony_ci 2415e5d0e473Sopenharmony_ci /** 2416e5d0e473Sopenharmony_ci * Indicates the short message service center for the updating SIM message options. 2417e5d0e473Sopenharmony_ci * 2418e5d0e473Sopenharmony_ci * @type { string } 2419e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2420e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2421e5d0e473Sopenharmony_ci * @since 7 2422e5d0e473Sopenharmony_ci */ 2423e5d0e473Sopenharmony_ci smsc: string; 2424e5d0e473Sopenharmony_ci } 2425e5d0e473Sopenharmony_ci 2426e5d0e473Sopenharmony_ci /** 2427e5d0e473Sopenharmony_ci * Defines an SMS message instance. 2428e5d0e473Sopenharmony_ci * 2429e5d0e473Sopenharmony_ci * @interface ShortMessage 2430e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2431e5d0e473Sopenharmony_ci * @since 6 2432e5d0e473Sopenharmony_ci */ 2433e5d0e473Sopenharmony_ci export interface ShortMessage { 2434e5d0e473Sopenharmony_ci /** 2435e5d0e473Sopenharmony_ci * Indicates the SMS message body. 2436e5d0e473Sopenharmony_ci * 2437e5d0e473Sopenharmony_ci * @type { string } 2438e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2439e5d0e473Sopenharmony_ci * @since 6 2440e5d0e473Sopenharmony_ci */ 2441e5d0e473Sopenharmony_ci visibleMessageBody: string; 2442e5d0e473Sopenharmony_ci 2443e5d0e473Sopenharmony_ci /** 2444e5d0e473Sopenharmony_ci * Indicates the address of the sender, which is to be displayed on the UI. 2445e5d0e473Sopenharmony_ci * 2446e5d0e473Sopenharmony_ci * @type { string } 2447e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2448e5d0e473Sopenharmony_ci * @since 6 2449e5d0e473Sopenharmony_ci */ 2450e5d0e473Sopenharmony_ci visibleRawAddress: string; 2451e5d0e473Sopenharmony_ci 2452e5d0e473Sopenharmony_ci /** 2453e5d0e473Sopenharmony_ci * Indicates the SMS type. 2454e5d0e473Sopenharmony_ci * 2455e5d0e473Sopenharmony_ci * @type { ShortMessageClass } 2456e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2457e5d0e473Sopenharmony_ci * @since 6 2458e5d0e473Sopenharmony_ci */ 2459e5d0e473Sopenharmony_ci messageClass: ShortMessageClass; 2460e5d0e473Sopenharmony_ci 2461e5d0e473Sopenharmony_ci /** 2462e5d0e473Sopenharmony_ci * Indicates the protocol identifier. 2463e5d0e473Sopenharmony_ci * 2464e5d0e473Sopenharmony_ci * @type { number } 2465e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2466e5d0e473Sopenharmony_ci * @since 6 2467e5d0e473Sopenharmony_ci */ 2468e5d0e473Sopenharmony_ci protocolId: number; 2469e5d0e473Sopenharmony_ci 2470e5d0e473Sopenharmony_ci /** 2471e5d0e473Sopenharmony_ci * Indicates the short message service center (SMSC) address. 2472e5d0e473Sopenharmony_ci * 2473e5d0e473Sopenharmony_ci * @type { string } 2474e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2475e5d0e473Sopenharmony_ci * @since 6 2476e5d0e473Sopenharmony_ci */ 2477e5d0e473Sopenharmony_ci scAddress: string; 2478e5d0e473Sopenharmony_ci 2479e5d0e473Sopenharmony_ci /** 2480e5d0e473Sopenharmony_ci * Indicates the SMSC timestamp. 2481e5d0e473Sopenharmony_ci * 2482e5d0e473Sopenharmony_ci * @type { number } 2483e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2484e5d0e473Sopenharmony_ci * @since 6 2485e5d0e473Sopenharmony_ci */ 2486e5d0e473Sopenharmony_ci scTimestamp: number; 2487e5d0e473Sopenharmony_ci 2488e5d0e473Sopenharmony_ci /** 2489e5d0e473Sopenharmony_ci * Indicates whether the received SMS is a "replace short message". 2490e5d0e473Sopenharmony_ci * 2491e5d0e473Sopenharmony_ci * @type { boolean } 2492e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2493e5d0e473Sopenharmony_ci * @since 6 2494e5d0e473Sopenharmony_ci */ 2495e5d0e473Sopenharmony_ci isReplaceMessage: boolean; 2496e5d0e473Sopenharmony_ci 2497e5d0e473Sopenharmony_ci /** 2498e5d0e473Sopenharmony_ci * Indicates whether the received SMS contains "TP-Reply-Path". 2499e5d0e473Sopenharmony_ci * 2500e5d0e473Sopenharmony_ci * @type { boolean } 2501e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2502e5d0e473Sopenharmony_ci * @since 6 2503e5d0e473Sopenharmony_ci */ 2504e5d0e473Sopenharmony_ci hasReplyPath: boolean; 2505e5d0e473Sopenharmony_ci 2506e5d0e473Sopenharmony_ci /** 2507e5d0e473Sopenharmony_ci * Indicates Protocol Data Units (PDUs) from an SMS message. 2508e5d0e473Sopenharmony_ci * 2509e5d0e473Sopenharmony_ci * @type { Array<number> } 2510e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2511e5d0e473Sopenharmony_ci * @since 6 2512e5d0e473Sopenharmony_ci */ 2513e5d0e473Sopenharmony_ci pdu: Array<number>; 2514e5d0e473Sopenharmony_ci 2515e5d0e473Sopenharmony_ci /** 2516e5d0e473Sopenharmony_ci * Indicates the SMS message status from the SMS-STATUS-REPORT message sent by the 2517e5d0e473Sopenharmony_ci * Short Message Service Center (SMSC). 2518e5d0e473Sopenharmony_ci * 2519e5d0e473Sopenharmony_ci * @type { number } 2520e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2521e5d0e473Sopenharmony_ci * @since 6 2522e5d0e473Sopenharmony_ci */ 2523e5d0e473Sopenharmony_ci status: number; 2524e5d0e473Sopenharmony_ci 2525e5d0e473Sopenharmony_ci /** 2526e5d0e473Sopenharmony_ci * Indicates whether the current message is SMS-STATUS-REPORT. 2527e5d0e473Sopenharmony_ci * 2528e5d0e473Sopenharmony_ci * @type { boolean } 2529e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2530e5d0e473Sopenharmony_ci * @since 6 2531e5d0e473Sopenharmony_ci */ 2532e5d0e473Sopenharmony_ci isSmsStatusReportMessage: boolean; 2533e5d0e473Sopenharmony_ci } 2534e5d0e473Sopenharmony_ci 2535e5d0e473Sopenharmony_ci /** 2536e5d0e473Sopenharmony_ci * Defines a SIM message. 2537e5d0e473Sopenharmony_ci * 2538e5d0e473Sopenharmony_ci * @interface SimShortMessage 2539e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2540e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2541e5d0e473Sopenharmony_ci * @since 7 2542e5d0e473Sopenharmony_ci */ 2543e5d0e473Sopenharmony_ci export interface SimShortMessage { 2544e5d0e473Sopenharmony_ci /** 2545e5d0e473Sopenharmony_ci * Indicates the SMS message in the SIM. 2546e5d0e473Sopenharmony_ci * 2547e5d0e473Sopenharmony_ci * @type { ShortMessage } 2548e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2549e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2550e5d0e473Sopenharmony_ci * @since 7 2551e5d0e473Sopenharmony_ci */ 2552e5d0e473Sopenharmony_ci shortMessage: ShortMessage; 2553e5d0e473Sopenharmony_ci 2554e5d0e473Sopenharmony_ci /** 2555e5d0e473Sopenharmony_ci * Indicates the storage status of SMS messages in the SIM. 2556e5d0e473Sopenharmony_ci * 2557e5d0e473Sopenharmony_ci * @type { SimMessageStatus } 2558e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2559e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2560e5d0e473Sopenharmony_ci * @since 7 2561e5d0e473Sopenharmony_ci */ 2562e5d0e473Sopenharmony_ci simMessageStatus: SimMessageStatus; 2563e5d0e473Sopenharmony_ci 2564e5d0e473Sopenharmony_ci /** 2565e5d0e473Sopenharmony_ci * Indicates the index of SMS messages in the SIM. 2566e5d0e473Sopenharmony_ci * 2567e5d0e473Sopenharmony_ci * @type { number } 2568e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2569e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2570e5d0e473Sopenharmony_ci * @since 7 2571e5d0e473Sopenharmony_ci */ 2572e5d0e473Sopenharmony_ci indexOnSim: number; 2573e5d0e473Sopenharmony_ci } 2574e5d0e473Sopenharmony_ci 2575e5d0e473Sopenharmony_ci /** 2576e5d0e473Sopenharmony_ci * Defines the SIM message status. 2577e5d0e473Sopenharmony_ci * 2578e5d0e473Sopenharmony_ci * @enum { number } 2579e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2580e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2581e5d0e473Sopenharmony_ci * @since 7 2582e5d0e473Sopenharmony_ci */ 2583e5d0e473Sopenharmony_ci export enum SimMessageStatus { 2584e5d0e473Sopenharmony_ci /** 2585e5d0e473Sopenharmony_ci * Status free space on SIM. 2586e5d0e473Sopenharmony_ci * 2587e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2588e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2589e5d0e473Sopenharmony_ci * @since 7 2590e5d0e473Sopenharmony_ci */ 2591e5d0e473Sopenharmony_ci SIM_MESSAGE_STATUS_FREE = 0, 2592e5d0e473Sopenharmony_ci 2593e5d0e473Sopenharmony_ci /** 2594e5d0e473Sopenharmony_ci * Indicates a read message. 2595e5d0e473Sopenharmony_ci * 2596e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2597e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2598e5d0e473Sopenharmony_ci * @since 7 2599e5d0e473Sopenharmony_ci */ 2600e5d0e473Sopenharmony_ci SIM_MESSAGE_STATUS_READ = 1, 2601e5d0e473Sopenharmony_ci 2602e5d0e473Sopenharmony_ci /** 2603e5d0e473Sopenharmony_ci * Indicates an unread message. 2604e5d0e473Sopenharmony_ci * 2605e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2606e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2607e5d0e473Sopenharmony_ci * @since 7 2608e5d0e473Sopenharmony_ci */ 2609e5d0e473Sopenharmony_ci SIM_MESSAGE_STATUS_UNREAD = 3, 2610e5d0e473Sopenharmony_ci 2611e5d0e473Sopenharmony_ci /** 2612e5d0e473Sopenharmony_ci * Indicates a sent message (only applicable to SMS). 2613e5d0e473Sopenharmony_ci * 2614e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2615e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2616e5d0e473Sopenharmony_ci * @since 7 2617e5d0e473Sopenharmony_ci */ 2618e5d0e473Sopenharmony_ci SIM_MESSAGE_STATUS_SENT = 5, 2619e5d0e473Sopenharmony_ci 2620e5d0e473Sopenharmony_ci /** 2621e5d0e473Sopenharmony_ci * Indicates an unsent message (only applicable to SMS). 2622e5d0e473Sopenharmony_ci * 2623e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2624e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2625e5d0e473Sopenharmony_ci * @since 7 2626e5d0e473Sopenharmony_ci */ 2627e5d0e473Sopenharmony_ci SIM_MESSAGE_STATUS_UNSENT = 7, 2628e5d0e473Sopenharmony_ci } 2629e5d0e473Sopenharmony_ci 2630e5d0e473Sopenharmony_ci /** 2631e5d0e473Sopenharmony_ci * Enumerates SMS message types. 2632e5d0e473Sopenharmony_ci * 2633e5d0e473Sopenharmony_ci * @enum { number } 2634e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2635e5d0e473Sopenharmony_ci * @since 6 2636e5d0e473Sopenharmony_ci */ 2637e5d0e473Sopenharmony_ci export enum ShortMessageClass { 2638e5d0e473Sopenharmony_ci /** 2639e5d0e473Sopenharmony_ci * Indicates an unknown type. 2640e5d0e473Sopenharmony_ci * 2641e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2642e5d0e473Sopenharmony_ci * @since 6 2643e5d0e473Sopenharmony_ci */ 2644e5d0e473Sopenharmony_ci UNKNOWN, 2645e5d0e473Sopenharmony_ci 2646e5d0e473Sopenharmony_ci /** 2647e5d0e473Sopenharmony_ci * Indicates an instant message, which is displayed immediately after being received. 2648e5d0e473Sopenharmony_ci * 2649e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2650e5d0e473Sopenharmony_ci * @since 6 2651e5d0e473Sopenharmony_ci */ 2652e5d0e473Sopenharmony_ci INSTANT_MESSAGE, 2653e5d0e473Sopenharmony_ci 2654e5d0e473Sopenharmony_ci /** 2655e5d0e473Sopenharmony_ci * Indicates an SMS message that can be stored on the device or SIM card based on the storage status. 2656e5d0e473Sopenharmony_ci * 2657e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2658e5d0e473Sopenharmony_ci * @since 6 2659e5d0e473Sopenharmony_ci */ 2660e5d0e473Sopenharmony_ci OPTIONAL_MESSAGE, 2661e5d0e473Sopenharmony_ci 2662e5d0e473Sopenharmony_ci /** 2663e5d0e473Sopenharmony_ci * Indicates an SMS message containing SIM card information, which is to be stored in a SIM card. 2664e5d0e473Sopenharmony_ci * 2665e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2666e5d0e473Sopenharmony_ci * @since 6 2667e5d0e473Sopenharmony_ci */ 2668e5d0e473Sopenharmony_ci SIM_MESSAGE, 2669e5d0e473Sopenharmony_ci 2670e5d0e473Sopenharmony_ci /** 2671e5d0e473Sopenharmony_ci * Indicates an SMS message to be forwarded to another device. 2672e5d0e473Sopenharmony_ci * 2673e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2674e5d0e473Sopenharmony_ci * @since 6 2675e5d0e473Sopenharmony_ci */ 2676e5d0e473Sopenharmony_ci FORWARD_MESSAGE 2677e5d0e473Sopenharmony_ci } 2678e5d0e473Sopenharmony_ci 2679e5d0e473Sopenharmony_ci /** 2680e5d0e473Sopenharmony_ci * Provides the options (including callbacks) for sending an SMS message. 2681e5d0e473Sopenharmony_ci * 2682e5d0e473Sopenharmony_ci * @interface SendMessageOptions 2683e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2684e5d0e473Sopenharmony_ci * @since 6 2685e5d0e473Sopenharmony_ci */ 2686e5d0e473Sopenharmony_ci export interface SendMessageOptions { 2687e5d0e473Sopenharmony_ci /** 2688e5d0e473Sopenharmony_ci * Indicates the ID of the SIM card slot used for sending the SMS message. 2689e5d0e473Sopenharmony_ci * 2690e5d0e473Sopenharmony_ci * @type { number } 2691e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2692e5d0e473Sopenharmony_ci * @since 6 2693e5d0e473Sopenharmony_ci */ 2694e5d0e473Sopenharmony_ci slotId: number; 2695e5d0e473Sopenharmony_ci 2696e5d0e473Sopenharmony_ci /** 2697e5d0e473Sopenharmony_ci * Indicates the address to which the SMS message is sent. 2698e5d0e473Sopenharmony_ci * 2699e5d0e473Sopenharmony_ci * @type { string } 2700e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2701e5d0e473Sopenharmony_ci * @since 6 2702e5d0e473Sopenharmony_ci */ 2703e5d0e473Sopenharmony_ci destinationHost: string; 2704e5d0e473Sopenharmony_ci 2705e5d0e473Sopenharmony_ci /** 2706e5d0e473Sopenharmony_ci * Indicates the SMSC address. If the value is {@code null}, the default SMSC address of the SIM card. 2707e5d0e473Sopenharmony_ci * 2708e5d0e473Sopenharmony_ci * @type { ?string } 2709e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2710e5d0e473Sopenharmony_ci * @since 6 2711e5d0e473Sopenharmony_ci */ 2712e5d0e473Sopenharmony_ci serviceCenter?: string; 2713e5d0e473Sopenharmony_ci 2714e5d0e473Sopenharmony_ci /** 2715e5d0e473Sopenharmony_ci * If the content is a string, this is a short message. If the content is a byte array, this is a data message. 2716e5d0e473Sopenharmony_ci * 2717e5d0e473Sopenharmony_ci * @type { string | Array<number> } 2718e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2719e5d0e473Sopenharmony_ci * @since 6 2720e5d0e473Sopenharmony_ci */ 2721e5d0e473Sopenharmony_ci content: string | Array<number>; 2722e5d0e473Sopenharmony_ci 2723e5d0e473Sopenharmony_ci /** 2724e5d0e473Sopenharmony_ci * If send data message, destinationPort is mandatory. Otherwise is optional. 2725e5d0e473Sopenharmony_ci * 2726e5d0e473Sopenharmony_ci * @type { ?number } 2727e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2728e5d0e473Sopenharmony_ci * @since 6 2729e5d0e473Sopenharmony_ci */ 2730e5d0e473Sopenharmony_ci destinationPort?: number; 2731e5d0e473Sopenharmony_ci 2732e5d0e473Sopenharmony_ci /** 2733e5d0e473Sopenharmony_ci * Indicates the callback invoked after the SMS message is sent. 2734e5d0e473Sopenharmony_ci * 2735e5d0e473Sopenharmony_ci * @type { ?AsyncCallback<ISendShortMessageCallback> } 2736e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2737e5d0e473Sopenharmony_ci * @since 6 2738e5d0e473Sopenharmony_ci */ 2739e5d0e473Sopenharmony_ci sendCallback?: AsyncCallback<ISendShortMessageCallback>; 2740e5d0e473Sopenharmony_ci 2741e5d0e473Sopenharmony_ci /** 2742e5d0e473Sopenharmony_ci * Indicates the callback invoked after the SMS message is delivered. 2743e5d0e473Sopenharmony_ci * 2744e5d0e473Sopenharmony_ci * @type { ?AsyncCallback<IDeliveryShortMessageCallback> } 2745e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2746e5d0e473Sopenharmony_ci * @since 6 2747e5d0e473Sopenharmony_ci */ 2748e5d0e473Sopenharmony_ci deliveryCallback?: AsyncCallback<IDeliveryShortMessageCallback>; 2749e5d0e473Sopenharmony_ci 2750e5d0e473Sopenharmony_ci /** 2751e5d0e473Sopenharmony_ci * Indicates whether the message is saved to database. 2752e5d0e473Sopenharmony_ci * 2753e5d0e473Sopenharmony_ci * @type { ?boolean } 2754e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2755e5d0e473Sopenharmony_ci * @since 12 2756e5d0e473Sopenharmony_ci */ 2757e5d0e473Sopenharmony_ci isPersist?: boolean; 2758e5d0e473Sopenharmony_ci } 2759e5d0e473Sopenharmony_ci 2760e5d0e473Sopenharmony_ci /** 2761e5d0e473Sopenharmony_ci * Provides the callback for the SMS message sending result. 2762e5d0e473Sopenharmony_ci * 2763e5d0e473Sopenharmony_ci * @interface ISendShortMessageCallback 2764e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2765e5d0e473Sopenharmony_ci * @since 6 2766e5d0e473Sopenharmony_ci */ 2767e5d0e473Sopenharmony_ci export interface ISendShortMessageCallback { 2768e5d0e473Sopenharmony_ci /** 2769e5d0e473Sopenharmony_ci * Indicates the SMS message sending result. 2770e5d0e473Sopenharmony_ci * 2771e5d0e473Sopenharmony_ci * @type { SendSmsResult } 2772e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2773e5d0e473Sopenharmony_ci * @since 6 2774e5d0e473Sopenharmony_ci */ 2775e5d0e473Sopenharmony_ci result: SendSmsResult; 2776e5d0e473Sopenharmony_ci 2777e5d0e473Sopenharmony_ci /** 2778e5d0e473Sopenharmony_ci * Indicates the URI to store the sent SMS message. 2779e5d0e473Sopenharmony_ci * 2780e5d0e473Sopenharmony_ci * @type { string } 2781e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2782e5d0e473Sopenharmony_ci * @since 6 2783e5d0e473Sopenharmony_ci */ 2784e5d0e473Sopenharmony_ci url: string; 2785e5d0e473Sopenharmony_ci 2786e5d0e473Sopenharmony_ci /** 2787e5d0e473Sopenharmony_ci * Specifies whether this is the last part of a multi-part SMS message. 2788e5d0e473Sopenharmony_ci * 2789e5d0e473Sopenharmony_ci * @type { boolean } 2790e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2791e5d0e473Sopenharmony_ci * @since 6 2792e5d0e473Sopenharmony_ci */ 2793e5d0e473Sopenharmony_ci isLastPart: boolean; 2794e5d0e473Sopenharmony_ci } 2795e5d0e473Sopenharmony_ci 2796e5d0e473Sopenharmony_ci /** 2797e5d0e473Sopenharmony_ci * Provides the callback for the SMS message delivery report. 2798e5d0e473Sopenharmony_ci * 2799e5d0e473Sopenharmony_ci * @interface IDeliveryShortMessageCallback 2800e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2801e5d0e473Sopenharmony_ci * @since 6 2802e5d0e473Sopenharmony_ci */ 2803e5d0e473Sopenharmony_ci export interface IDeliveryShortMessageCallback { 2804e5d0e473Sopenharmony_ci /** 2805e5d0e473Sopenharmony_ci * Indicates the SMS delivery report. 2806e5d0e473Sopenharmony_ci * 2807e5d0e473Sopenharmony_ci * @type { Array<number> } 2808e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2809e5d0e473Sopenharmony_ci * @since 6 2810e5d0e473Sopenharmony_ci */ 2811e5d0e473Sopenharmony_ci pdu: Array<number>; 2812e5d0e473Sopenharmony_ci } 2813e5d0e473Sopenharmony_ci 2814e5d0e473Sopenharmony_ci /** 2815e5d0e473Sopenharmony_ci * Enumerates SMS message sending results. 2816e5d0e473Sopenharmony_ci * 2817e5d0e473Sopenharmony_ci * @enum { number } 2818e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2819e5d0e473Sopenharmony_ci * @since 6 2820e5d0e473Sopenharmony_ci */ 2821e5d0e473Sopenharmony_ci export enum SendSmsResult { 2822e5d0e473Sopenharmony_ci /** 2823e5d0e473Sopenharmony_ci * Indicates that the SMS message is successfully sent. 2824e5d0e473Sopenharmony_ci * 2825e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2826e5d0e473Sopenharmony_ci * @since 6 2827e5d0e473Sopenharmony_ci */ 2828e5d0e473Sopenharmony_ci SEND_SMS_SUCCESS = 0, 2829e5d0e473Sopenharmony_ci 2830e5d0e473Sopenharmony_ci /** 2831e5d0e473Sopenharmony_ci * Indicates that sending the SMS message fails due to an unknown reason. 2832e5d0e473Sopenharmony_ci * 2833e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2834e5d0e473Sopenharmony_ci * @since 6 2835e5d0e473Sopenharmony_ci */ 2836e5d0e473Sopenharmony_ci SEND_SMS_FAILURE_UNKNOWN = 1, 2837e5d0e473Sopenharmony_ci 2838e5d0e473Sopenharmony_ci /** 2839e5d0e473Sopenharmony_ci * Indicates that sending the SMS fails because the modem is powered off. 2840e5d0e473Sopenharmony_ci * 2841e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2842e5d0e473Sopenharmony_ci * @since 6 2843e5d0e473Sopenharmony_ci */ 2844e5d0e473Sopenharmony_ci SEND_SMS_FAILURE_RADIO_OFF = 2, 2845e5d0e473Sopenharmony_ci 2846e5d0e473Sopenharmony_ci /** 2847e5d0e473Sopenharmony_ci * Indicates that sending the SMS message fails because the network is unavailable 2848e5d0e473Sopenharmony_ci * or does not support sending or reception of SMS messages. 2849e5d0e473Sopenharmony_ci * 2850e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2851e5d0e473Sopenharmony_ci * @since 6 2852e5d0e473Sopenharmony_ci */ 2853e5d0e473Sopenharmony_ci SEND_SMS_FAILURE_SERVICE_UNAVAILABLE = 3 2854e5d0e473Sopenharmony_ci } 2855e5d0e473Sopenharmony_ci 2856e5d0e473Sopenharmony_ci /** 2857e5d0e473Sopenharmony_ci * Enumerates RAN type. 2858e5d0e473Sopenharmony_ci * 2859e5d0e473Sopenharmony_ci * @enum { number } 2860e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2861e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2862e5d0e473Sopenharmony_ci * @since 7 2863e5d0e473Sopenharmony_ci */ 2864e5d0e473Sopenharmony_ci export enum RanType { 2865e5d0e473Sopenharmony_ci /** 2866e5d0e473Sopenharmony_ci * Indicates GSM type. 2867e5d0e473Sopenharmony_ci * 2868e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2869e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2870e5d0e473Sopenharmony_ci * @since 7 2871e5d0e473Sopenharmony_ci */ 2872e5d0e473Sopenharmony_ci TYPE_GSM = 1, 2873e5d0e473Sopenharmony_ci 2874e5d0e473Sopenharmony_ci /** 2875e5d0e473Sopenharmony_ci * Indicates CDMA type. 2876e5d0e473Sopenharmony_ci * 2877e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2878e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2879e5d0e473Sopenharmony_ci * @since 7 2880e5d0e473Sopenharmony_ci */ 2881e5d0e473Sopenharmony_ci TYPE_CDMA = 2, 2882e5d0e473Sopenharmony_ci } 2883e5d0e473Sopenharmony_ci 2884e5d0e473Sopenharmony_ci /** 2885e5d0e473Sopenharmony_ci * Defines the SMS message segment information. 2886e5d0e473Sopenharmony_ci * 2887e5d0e473Sopenharmony_ci * @interface SmsSegmentsInfo 2888e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2889e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2890e5d0e473Sopenharmony_ci * @since 8 2891e5d0e473Sopenharmony_ci */ 2892e5d0e473Sopenharmony_ci export interface SmsSegmentsInfo { 2893e5d0e473Sopenharmony_ci /** 2894e5d0e473Sopenharmony_ci * Indicates the split count for the SMS message segment information. 2895e5d0e473Sopenharmony_ci * 2896e5d0e473Sopenharmony_ci * @type { number } 2897e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2898e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2899e5d0e473Sopenharmony_ci * @since 8 2900e5d0e473Sopenharmony_ci */ 2901e5d0e473Sopenharmony_ci splitCount: number; 2902e5d0e473Sopenharmony_ci 2903e5d0e473Sopenharmony_ci /** 2904e5d0e473Sopenharmony_ci * Indicates the encoding count for the SMS message segment information. 2905e5d0e473Sopenharmony_ci * 2906e5d0e473Sopenharmony_ci * @type { number } 2907e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2908e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2909e5d0e473Sopenharmony_ci * @since 8 2910e5d0e473Sopenharmony_ci */ 2911e5d0e473Sopenharmony_ci encodeCount: number; 2912e5d0e473Sopenharmony_ci 2913e5d0e473Sopenharmony_ci /** 2914e5d0e473Sopenharmony_ci * Indicates the remaining encoding count for the SMS message segment information. 2915e5d0e473Sopenharmony_ci * 2916e5d0e473Sopenharmony_ci * @type { number } 2917e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2918e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2919e5d0e473Sopenharmony_ci * @since 8 2920e5d0e473Sopenharmony_ci */ 2921e5d0e473Sopenharmony_ci encodeCountRemaining: number; 2922e5d0e473Sopenharmony_ci 2923e5d0e473Sopenharmony_ci /** 2924e5d0e473Sopenharmony_ci * Indicates the encoding scheme for the SMS message segment information. 2925e5d0e473Sopenharmony_ci * 2926e5d0e473Sopenharmony_ci * @type { SmsEncodingScheme } 2927e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2928e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2929e5d0e473Sopenharmony_ci * @since 8 2930e5d0e473Sopenharmony_ci */ 2931e5d0e473Sopenharmony_ci scheme: SmsEncodingScheme; 2932e5d0e473Sopenharmony_ci } 2933e5d0e473Sopenharmony_ci 2934e5d0e473Sopenharmony_ci /** 2935e5d0e473Sopenharmony_ci * Enumerates SMS encoding schemes. 2936e5d0e473Sopenharmony_ci * 2937e5d0e473Sopenharmony_ci * @enum { number } 2938e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2939e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2940e5d0e473Sopenharmony_ci * @since 8 2941e5d0e473Sopenharmony_ci */ 2942e5d0e473Sopenharmony_ci export enum SmsEncodingScheme { 2943e5d0e473Sopenharmony_ci /** 2944e5d0e473Sopenharmony_ci * Indicates an unknown encoding schemes. 2945e5d0e473Sopenharmony_ci * 2946e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2947e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2948e5d0e473Sopenharmony_ci * @since 8 2949e5d0e473Sopenharmony_ci */ 2950e5d0e473Sopenharmony_ci SMS_ENCODING_UNKNOWN = 0, 2951e5d0e473Sopenharmony_ci 2952e5d0e473Sopenharmony_ci /** 2953e5d0e473Sopenharmony_ci * Indicates that the encoding schemes is 7-digit. 2954e5d0e473Sopenharmony_ci * 2955e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2956e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2957e5d0e473Sopenharmony_ci * @since 8 2958e5d0e473Sopenharmony_ci */ 2959e5d0e473Sopenharmony_ci SMS_ENCODING_7BIT, 2960e5d0e473Sopenharmony_ci 2961e5d0e473Sopenharmony_ci /** 2962e5d0e473Sopenharmony_ci * Indicates that the encoding schemes is 8-digit. 2963e5d0e473Sopenharmony_ci * 2964e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2965e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2966e5d0e473Sopenharmony_ci * @since 8 2967e5d0e473Sopenharmony_ci */ 2968e5d0e473Sopenharmony_ci SMS_ENCODING_8BIT, 2969e5d0e473Sopenharmony_ci 2970e5d0e473Sopenharmony_ci /** 2971e5d0e473Sopenharmony_ci * Indicates that the encoding schemes is 16-digit. 2972e5d0e473Sopenharmony_ci * 2973e5d0e473Sopenharmony_ci * @syscap SystemCapability.Telephony.SmsMms 2974e5d0e473Sopenharmony_ci * @systemapi Hide this for inner system use. 2975e5d0e473Sopenharmony_ci * @since 8 2976e5d0e473Sopenharmony_ci */ 2977e5d0e473Sopenharmony_ci SMS_ENCODING_16BIT, 2978e5d0e473Sopenharmony_ci } 2979e5d0e473Sopenharmony_ci} 2980e5d0e473Sopenharmony_ci 2981e5d0e473Sopenharmony_ciexport default sms; 2982