Stay organized with collections
Save and categorize content based on your preferences.
SendMmsResult
class SendMmsResult
The result of sending an MMS.
Summary
Public constructors |
Constructs a SendMmsResult with the MMS send result, and the SendConf PDU.
|
Public methods |
ByteArray? |
Returns the SendConf PDU, which confirms that the message was sent.
|
Int |
Returns the send status of the just-sent MMS.
|
Public constructors
SendMmsResult
SendMmsResult(
sendStatus: Int,
sendConfPdu: ByteArray?)
Constructs a SendMmsResult with the MMS send result, and the SendConf PDU.
Public methods
getSendConfPdu
fun getSendConfPdu(): ByteArray?
Returns the SendConf PDU, which confirms that the message was sent.
Return |
ByteArray? |
the SendConf PDU This value may be null . |
getSendStatus
fun getSendStatus(): Int
Returns the send status of the just-sent MMS.
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.SendMmsResult\n\nAdded in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nSendMmsResult\n=============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/service/carrier/CarrierMessagingService.SendMmsResult \"View this page in Java\") \n\n```\nclass SendMmsResult\n```\n\n|---|--------------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.service.carrier.CarrierMessagingService.SendMmsResult](#) |\n\nThe result of sending an MMS.\n\nSummary\n-------\n\n| Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [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. |\n\n| Public methods ||\n|------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------|\n| [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)? | [getSendConfPdu](#getSendConfPdu())`()` Returns the SendConf PDU, which confirms that the message was sent. |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getSendStatus](#getSendStatus())`()` Returns the send status of the just-sent MMS. |\n\nPublic constructors\n-------------------\n\n### SendMmsResult\n\nAdded in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nSendMmsResult(\n sendStatus: Int, \n sendConfPdu: ByteArray?)\n```\n\nConstructs a SendMmsResult with the MMS send result, and the SendConf PDU.\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| `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](/reference/kotlin/android/service/carrier/CarrierMessagingService#SEND_STATUS_OK:kotlin.Int). |\n\nPublic methods\n--------------\n\n### getSendConfPdu\n\nAdded in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getSendConfPdu(): ByteArray?\n```\n\nReturns the SendConf PDU, which confirms that the message was sent.\n\n| Return ||\n|------------------------------------------------------------------------------------------|--------------------------------------------|\n| [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)? | the SendConf PDU 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 MMS.\n\n| Return ||\n|----------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the send status which is 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) |"]]