# CarrierMessagingService.SendMmsResult

Added in[API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# SendMmsResult

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/service/carrier/CarrierMessagingService.SendMmsResult "View this page in Java")  

```
class SendMmsResult
```

|---|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                                                 ||
| ↳ | [android.service.carrier.CarrierMessagingService.SendMmsResult](https://developer.android.com/reference/kotlin/android/service/carrier/CarrierMessagingService.SendMmsResult#) |

The result of sending an MMS.

## Summary

|                                                                                                                                                                                                                        Public constructors                                                                                                                                                                                                                         ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [SendMmsResult](https://developer.android.com/reference/kotlin/android/service/carrier/CarrierMessagingService.SendMmsResult#SendMmsResult(kotlin.Int,%20kotlin.ByteArray))`(`sendStatus:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `sendConfPdu:` `[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)?`)` Constructs a SendMmsResult with the MMS send result, and the SendConf PDU. |

|                                                                                                                                                  Public methods                                                                                                                                                   ||
|------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)? | [getSendConfPdu](https://developer.android.com/reference/kotlin/android/service/carrier/CarrierMessagingService.SendMmsResult#getSendConfPdu())`()` Returns the SendConf PDU, which confirms that the message was sent. |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)               | [getSendStatus](https://developer.android.com/reference/kotlin/android/service/carrier/CarrierMessagingService.SendMmsResult#getSendStatus())`()` Returns the send status of the just-sent MMS.                         |

## Public constructors

### SendMmsResult

Added in[API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
SendMmsResult(
    sendStatus: Int, 
    sendConfPdu: ByteArray?)
```

Constructs a SendMmsResult with the MMS send result, and the SendConf PDU.

|                                                                                                                                                                                                                                                                                             Parameters                                                                                                                                                                                                                                                                                              ||
|---------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `sendStatus`  | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):send status, one of[SEND_STATUS_OK](https://developer.android.com/reference/kotlin/android/service/carrier/CarrierMessagingService#SEND_STATUS_OK:kotlin.Int),[SEND_STATUS_RETRY_ON_CARRIER_NETWORK](https://developer.android.com/reference/kotlin/android/service/carrier/CarrierMessagingService#SEND_STATUS_RETRY_ON_CARRIER_NETWORK:kotlin.Int), and[SEND_STATUS_ERROR](https://developer.android.com/reference/kotlin/android/service/carrier/CarrierMessagingService#SEND_STATUS_ERROR:kotlin.Int) |
| `sendConfPdu` | [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)?:a possibly {code null} SendConf PDU, which confirms that the message was sent. sendConfPdu is ignored if the`result`is not[SEND_STATUS_OK](https://developer.android.com/reference/kotlin/android/service/carrier/CarrierMessagingService#SEND_STATUS_OK:kotlin.Int).                                                                                                                                                                                                                       |

## Public methods

### getSendConfPdu

Added in[API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getSendConfPdu(): ByteArray?
```

Returns the SendConf PDU, which confirms that the message was sent.

|                                                               Return                                                                ||
|------------------------------------------------------------------------------------------|-------------------------------------------|
| [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)? | the SendConf PDU This value may be`null`. |

### getSendStatus

Added in[API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getSendStatus(): Int
```

Returns the send status of the just-sent MMS.

|                                                                                                                                                                                                                                                                                              Return                                                                                                                                                                                                                                                                                               ||
|----------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the send status which is one of[SEND_STATUS_OK](https://developer.android.com/reference/kotlin/android/service/carrier/CarrierMessagingService#SEND_STATUS_OK:kotlin.Int),[SEND_STATUS_RETRY_ON_CARRIER_NETWORK](https://developer.android.com/reference/kotlin/android/service/carrier/CarrierMessagingService#SEND_STATUS_RETRY_ON_CARRIER_NETWORK:kotlin.Int), and[SEND_STATUS_ERROR](https://developer.android.com/reference/kotlin/android/service/carrier/CarrierMessagingService#SEND_STATUS_ERROR:kotlin.Int) |