Stay organized with collections
Save and categorize content based on your preferences.
SendMultipartSmsResult
class SendMultipartSmsResult
The result of sending a multipart SMS.
Summary
Public constructors |
Constructs a SendMultipartSmsResult with the send status and message references for the just-sent multipart SMS.
|
Public methods |
IntArray? |
Returns the message references of the just-sent multipart SMS.
|
Int |
Returns the send status of the just-sent SMS.
|
Public constructors
SendMultipartSmsResult
SendMultipartSmsResult(
sendStatus: Int,
messageRefs: IntArray?)
Constructs a SendMultipartSmsResult with the send status and message references for the just-sent multipart SMS.
Public methods
getMessageRefs
fun getMessageRefs(): IntArray?
Returns the message references of the just-sent multipart SMS.
Return |
IntArray? |
the message references, one for each part of the multipart SMS This value may be null . |
getSendStatus
fun getSendStatus(): Int
Returns the send status of the just-sent SMS.
Return |
Int |
the send status |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# CarrierMessagingService.SendMultipartSmsResult\n\nAdded in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nSendMultipartSmsResult\n======================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/service/carrier/CarrierMessagingService.SendMultipartSmsResult \"View this page in Java\") \n\n```\nclass SendMultipartSmsResult\n```\n\n|---|-----------------------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.service.carrier.CarrierMessagingService.SendMultipartSmsResult](#) |\n\nThe result of sending a multipart SMS.\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [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. |\n\n| Public methods ||\n|----------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------|\n| [IntArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html)? | [getMessageRefs](#getMessageRefs())`()` Returns the message references of the just-sent multipart SMS. |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getSendStatus](#getSendStatus())`()` Returns the send status of the just-sent SMS. |\n\nPublic constructors\n-------------------\n\n### SendMultipartSmsResult\n\nAdded in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nSendMultipartSmsResult(\n sendStatus: Int, \n messageRefs: IntArray?)\n```\n\nConstructs a SendMultipartSmsResult with the send status and message references for the just-sent multipart SMS.\n\n| Parameters ||\n|---------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `sendStatus` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): send status, one of [SEND_STATUS_OK](/reference/kotlin/android/service/carrier/CarrierMessagingService#SEND_STATUS_OK:kotlin.Int), [SEND_STATUS_RETRY_ON_CARRIER_NETWORK](/reference/kotlin/android/service/carrier/CarrierMessagingService#SEND_STATUS_RETRY_ON_CARRIER_NETWORK:kotlin.Int), and [SEND_STATUS_ERROR](/reference/kotlin/android/service/carrier/CarrierMessagingService#SEND_STATUS_ERROR:kotlin.Int). |\n| `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](/reference/kotlin/android/service/carrier/CarrierMessagingService#SEND_STATUS_OK:kotlin.Int). This value may be `null`. |\n\nPublic methods\n--------------\n\n### getMessageRefs\n\nAdded in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getMessageRefs(): IntArray?\n```\n\nReturns the message references of the just-sent multipart SMS.\n\n| Return ||\n|----------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------|\n| [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`. |\n\n### getSendStatus\n\nAdded in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getSendStatus(): Int\n```\n\nReturns the send status of the just-sent SMS.\n\n| Return ||\n|----------------------------------------------------------------------------|-----------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the send status |"]]