@Implements(value=android.telephony.SmsManager.class, minSdk=18) public class ShadowSmsManager extends Object
Modifier and Type | Field | Description |
---|---|---|
protected ShadowSmsManager.DataMessageParams |
lastDataParams |
|
protected ShadowSmsManager.TextMultipartParams |
lastTextMultipartParams |
|
protected ShadowSmsManager.TextSmsParams |
lastTextSmsParams |
Constructor | Description |
---|---|
ShadowSmsManager() |
protected ShadowSmsManager.TextSmsParams lastTextSmsParams
protected ShadowSmsManager.TextMultipartParams lastTextMultipartParams
protected ShadowSmsManager.DataMessageParams lastDataParams
@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(java.lang.String, java.lang.String, short, byte[], android.app.PendingIntent, android.app.PendingIntent)
.public void clearLastSentDataMessageParams()
sendDataMessage(java.lang.String, java.lang.String, short, byte[], android.app.PendingIntent, android.app.PendingIntent)
.public ShadowSmsManager.TextSmsParams getLastSentTextMessageParams()
sendTextMessage(java.lang.String, java.lang.String, java.lang.String, android.app.PendingIntent, android.app.PendingIntent)
.public void clearLastSentTextMessageParams()
sendTextMessage(java.lang.String, java.lang.String, java.lang.String, android.app.PendingIntent, android.app.PendingIntent)
.public ShadowSmsManager.TextMultipartParams getLastSentMultipartTextMessageParams()
public void clearLastSentMultipartTextMessageParams()
@Implementation(minSdk=21) protected void sendMultimediaMessage(Context context, Uri contentUri, @Nullable String locationUrl, @Nullable Bundle configOverrides, @Nullable PendingIntent sentIntent)
@Implementation(minSdk=21) protected void downloadMultimediaMessage(Context context, String locationUrl, Uri contentUri, @Nullable Bundle configOverrides, @Nullable PendingIntent sentIntent)
public ShadowSmsManager.SendMultimediaMessageParams getLastSentMultimediaMessageParams()
sendMultimediaMessage(android.content.Context, android.net.Uri, java.lang.String, android.os.Bundle, android.app.PendingIntent)
.public void clearLastSentMultimediaMessageParams()
sendMultimediaMessage(android.content.Context, android.net.Uri, java.lang.String, android.os.Bundle, android.app.PendingIntent)
.public ShadowSmsManager.DownloadMultimediaMessageParams getLastDownloadedMultimediaMessageParams()
downloadMultimediaMessage(android.content.Context, java.lang.String, android.net.Uri, android.os.Bundle, android.app.PendingIntent)
.public void clearLastDownloadedMultimediaMessageParams()
downloadMultimediaMessage(android.content.Context, java.lang.String, android.net.Uri, android.os.Bundle, android.app.PendingIntent)
.