Package org.robolectric.shadows
Class ShadowBroadcastReceiver
- java.lang.Object
-
- org.robolectric.shadows.ShadowBroadcastReceiver
-
@Implements(android.content.BroadcastReceiver.class) public class ShadowBroadcastReceiver extends Object
-
-
Constructor Summary
Constructors Constructor Description ShadowBroadcastReceiver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
abortBroadcast()
BroadcastReceiver.PendingResult
getOriginalPendingResult()
protected BroadcastReceiver.PendingResult
goAsync()
protected void
onReceive(Context context, Intent intent)
void
onReceive(Context context, Intent intent, AtomicBoolean abort)
boolean
wentAsync()
-
-
-
Method Detail
-
abortBroadcast
@Implementation protected void abortBroadcast()
-
onReceive
@Implementation protected void onReceive(Context context, Intent intent)
-
onReceive
public void onReceive(Context context, Intent intent, AtomicBoolean abort)
-
goAsync
@Implementation protected BroadcastReceiver.PendingResult goAsync()
-
wentAsync
public boolean wentAsync()
-
getOriginalPendingResult
public BroadcastReceiver.PendingResult getOriginalPendingResult()
-
-