@Implements(value=android.content.ContextWrapper.class) public class ShadowContextWrapper extends Object
ContextWrapper.| Constructor and Description |
|---|
ShadowContextWrapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearStartedServices()
Non-android accessor that delefates to the application to clear the stack of started
service intents.
|
void |
denyPermissions(String... permissionNames) |
List<android.content.Intent> |
getBroadcastIntents() |
android.content.Intent |
getNextStartedActivity()
Non-Android accessor that delegates to the application to consume and return the next
Intent on the
started activities stack. |
android.content.Intent |
getNextStartedService()
Non-Android accessor that delegates to the application to consume and return the next
Intent on the
started services stack. |
android.content.Intent |
getNextStoppedService()
Non-Android accessor that delegates to the application to return the next
Intent to stop
a service (irrespective of if the service was running) |
void |
grantPermissions(String... permissionNames) |
android.content.Intent |
peekNextStartedActivity()
Non-Android accessor that delegates to the application to return (without consuming) the next
Intent on
the started activities stack. |
android.content.Intent |
peekNextStartedService()
Return (without consuming) the next
Intent on the started services stack. |
public List<android.content.Intent> getBroadcastIntents()
public android.content.Intent getNextStartedActivity()
Intent on the
started activities stack.Intent for an activitypublic android.content.Intent peekNextStartedActivity()
Intent on
the started activities stack.Intent for an activitypublic android.content.Intent getNextStartedService()
Intent on the
started services stack.Intent for a servicepublic void clearStartedServices()
public android.content.Intent peekNextStartedService()
Intent on the started services stack.Intent for a servicepublic android.content.Intent getNextStoppedService()
Intent to stop
a service (irrespective of if the service was running)Intent for the next service requested to be stoppedpublic void grantPermissions(String... permissionNames)
public void denyPermissions(String... permissionNames)
Copyright © 2016. All rights reserved.