SendMmsResult

class SendMmsResult
kotlin.Any
   ↳ android.service.carrier.CarrierMessagingService.SendMmsResult

The result of sending an MMS.
Requires API level 22 (Android 5.1, Lollipop)

Summary

Public constructors
<init>(sendStatus: Int, sendConfPdu: ByteArray?)

Constructs a SendMmsResult with the MMS send result, and the SendConf PDU.

Public methods
Int

Returns the send status of the just-sent MMS.

ByteArray?

Returns the SendConf PDU, which confirms that the message was sent.

Public constructors

<init>

SendMmsResult(sendStatus: Int, sendConfPdu: ByteArray?)

Constructs a SendMmsResult with the MMS send result, and the SendConf PDU.

Parameters
sendStatus Int: send status, one of #SEND_STATUS_OK, #SEND_STATUS_RETRY_ON_CARRIER_NETWORK, and #SEND_STATUS_ERROR
sendConfPdu Int: a possibly {code null} SendConf PDU, which confirms that the message was sent. sendConfPdu is ignored if the result is not #SEND_STATUS_OK. This value may be null.

Public methods

getSendStatus

added in API level 22
fun getSendStatus(): Int

Returns the send status of the just-sent MMS.
Requires API level 22 (Android 5.1, Lollipop)

Return
Int: the send status which is one of #SEND_STATUS_OK, #SEND_STATUS_RETRY_ON_CARRIER_NETWORK, and #SEND_STATUS_ERROR

getSendConfPdu

added in API level 22
fun getSendConfPdu(): ByteArray?

Returns the SendConf PDU, which confirms that the message was sent.
Requires API level 22 (Android 5.1, Lollipop)

Return
ByteArray?: the SendConf PDU This value may be null.