AI2 Component  (Version nb184)
com.google.appinventor.components.annotations.androidmanifest.IntentFilterElement Interface Reference

Public Member Functions

ActionElement[] actionElements ()
 
CategoryElement[] categoryElements () default
 
DataElement[] dataElements () default
 
String icon () default ""
 
String label () default ""
 
String priority () default ""
 

Detailed Description

Annotation to describe an <intent-filter> element required by an <activity> or a <receiver> element so that it can be added to AndroidManifest.xml. <intent-filter> element attributes that are not set explicitly default to "" or {} and are ignored when the element is created in the manifest. In order for an <intent-filter> element to work properly, it must include at least one <action> element in the actionElements() attribute.

See ActionElement for more information.

Note: Some of this documentation is adapted from the Android framework specification linked below. That documentation is licensed under the ahref="https://creativecommons.org/licenses/by/2.5/">CreativeCommonsAttributionlicensev2.5</a>.See@link<ahref="https://developer.android.com/guide/topics/manifest/intent-filter-element.html">https://developer.android.com/guide/topics/manifest/intent-filter-element.html</a>.@authorwill2596@gmail.com(WilliamByrne)

Definition at line 30 of file IntentFilterElement.java.

Member Function Documentation

◆ actionElements()

ActionElement [] com.google.appinventor.components.annotations.androidmanifest.IntentFilterElement.actionElements ( )

The array of actions accepted by this <intent-filter>. By construction, <intent-filter> elements must have at least one <action> subelement. Thus, this attribute of @IntentFilterElement is required and has no default.

Returns
the array of actions accepted by this <intent-filter>

◆ categoryElements()

CategoryElement [] com.google.appinventor.components.annotations.androidmanifest.IntentFilterElement.categoryElements ( )

The array of categories accepted by this <intent-filter>. According to the AndroidMainfest.xml specification, these subelements are optional.

Returns
the array of categories accepted by this <intent-filter>

Definition at line 47 of file IntentFilterElement.java.

◆ dataElements()

DataElement [] com.google.appinventor.components.annotations.androidmanifest.IntentFilterElement.dataElements ( )

The array of data specifications accepted by this <intent-filter>. According to the AndroidMainfest.xml specification, these subelements are optional.

Returns
the array of data URIs accepted by this <intent-filter>

Definition at line 55 of file IntentFilterElement.java.

◆ icon()

String com.google.appinventor.components.annotations.androidmanifest.IntentFilterElement.icon ( )

A reference to a drawable resource representing the parent activity or broadcast receiver when that component is presented to the user as having the capability described by the filter.

Returns
a reference to the drawable resource for the filter's parent

◆ label()

String com.google.appinventor.components.annotations.androidmanifest.IntentFilterElement.label ( )

A user-readable label for the parent component specified as a reference to a string resource. If this attribute is left unspecified, the label will default to the label set by the parent component

Returns
a reference to the string resource to be used as a label

◆ priority()

String com.google.appinventor.components.annotations.androidmanifest.IntentFilterElement.priority ( )

The priority that should be given to the parent activity or broadcast receiver with regard to handling intents of the type described by the filter. This must be specified as an integer in the interval (-1000, 1000). If the priority is not set, it will default to 0.

Returns
the priority of the parent activity or broadcast receiver w.r.t. handling intents described by this filter

The documentation for this interface was generated from the following file: