Udostępnij za pośrednictwem


Intent.ExtraContentAnnotations Field

Definition

An ArrayList of String annotations describing content for #ACTION_CHOOSER.

[Android.Runtime.Register("EXTRA_CONTENT_ANNOTATIONS", ApiSince=26)]
public const string ExtraContentAnnotations;
[<Android.Runtime.Register("EXTRA_CONTENT_ANNOTATIONS", ApiSince=26)>]
val mutable ExtraContentAnnotations : string

Field Value

Implements

Attributes

Remarks

An ArrayList of String annotations describing content for #ACTION_CHOOSER.

If #EXTRA_CONTENT_ANNOTATIONS is present in an intent used to start a #ACTION_CHOOSER activity, the first three annotations will be used to rank apps.

Annotations should describe the major components or topics of the content. It is up to apps initiating #ACTION_CHOOSER to learn and add annotations. Annotations should be learned in advance, e.g., when creating or saving content, to avoid increasing latency to start #ACTION_CHOOSER. Names of customized annotations should not contain the colon character. Performance on customized annotations can suffer, if they are rarely used for #ACTION_CHOOSER in the past 14 days. Therefore, it is recommended to use the following annotations when applicable.

<ul> <li>"product" represents that the topic of the content is mainly about products, e.g., health & beauty, and office supplies.</li> <li>"emotion" represents that the topic of the content is mainly about emotions, e.g., happy, and sad.</li> <li>"person" represents that the topic of the content is mainly about persons, e.g., face, finger, standing, and walking.</li> <li>"child" represents that the topic of the content is mainly about children, e.g., child, and baby.</li> <li>"selfie" represents that the topic of the content is mainly about selfies.</li> <li>"crowd" represents that the topic of the content is mainly about crowds.</li> <li>"party" represents that the topic of the content is mainly about parties.</li> <li>"animal" represent that the topic of the content is mainly about animals.</li> <li>"plant" represents that the topic of the content is mainly about plants, e.g., flowers.</li> <li>"vacation" represents that the topic of the content is mainly about vacations.</li> <li>"fashion" represents that the topic of the content is mainly about fashion, e.g. sunglasses, jewelry, handbags and clothing.</li> <li>"material" represents that the topic of the content is mainly about materials, e.g., paper, and silk.</li> <li>"vehicle" represents that the topic of the content is mainly about vehicles, like cars, and boats.</li> <li>"document" represents that the topic of the content is mainly about documents, e.g. posters.</li> <li>"design" represents that the topic of the content is mainly about design, e.g. arts and designs of houses.</li> <li>"holiday" represents that the topic of the content is mainly about holidays, e.g., Christmas and Thanksgiving.</li> </ul>

Java documentation for android.content.Intent.EXTRA_CONTENT_ANNOTATIONS.

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