{ "methods": { "getLastForegroundNotification()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "android.app.Notification", "exceptions": [], "name": "getLastForegroundNotification()" }, "getLastForegroundNotificationId()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "int", "exceptions": [], "name": "getLastForegroundNotificationId()" }, "getNotificationShouldRemoved()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "boolean", "exceptions": [], "name": "getNotificationShouldRemoved()" }, "getStopSelfId()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "int", "exceptions": [], "name": "getStopSelfId()", "documentation": "Returns id passed to {@link #stopSelf(int)} method. Make sure to check result of {@link\n#isStoppedBySelf()} first.\n" }, "getStopSelfResultId()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "int", "exceptions": [], "name": "getStopSelfResultId()", "documentation": "Returns id passed to {@link #stopSelfResult(int)} method. Make sure to check result of {@link\n#isStoppedBySelf()} first.\n" }, "isForegroundStopped()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "boolean", "exceptions": [], "name": "isForegroundStopped()" }, "isStoppedBySelf()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "boolean", "exceptions": [], "name": "isStoppedBySelf()", "documentation": "@return Is this service stopped by self.\n" }, "onDestroy()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "void", "exceptions": [], "name": "onDestroy()" }, "removeForegroundNotification()": { "isImplementation": false, "modifiers": [ "private" ], "params": [], "returnType": "void", "exceptions": [], "name": "removeForegroundNotification()" }, "startForeground(int,android.app.Notification)": { "isImplementation": true, "modifiers": [ "protected", "final" ], "params": [ "id", "notification" ], "returnType": "void", "exceptions": [], "name": "startForeground(int,android.app.Notification)" }, "stopForeground(boolean)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "removeNotification" ], "returnType": "void", "exceptions": [], "name": "stopForeground(boolean)" }, "stopSelf()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "void", "exceptions": [], "name": "stopSelf()" }, "stopSelf(int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "id" ], "returnType": "void", "exceptions": [], "name": "stopSelf(int)" }, "stopSelfResult(int)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "id" ], "returnType": "boolean", "exceptions": [], "name": "stopSelfResult(int)" } }, "imports": [ "android.app.Notification", "android.app.NotificationManager", "android.app.Service", "android.content.Context", "org.robolectric.RuntimeEnvironment", "org.robolectric.annotation.Implementation", "org.robolectric.annotation.Implements", "org.robolectric.annotation.RealObject" ], "name": "org.robolectric.shadows.ShadowService" }