@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() |
void |
onDestroy() |
void |
startForeground(int id,
android.app.Notification notification) |
void |
stopForeground(boolean removeNotification) |
void |
stopSelf() |
void |
stopSelf(int id) |
clearStartedServices, denyPermissions, getBroadcastIntents, getNextStartedActivity, getNextStartedService, getNextStoppedService, grantPermissions, peekNextStartedActivity, peekNextStartedService@Implementation public void onDestroy()
@Implementation public void stopSelf()
@Implementation public void stopSelf(int id)
@Implementation
public final void startForeground(int id,
android.app.Notification notification)
@Implementation public void stopForeground(boolean removeNotification)
public int getLastForegroundNotificationId()
public android.app.Notification getLastForegroundNotification()
public boolean isStoppedBySelf()
public boolean isForegroundStopped()
public boolean getNotificationShouldRemoved()