Activity.TaskId Property

Definition

Return the identifier of the task this activity is in.

public virtual int TaskId { [Android.Runtime.Register("getTaskId", "()I", "GetGetTaskIdHandler")] get; }
[<get: Android.Runtime.Register("getTaskId", "()I", "GetGetTaskIdHandler")>]
member this.TaskId : int

Property Value

Task identifier, an opaque integer.

Attributes

Remarks

Return the identifier of the task this activity is in. This identifier will remain the same for the lifetime of the activity.

Java documentation for android.app.Activity.getTaskId().

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