The Wayback Machine - https://web.archive.org/web/20170719121207/https://developer.android.com/reference/android/service/carrier/CarrierMessagingService.SendSmsResult.html
Skip to content

Most visited

Recently visited

navigation

CarrierMessagingService.SendSmsResult

public static final class CarrierMessagingService.SendSmsResult
extends Object

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


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.

Inherited methods

Image From class java.lang.Object

Public constructors

CarrierMessagingService.SendSmsResult

added in API level 22
CarrierMessagingService.SendSmsResult (int sendStatus, 
                int messageRef)

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
int getMessageRef ()

Returns the message reference of the just-sent SMS.

Returns
int the message reference

getSendStatus

added in API level 22
int getSendStatus ()

Returns the send status of the just-sent SMS.

Returns
int the send status

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.