AI2 Component
(Version nb184)
|
Public Member Functions | |
String | scheme () default "" |
String | host () default "" |
String | port () default "" |
String | path () default "" |
String | pathPrefix () default "" |
String | pathPattern () default "" |
String | mimeType () default "" |
Adds a data specification to an <intent-filter> as a <data> subelement. The specification can be just a data type mimeType(), just a URI, or both a data type and a URI. A URI is specified by separate attributes for each of its parts:
scheme()://host():port()[path()|pathPrefix()|pathPattern()]
When neither the MIME data type nor the data URI is specified, the <data> element is ignored and not added to the manifest.
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/data-element.html">https://developer.android.com/guide/topics/manifest/data-element.html</a>.@authorwill2596@gmail.com(WilliamByrne)
Definition at line 38 of file DataElement.java.
String com.google.appinventor.components.annotations.androidmanifest.DataElement.host | ( | ) |
The host part of a URI authority. This attribute is meaningless unless a scheme attribute is also specified for the filter. If a host is not specified for the filter, the port attribute and all the path attributes are ignored.
Note: Host matching is case sensitive in Android.
String com.google.appinventor.components.annotations.androidmanifest.DataElement.mimeType | ( | ) |
A MIME media type, such as image/jpeg or audio/mpeg4-generic. The subtype can be the asterisk wildcard (*) to indicate that any subtype matches.
Note: MIME type matching is case sensitive in Android.
String com.google.appinventor.components.annotations.androidmanifest.DataElement.path | ( | ) |
The path attribute specifies a complete path that is matched against the complete path in an Intent object.
String com.google.appinventor.components.annotations.androidmanifest.DataElement.pathPattern | ( | ) |
The pathPattern attribute specifies a complete path that is matched against the complete path in the Intent object, but it can contain the following wildcards:
-> An asterisk ('*') matches a sequence of 0 to many occurrences of the immediately preceding character.
-> A period followed by an asterisk (".*") matches any sequence of 0 to many characters.
String com.google.appinventor.components.annotations.androidmanifest.DataElement.pathPrefix | ( | ) |
The pathPrefix attribute specifies a partial path that is matched against only the initial part of the path in the Intent object.
String com.google.appinventor.components.annotations.androidmanifest.DataElement.port | ( | ) |
The port part of a URI authority. This attribute is meaningful only if the scheme and host attributes are also specified for the filter.
String com.google.appinventor.components.annotations.androidmanifest.DataElement.scheme | ( | ) |
The scheme part of a URI. This is the minimal essential attribute for specifying a URI. If this is not specified, all other URI attributes are ignored.
Note: Scheme matching is case sensitive in Android.