@Implements(value=android.app.Service.class) public class ShadowService extends ShadowContextWrapper
Constructor and Description |
---|
ShadowService() |
Modifier and Type | Method and Description |
---|---|
android.app.Notification |
getLastForegroundNotification() |
int |
getLastForegroundNotificationId() |
boolean |
getNotificationShouldRemoved() |
boolean |
isForegroundStopped() |
boolean |
isStoppedBySelf() |
protected void |
onDestroy() |
protected void |
startForeground(int id,
android.app.Notification notification) |
protected void |
stopForeground(boolean removeNotification) |
protected void |
stopSelf() |
protected void |
stopSelf(int id) |
protected boolean |
stopSelfResult(int id) |
clearNextStartedActivities, clearStartedServices, denyPermissions, getBroadcastIntents, getNextStartedActivity, getNextStartedService, getNextStoppedService, grantPermissions, peekNextStartedActivity, peekNextStartedService, removeSystemService
@Implementation protected void onDestroy()
@Implementation protected void stopSelf()
@Implementation protected void stopSelf(int id)
@Implementation protected boolean stopSelfResult(int id)
@Implementation protected final void startForeground(int id, android.app.Notification notification)
@Implementation protected void stopForeground(boolean removeNotification)
public int getLastForegroundNotificationId()
public android.app.Notification getLastForegroundNotification()
public boolean isStoppedBySelf()
public boolean isForegroundStopped()
public boolean getNotificationShouldRemoved()