Most visited

Recently visited

Added in API level 22

CarrierMessagingService.SendSmsResult

public static final class CarrierMessagingService.SendSmsResult
extends Object

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


发送短信的结果。

Summary

Public constructors

CarrierMessagingService.SendSmsResult(int sendStatus, int messageRef)

用刚刚发送的SMS的发送状态和消息引用构造一个SendSmsResult。

Public methods

int getMessageRef()

返回刚发送的SMS的消息参考。

int getSendStatus()

返回刚发送的SMS的发送状态。

Inherited methods

From class java.lang.Object

Public constructors

CarrierMessagingService.SendSmsResult

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

用刚刚发送的SMS的发送状态和消息引用构造一个SendSmsResult。

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

返回刚发送的SMS的消息参考。

Returns
int the message reference

getSendStatus

Added in API level 22
int getSendStatus ()

返回刚发送的SMS的发送状态。

Returns
int the send status

Hooray!