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!