Added in API level 22

SendMultipartSmsResult


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

The result of sending a multipart SMS.

Summary

Public constructors
SendMultipartSmsResult(sendStatus: Int, messageRefs: IntArray?)

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

Added in API level 22
SendMultipartSmsResult(
    sendStatus: Int,
    messageRefs: IntArray?)

Constructs a SendMultipartSmsResult with the send status and message references for the just-sent multipart SMS.

Parameters
sendStatus Int: send status, one of SEND_STATUS_OK, SEND_STATUS_RETRY_ON_CARRIER_NETWORK, and SEND_STATUS_ERROR.
messageRefs IntArray?: 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. This value may be null.

Public methods

getMessageRefs

Added in API level 22
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

Added in API level 22
fun getSendStatus(): Int

Returns the send status of the just-sent SMS.

Return
Int the send status