CarrierMessagingService.SendMultipartSmsResult


public static final class CarrierMessagingService.SendMultipartSmsResult
extends Object

java.lang.Object
   ↳ android.service.carrier.CarrierMessagingService.SendMultipartSmsResult


The result of sending a multipart SMS.

Summary

Public constructors

SendMultipartSmsResult(int sendStatus, int[] messageRefs)

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

Public methods

int[] getMessageRefs()

Returns the message references of the just-sent multipart SMS.

int getSendStatus()

Returns the send status of the just-sent SMS.

Inherited methods

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Public constructors

SendMultipartSmsResult

Added in API level 22
public SendMultipartSmsResult (int sendStatus, 
                int[] messageRefs)

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

Parameters
sendStatus int: send status, one of CarrierMessagingService.SEND_STATUS_OK, CarrierMessagingService.SEND_STATUS_RETRY_ON_CARRIER_NETWORK, and CarrierMessagingService.SEND_STATUS_ERROR.

messageRefs int: an array of message references, one for each part of the multipart SMS. This field is applicable only if send status is CarrierMessagingService.SEND_STATUS_OK. This value may be null.

Public methods

getMessageRefs

Added in API level 22
public int[] getMessageRefs ()

Returns the message references of the just-sent multipart SMS.

Returns
int[] the message references, one for each part of the multipart SMS This value may be null.

getSendStatus

Added in API level 22
public int getSendStatus ()

Returns the send status of the just-sent SMS.

Returns
int the send status