Added in API level 22
SendSmsResult
class SendSmsResult
| kotlin.Any | |
| ↳ | android.service.carrier.CarrierMessagingService.SendSmsResult |
The result of sending an SMS.
Summary
| Public constructors | |
|---|---|
SendSmsResult(sendStatus: Int, messageRef: Int)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
Added in API level 22
SendSmsResult(
sendStatus: Int,
messageRef: Int)
Constructs a SendSmsResult with the send status and message reference for the just-sent SMS.
| Parameters | |
|---|---|
sendStatus |
Int: send status, one of SEND_STATUS_OK, SEND_STATUS_RETRY_ON_CARRIER_NETWORK, and SEND_STATUS_ERROR. |
messageRef |
Int: message reference of the just-sent SMS. This field is applicable only if send status is SEND_STATUS_OK. |
Public methods
getMessageRef
Added in API level 22
fun getMessageRef(): Int
Returns the message reference of the just-sent SMS.
| Return | |
|---|---|
Int |
the message reference |
getSendStatus
Added in API level 22
fun getSendStatus(): Int
Returns the send status of the just-sent SMS.
| Return | |
|---|---|
Int |
the send status |