Android APIs
public static final class

CarrierMessagingService.SendSmsResult

extends Object
java.lang.Object
   ↳ android.service.carrier.CarrierMessagingService.SendSmsResult

Class Overview

The result of sending an SMS.

Summary

Public Constructors
CarrierMessagingService.SendSmsResult(int sendStatus, int messageRef)
Constructs a SendSmsResult with the send status and message reference for the just-sent SMS.
Public Methods
int getMessageRef()
Returns the message reference of the just-sent SMS.
int getSendStatus()
Returns the send status of the just-sent SMS.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CarrierMessagingService.SendSmsResult (int sendStatus, int messageRef)

Added in API level 22

Constructs a SendSmsResult with the send status and message reference for the just-sent SMS.

Parameters
sendStatus send status, one of SEND_STATUS_OK, SEND_STATUS_RETRY_ON_CARRIER_NETWORK, and SEND_STATUS_ERROR.
messageRef message reference of the just-sent SMS. This field is applicable only if send status is SEND_STATUS_OK.

Public Methods

public int getMessageRef ()

Added in API level 22

Returns the message reference of the just-sent SMS.

Returns
  • the message reference

public int getSendStatus ()

Added in API level 22

Returns the send status of the just-sent SMS.

Returns
  • the send status