Share via


ComponentInfo.AttributionTags 属性

定义

应自动应用于此组件的归因标记集。

[Android.Runtime.Register("attributionTags", ApiSince=31)]
public System.Collections.Generic.IList<string>? AttributionTags { get; set; }
[<Android.Runtime.Register("attributionTags", ApiSince=31)>]
member this.AttributionTags : System.Collections.Generic.IList<string> with get, set

属性值

属性

注解

应自动应用于此组件的归因标记集。

当此组件表示 、 或 BroadcastReceiver时, ContentResolverService将使用此处包含的第一个Activity属性标记自动配置Context#createAttributionContext每个实例。

此外,当此组件表示 并且 BroadcastReceiver 广播的发送方要求接收方持有一个或多个特定权限时,将使用此处包含的每个属性标记执行这些权限检查。

android.content.pm.ComponentInfo.attributionTagsJava 文档。

此页面的部分内容是基于 创建和共享的工作进行的修改,并根据 署名许可中所述的术语使用。

适用于