Package org.robolectric.shadows
Class ShadowSmsManager
- java.lang.Object
-
- org.robolectric.shadows.ShadowSmsManager
-
@Implements(value=android.telephony.SmsManager.class, minSdk=18) public class ShadowSmsManager extends java.lang.Object
-
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description protected ShadowSmsManager.DataMessageParamslastDataParamsprotected ShadowSmsManager.TextMultipartParamslastTextMultipartParamsprotected ShadowSmsManager.TextSmsParamslastTextSmsParams
-
Constructor Summary
Constructors Constructor Description ShadowSmsManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearLastDownloadedMultimediaMessageParams()Clear last recorded parameters fordownloadMultimediaMessage(android.content.Context, java.lang.String, android.net.Uri, android.os.Bundle, android.app.PendingIntent).voidclearLastSentDataMessageParams()Clear last recorded parameters forsendDataMessage(java.lang.String, java.lang.String, short, byte[], android.app.PendingIntent, android.app.PendingIntent).voidclearLastSentMultimediaMessageParams()Clear last recorded parameters forsendMultimediaMessage(android.content.Context, android.net.Uri, java.lang.String, android.os.Bundle, android.app.PendingIntent).voidclearLastSentMultipartTextMessageParams()voidclearLastSentTextMessageParams()Clear last recorded parameters forsendTextMessage(java.lang.String, java.lang.String, java.lang.String, android.app.PendingIntent, android.app.PendingIntent).protected voiddownloadMultimediaMessage(android.content.Context context, java.lang.String locationUrl, android.net.Uri contentUri, android.os.Bundle configOverrides, android.app.PendingIntent sentIntent)ShadowSmsManager.DownloadMultimediaMessageParamsgetLastDownloadedMultimediaMessageParams()ShadowSmsManager.DataMessageParamsgetLastSentDataMessageParams()ShadowSmsManager.SendMultimediaMessageParamsgetLastSentMultimediaMessageParams()ShadowSmsManager.TextMultipartParamsgetLastSentMultipartTextMessageParams()ShadowSmsManager.TextSmsParamsgetLastSentTextMessageParams()static voidreset()protected voidsendDataMessage(java.lang.String destinationAddress, java.lang.String scAddress, short destinationPort, byte[] data, android.app.PendingIntent sentIntent, android.app.PendingIntent deliveryIntent)protected voidsendMultimediaMessage(android.content.Context context, android.net.Uri contentUri, java.lang.String locationUrl, android.os.Bundle configOverrides, android.app.PendingIntent sentIntent)protected voidsendMultipartTextMessage(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 voidsendTextMessage(java.lang.String destinationAddress, java.lang.String scAddress, java.lang.String text, android.app.PendingIntent sentIntent, android.app.PendingIntent deliveryIntent)
-
-
-
Field Detail
-
lastTextSmsParams
protected ShadowSmsManager.TextSmsParams lastTextSmsParams
-
lastTextMultipartParams
protected ShadowSmsManager.TextMultipartParams lastTextMultipartParams
-
lastDataParams
protected ShadowSmsManager.DataMessageParams lastDataParams
-
-
Method Detail
-
reset
@Resetter public static void reset()
-
sendDataMessage
@Implementation protected void sendDataMessage(java.lang.String destinationAddress, java.lang.String scAddress, short destinationPort, byte[] data, android.app.PendingIntent sentIntent, android.app.PendingIntent deliveryIntent)
-
sendTextMessage
@Implementation protected void sendTextMessage(java.lang.String destinationAddress, java.lang.String scAddress, java.lang.String text, android.app.PendingIntent sentIntent, android.app.PendingIntent deliveryIntent)
-
sendMultipartTextMessage
@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)
-
getLastSentDataMessageParams
public ShadowSmsManager.DataMessageParams getLastSentDataMessageParams()
- Returns:
- Parameters for last call to
sendDataMessage(java.lang.String, java.lang.String, short, byte[], android.app.PendingIntent, android.app.PendingIntent).
-
clearLastSentDataMessageParams
public void clearLastSentDataMessageParams()
Clear last recorded parameters forsendDataMessage(java.lang.String, java.lang.String, short, byte[], android.app.PendingIntent, android.app.PendingIntent).
-
getLastSentTextMessageParams
public ShadowSmsManager.TextSmsParams getLastSentTextMessageParams()
- Returns:
- Parameters for last call to
sendTextMessage(java.lang.String, java.lang.String, java.lang.String, android.app.PendingIntent, android.app.PendingIntent).
-
clearLastSentTextMessageParams
public void clearLastSentTextMessageParams()
Clear last recorded parameters forsendTextMessage(java.lang.String, java.lang.String, java.lang.String, android.app.PendingIntent, android.app.PendingIntent).
-
getLastSentMultipartTextMessageParams
public ShadowSmsManager.TextMultipartParams getLastSentMultipartTextMessageParams()
-
clearLastSentMultipartTextMessageParams
public void clearLastSentMultipartTextMessageParams()
-
sendMultimediaMessage
@Implementation(minSdk=21) protected void sendMultimediaMessage(android.content.Context context, android.net.Uri contentUri, @Nullable java.lang.String locationUrl, @Nullable android.os.Bundle configOverrides, @Nullable android.app.PendingIntent sentIntent)
-
downloadMultimediaMessage
@Implementation(minSdk=21) protected void downloadMultimediaMessage(android.content.Context context, java.lang.String locationUrl, android.net.Uri contentUri, @Nullable android.os.Bundle configOverrides, @Nullable android.app.PendingIntent sentIntent)
-
getLastSentMultimediaMessageParams
public ShadowSmsManager.SendMultimediaMessageParams getLastSentMultimediaMessageParams()
- Returns:
- Parameters for last call to
sendMultimediaMessage(android.content.Context, android.net.Uri, java.lang.String, android.os.Bundle, android.app.PendingIntent).
-
clearLastSentMultimediaMessageParams
public void clearLastSentMultimediaMessageParams()
Clear last recorded parameters forsendMultimediaMessage(android.content.Context, android.net.Uri, java.lang.String, android.os.Bundle, android.app.PendingIntent).
-
getLastDownloadedMultimediaMessageParams
public ShadowSmsManager.DownloadMultimediaMessageParams getLastDownloadedMultimediaMessageParams()
- Returns:
- Parameters for last call to
downloadMultimediaMessage(android.content.Context, java.lang.String, android.net.Uri, android.os.Bundle, android.app.PendingIntent).
-
clearLastDownloadedMultimediaMessageParams
public void clearLastDownloadedMultimediaMessageParams()
Clear last recorded parameters fordownloadMultimediaMessage(android.content.Context, java.lang.String, android.net.Uri, android.os.Bundle, android.app.PendingIntent).
-
-