AI2 Component
(Version nb184)
|
Public Member Functions | |
String | name () |
Annotation to describe a <category> element, which is an optional subelement of an <intent-filter>. A <category> element is a string containing additional information about the kind of component that should handle the intent. Any number of category descriptions can be placed in an intent, but most intents do not require a category.
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/category-element.html">https://developer.android.com/guide/topics/manifest/category-element.html</a>.@authorwill2596@gmail.com(WilliamByrne)
Definition at line 34 of file CategoryElement.java.
String com.google.appinventor.components.annotations.androidmanifest.CategoryElement.name | ( | ) |
The name of the category. Standard categories are defined in the android.content.Intent class as CATEGORY_name constants. The name assigned here can be derived from those constants by prefixing "android.intent.category." to the name that follows CATEGORY_. For example, the string value for android.content.Intent#CATEGORY_LAUNCHER is "android.intent.category.LAUNCHER".
Note: In order to receive implicit intents, you must include the CATEGORY_DEFAULT category in the intent filter.
Custom categories should use the package name as a prefix, to ensure that they are unique.
The name attribute is required in any @CategoryElement annotation and hence has no default value.