@Implements(value=android.telephony.SmsManager.class, minSdk=18) public class ShadowSmsManager extends 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(String destinationAddress,
String scAddress,
short destinationPort,
byte[] data,
PendingIntent sentIntent,
PendingIntent deliveryIntent) |
protected void |
sendMultipartTextMessage(String destinationAddress,
String scAddress,
ArrayList<String> parts,
ArrayList<PendingIntent> sentIntents,
ArrayList<PendingIntent> deliveryIntents) |
protected void |
sendTextMessage(String destinationAddress,
String scAddress,
String text,
PendingIntent sentIntent,
PendingIntent deliveryIntent) |
@Resetter public static void reset()
@Implementation protected void sendDataMessage(String destinationAddress, String scAddress, short destinationPort, byte[] data, PendingIntent sentIntent, PendingIntent deliveryIntent)
@Implementation protected void sendTextMessage(String destinationAddress, String scAddress, String text, PendingIntent sentIntent, PendingIntent deliveryIntent)
@Implementation protected void sendMultipartTextMessage(String destinationAddress, String scAddress, ArrayList<String> parts, ArrayList<PendingIntent> sentIntents, ArrayList<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
.