Package org.robolectric.shadows
Class ShadowTelephony.ShadowSms
- java.lang.Object
-
- org.robolectric.shadows.ShadowTelephony.ShadowSms
-
- Enclosing class:
- ShadowTelephony
@Implements(value=android.provider.Telephony.Sms.class, minSdk=19) public static class ShadowTelephony.ShadowSms extends Object
-
-
Constructor Summary
Constructors Constructor Description ShadowSms()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static String
getDefaultSmsPackage(Context context)
static void
reset()
static void
setDefaultSmsPackage(String defaultSmsPackage)
Override the package name returned from callingTelephony.Sms.getDefaultSmsPackage(Context)
.
-
-
-
Method Detail
-
getDefaultSmsPackage
@Implementation protected static String getDefaultSmsPackage(Context context)
-
setDefaultSmsPackage
public static void setDefaultSmsPackage(String defaultSmsPackage)
Override the package name returned from callingTelephony.Sms.getDefaultSmsPackage(Context)
.This will be reset for the next test.
-
reset
@Resetter public static void reset()
-
-