ActivityManager.GetRunningTasks(Int32) Method

Definition

Caution

deprecated

Return a list of the tasks that are currently running, with the most recent being first and older ones after in order.

[Android.Runtime.Register("getRunningTasks", "(I)Ljava/util/List;", "GetGetRunningTasks_IHandler")]
[System.Obsolete("deprecated")]
public virtual System.Collections.Generic.IList<Android.App.ActivityManager.RunningTaskInfo>? GetRunningTasks (int maxNum);
[<Android.Runtime.Register("getRunningTasks", "(I)Ljava/util/List;", "GetGetRunningTasks_IHandler")>]
[<System.Obsolete("deprecated")>]
abstract member GetRunningTasks : int -> System.Collections.Generic.IList<Android.App.ActivityManager.RunningTaskInfo>
override this.GetRunningTasks : int -> System.Collections.Generic.IList<Android.App.ActivityManager.RunningTaskInfo>

Parameters

maxNum
Int32

The maximum number of entries to return in the list. The actual number returned may be smaller, depending on how many tasks the user has started.

Returns

IList<RunningTaskInfo>

Returns a list of RunningTaskInfo records describing each of the running tasks.

Attributes

Exceptions

Remarks

Java documentation for android.app.ActivityManager.getRunningTasks(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to