{ "methods": { "finishAndRemoveTask()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "void", "exceptions": [], "name": "finishAndRemoveTask()", "documentation": "For tests, marks the task as finished. Task is not finished when created initially.\n\n@see #isFinishedAndRemoved()\n" }, "getTaskInfo()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "android.app.ActivityManager.RecentTaskInfo", "exceptions": [], "name": "getTaskInfo()", "documentation": "For tests, returns the {@link RecentTaskInfo} set using {@link #setTaskInfo(RecentTaskInfo)}.\nIf nothing is set, it returns null.\n\n@see #setTaskInfo(RecentTaskInfo)\n" }, "hasMovedToFront()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "boolean", "exceptions": [], "name": "hasMovedToFront()", "documentation": "Returns true if task has been moved to the front.\n\n@see #moveToFront()\n" }, "isExcludedFromRecents()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "boolean", "exceptions": [], "name": "isExcludedFromRecents()", "documentation": "Returns true if task has been excluded from recents.\n\n@see #setExcludeFromRecents(boolean)\n" }, "isFinishedAndRemoved()": { "isImplementation": false, "modifiers": [ "public" ], "params": [], "returnType": "boolean", "exceptions": [], "name": "isFinishedAndRemoved()", "documentation": "Returns true if {@link #finishAndRemoveTask()} has been called before. " }, "moveToFront()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "void", "exceptions": [], "name": "moveToFront()", "documentation": "For tests, marks the task as moved to the front. Task is created and marked as not moved to the\nfront.\n\n@see #hasMovedToFront()\n" }, "newInstance()": { "isImplementation": false, "modifiers": [ "public", "static" ], "params": [], "returnType": "android.app.ActivityManager.AppTask", "exceptions": [], "name": "newInstance()" }, "setExcludeFromRecents(boolean)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "exclude" ], "returnType": "void", "exceptions": [], "name": "setExcludeFromRecents(boolean)", "documentation": "For tests, marks the task as excluded from recents. Current, status can be checked using {@link\n#isExcludedFromRecents()}.\n\n@param exclude Whether to exclude from recents.\n" }, "setTaskInfo(android.app.ActivityManager.RecentTaskInfo)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "recentTaskInfo" ], "returnType": "void", "exceptions": [], "name": "setTaskInfo(android.app.ActivityManager.RecentTaskInfo)", "documentation": "Sets the recentTaskInfo for the task. {@link #getTaskInfo()} returns the task info set using\nthis method.\n" }, "startActivity(android.content.Context,android.content.Intent,android.os.Bundle)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "context", "intent", "options" ], "returnType": "void", "exceptions": [], "name": "startActivity(android.content.Context,android.content.Intent,android.os.Bundle)", "documentation": "Starts the activity using given context. Started activity can be checked using {@link\nShadowContextWrapper#getNextStartedActivity()}\n\n@param context Context with which the activity will be start.\n@param intent Intent of the activity to be started.\n@param options Extras passed to the activity.\n" } }, "imports": [ "android.os.Build.VERSION_CODES.LOLLIPOP", "android.app.ActivityManager.AppTask", "android.app.ActivityManager.RecentTaskInfo", "android.app.IAppTask", "android.content.Context", "android.content.Intent", "android.os.Bundle", "org.robolectric.annotation.Implementation", "org.robolectric.annotation.Implements", "org.robolectric.util.ReflectionHelpers" ], "name": "org.robolectric.shadows.ShadowAppTask" }