public interface ISendShortMessageCallback
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
SEND_SMS_FAILURE_RADIO_OFF |
Indicates that sending the SMS fails because the modem is powered off.
|
static int |
SEND_SMS_FAILURE_SERVICE_UNAVAILABLE |
Indicates that sending the SMS message fails because the network is unavailable
or does not support sending or reception of SMS messages.
|
static int |
SEND_SMS_FAILURE_UNKNOWN |
Indicates that sending the SMS message fails due to an unknown reason.
|
static int |
SEND_SMS_SUCCESS |
Indicates that the SMS message is successfully sent.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
sendShortMessageResult(int result,
String uri,
boolean isLastPart) |
Called when an SMS message is sent.
|
static final int SEND_SMS_FAILURE_RADIO_OFF
static final int SEND_SMS_FAILURE_SERVICE_UNAVAILABLE
static final int SEND_SMS_FAILURE_UNKNOWN
static final int SEND_SMS_SUCCESS
void sendShortMessageResult(int result,
String uri,
boolean isLastPart)
result - Indicates the SMS message sending result.uri - Indicates the URI to store the sent SMS message.isLastPart - Specifies whether this is the last part of a multi-part SMS message.
The value true means that this is the last part of the multi-part SMS message,
and false means the opposite.