# CarrierMessagingService.SendMultipartSmsResult

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

# SendMultipartSmsResult

*** ** * ** ***

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

```
class SendMultipartSmsResult
```

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

The result of sending a multipart SMS.

## Summary

|                                                                                                                                                                                                                                                       Public constructors                                                                                                                                                                                                                                                        ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [SendMultipartSmsResult](https://developer.android.com/reference/kotlin/android/service/carrier/CarrierMessagingService.SendMultipartSmsResult#SendMultipartSmsResult(kotlin.Int,%20kotlin.IntArray))`(`sendStatus:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `messageRefs:` `[IntArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html)?`)` Constructs a SendMultipartSmsResult with the send status and message references for the just-sent multipart SMS. |

|                                                                                                                                                   Public methods                                                                                                                                                    ||
|----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [IntArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html)? | [getMessageRefs](https://developer.android.com/reference/kotlin/android/service/carrier/CarrierMessagingService.SendMultipartSmsResult#getMessageRefs())`()` Returns the message references of the just-sent multipart SMS. |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)             | [getSendStatus](https://developer.android.com/reference/kotlin/android/service/carrier/CarrierMessagingService.SendMultipartSmsResult#getSendStatus())`()` Returns the send status of the just-sent SMS.                    |

## Public constructors

### SendMultipartSmsResult

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

```
SendMultipartSmsResult(
    sendStatus: Int, 
    messageRefs: IntArray?)
```

Constructs a SendMultipartSmsResult with the send status and message references for the just-sent multipart SMS.

|                                                                                                                                                                                                                                                                                              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). |
| `messageRefs` | [IntArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html)?:an array of message references, one for each part of the multipart SMS. This field is applicable only if send status is[SEND_STATUS_OK](https://developer.android.com/reference/kotlin/android/service/carrier/CarrierMessagingService#SEND_STATUS_OK:kotlin.Int). This value may be`null`.                                                                                                                                                                                                    |

## Public methods

### getMessageRefs

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

```
fun getMessageRefs(): IntArray?
```

Returns the message references of the just-sent multipart SMS.

|                                                                                     Return                                                                                      ||
|----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------|
| [IntArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html)? | the message references, one for each part of the multipart SMS 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 SMS.

|                                           Return                                            ||
|----------------------------------------------------------------------------|-----------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the send status |