@Implements(value=android.telephony.SmsManager.class, minSdk=18) public class ShadowSmsManager extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ShadowSmsManager.DataMessageParams |
static class |
ShadowSmsManager.TextMultipartParams |
static class |
ShadowSmsManager.TextSmsParams |
Constructor and Description |
---|
ShadowSmsManager() |
Modifier and Type | Method and Description |
---|---|
void |
clearLastSentDataMessageParams()
Clear last recorded parameters for
sendDataMessage . |
void |
clearLastSentMultipartTextMessageParams()
Clear last recorded parameters for
sendMultipartTextMessage . |
void |
clearLastSentTextMessageParams()
Clear last recorded parameters for
sendTextMessage . |
ShadowSmsManager.DataMessageParams |
getLastSentDataMessageParams() |
ShadowSmsManager.TextMultipartParams |
getLastSentMultipartTextMessageParams() |
ShadowSmsManager.TextSmsParams |
getLastSentTextMessageParams() |
static void |
reset() |
protected void |
sendDataMessage(java.lang.String destinationAddress,
java.lang.String scAddress,
short destinationPort,
byte[] data,
android.app.PendingIntent sentIntent,
android.app.PendingIntent deliveryIntent) |
protected void |
sendMultipartTextMessage(java.lang.String destinationAddress,
java.lang.String scAddress,
java.util.ArrayList<java.lang.String> parts,
java.util.ArrayList<android.app.PendingIntent> sentIntents,
java.util.ArrayList<android.app.PendingIntent> deliveryIntents) |
protected void |
sendTextMessage(java.lang.String destinationAddress,
java.lang.String scAddress,
java.lang.String text,
android.app.PendingIntent sentIntent,
android.app.PendingIntent deliveryIntent) |
@Resetter public static void reset()
@Implementation protected void sendDataMessage(java.lang.String destinationAddress, java.lang.String scAddress, short destinationPort, byte[] data, android.app.PendingIntent sentIntent, android.app.PendingIntent deliveryIntent)
@Implementation protected void sendTextMessage(java.lang.String destinationAddress, java.lang.String scAddress, java.lang.String text, android.app.PendingIntent sentIntent, android.app.PendingIntent deliveryIntent)
@Implementation protected void sendMultipartTextMessage(java.lang.String destinationAddress, java.lang.String scAddress, java.util.ArrayList<java.lang.String> parts, java.util.ArrayList<android.app.PendingIntent> sentIntents, java.util.ArrayList<android.app.PendingIntent> deliveryIntents)
public ShadowSmsManager.DataMessageParams getLastSentDataMessageParams()
sendDataMessage
.public void clearLastSentDataMessageParams()
Clear last recorded parameters for sendDataMessage
.
public ShadowSmsManager.TextSmsParams getLastSentTextMessageParams()
sendTextMessage
.public void clearLastSentTextMessageParams()
Clear last recorded parameters for sendTextMessage
.
public ShadowSmsManager.TextMultipartParams getLastSentMultipartTextMessageParams()
sendMultipartTextMessage
.public void clearLastSentMultipartTextMessageParams()
Clear last recorded parameters for sendMultipartTextMessage
.