Udostępnij za pośrednictwem


ActivityManager.RecentTaskInfo.Id Property

Definition

If this task is currently running, this is the identifier for it.

[Android.Runtime.Register("id")]
public int Id { get; set; }
[<Android.Runtime.Register("id")>]
member this.Id : int with get, set

Property Value

Attributes

Remarks

If this task is currently running, this is the identifier for it. If it is not running, this will be -1.

This member is deprecated. As of android.os.Build.VERSION_CODES#Q, use RecentTaskInfo#taskId to get the task id and RecentTaskInfo#isRunning to determine if it is running.

Java documentation for android.app.ActivityManager.RecentTaskInfo.id.

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