Condividi tramite


ActivityInfo.TaskAffinity Property

Definition

The affinity this activity has for another task in the system.

[Android.Runtime.Register("taskAffinity")]
public string? TaskAffinity { get; set; }
[<Android.Runtime.Register("taskAffinity")>]
member this.TaskAffinity : string with get, set

Property Value

Attributes

Remarks

The affinity this activity has for another task in the system. The string here is the name of the task, often the package name of the overall package. If null, the activity has no affinity. Set from the android.R.attr#taskAffinity attribute.

Java documentation for android.content.pm.ActivityInfo.taskAffinity.

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