Stay organized with collections
Save and categorize content based on your preferences.
SendSmsResult
class SendSmsResult
The result of sending an SMS.
Summary
Public constructors |
Constructs a SendSmsResult with the send status and message reference for the just-sent SMS.
|
Public methods |
Int |
Returns the message reference of the just-sent SMS.
|
Int |
Returns the send status of the just-sent SMS.
|
Public constructors
SendSmsResult
SendSmsResult(
sendStatus: Int,
messageRef: Int)
Constructs a SendSmsResult with the send status and message reference for the just-sent SMS.
Public methods
getMessageRef
fun getMessageRef(): Int
Returns the message reference of the just-sent SMS.
Return |
Int |
the message reference |
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.SendSmsResult\n\nAdded in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nSendSmsResult\n=============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/service/carrier/CarrierMessagingService.SendSmsResult \"View this page in Java\") \n\n```\nclass SendSmsResult\n```\n\n|---|--------------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.service.carrier.CarrierMessagingService.SendSmsResult](#) |\n\nThe result of sending an SMS.\n\nSummary\n-------\n\n| Public constructors ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [SendSmsResult](#SendSmsResult(kotlin.Int,%20kotlin.Int))`(`sendStatus:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `messageRef:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Constructs a SendSmsResult with the send status and message reference for the just-sent SMS. |\n\n| Public methods ||\n|----------------------------------------------------------------------------|-------------------------------------------------------------------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getMessageRef](#getMessageRef())`()` Returns the message reference of the just-sent 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### SendSmsResult\n\nAdded in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nSendSmsResult(\n sendStatus: Int, \n messageRef: Int)\n```\n\nConstructs a SendSmsResult with the send status and message reference for the just-sent 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| `messageRef` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): message reference of the just-sent SMS. This field is applicable only if send status is [SEND_STATUS_OK](/reference/kotlin/android/service/carrier/CarrierMessagingService#SEND_STATUS_OK:kotlin.Int). |\n\nPublic methods\n--------------\n\n### getMessageRef\n\nAdded in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getMessageRef(): Int\n```\n\nReturns the message reference of the just-sent SMS.\n\n| Return ||\n|----------------------------------------------------------------------------|-----------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the message reference |\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 |"]]