Example usage for Java android.content IntentFilter fields, constructors, methods, implement or subclass
The text is from its open source code.
int | SYSTEM_HIGH_PRIORITY The filter #setPriority value at which system high-priority receivers are placed; that is, receivers that should execute before application code. |
int | SYSTEM_LOW_PRIORITY The filter #setPriority value at which system low-priority receivers are placed; that is, receivers that should execute after application code. |
int | MATCH_CATEGORY_MASK The part of a match constant that describes the category of match that occurred. |
int | MATCH_CATEGORY_TYPE The filter matched an intent with the same data MIME type. |
String | SCHEME_HTTP HTTP scheme. |
String | SCHEME_HTTPS HTTPS scheme. |
IntentFilter(String action) New IntentFilter that matches a single action with no data. | |
IntentFilter(IntentFilter o) New IntentFilter containing a copy of an existing filter. | |
IntentFilter(Parcel source) | |
IntentFilter() New empty IntentFilter. |
Iterator | actionsIterator() Return an iterator over the filter's actions. |
void | addAction(String action) Add a new Intent action to match against. |
void | addCategory(String category) Add a new Intent category to match against. |
void | addDataAuthority(String host, String port) Add a new Intent data authority to match against. |
void | addDataPath(String path, int type) Add a new Intent data path to match against. |
void | addDataScheme(String scheme) Add a new Intent data scheme to match against. |
void | addDataSchemeSpecificPart(String ssp, int type) Add a new Intent data "scheme specific part" to match against. |
void | addDataType(String type) Add a new Intent data type to match against. |
Iterator | authoritiesIterator() Return an iterator over the filter's data authorities. |
Iterator | categoriesIterator() Return an iterator over the filter's categories. |
int | countActions() Return the number of actions in the filter. |
int | countCategories() Return the number of categories in the filter. |
int | countDataAuthorities() Return the number of data authorities in the filter. |
int | countDataPaths() Return the number of data paths in the filter. |
int | countDataSchemes() Return the number of data schemes in the filter. |
int | countDataTypes() Return the number of data types in the filter. |
IntentFilter | create(String action, String dataType) Create a new IntentFilter instance with a specified action and MIME type, where you know the MIME type is correctly formatted. |
String | getAction(int index) Return an action in the filter. |
String | getCategory(int index) Return a category in the filter. |
AuthorityEntry | getDataAuthority(int index) Return a data authority in the filter. |
PatternMatcher | getDataPath(int index) Return a data path in the filter. |
String | getDataScheme(int index) Return a data scheme in the filter. |
String | getDataType(int index) Return a data type in the filter. |
boolean | hasAction(String action) Is the given action included in the filter? |
boolean | hasCategory(String category) Is the given category included in the filter? |
boolean | matchAction(String action) Match this filter against an Intent's action. |
int | matchData(String type, String scheme, Uri data) Match this filter against an Intent's data (type, scheme and path). |
Iterator | pathsIterator() Return an iterator over the filter's data paths. |
Iterator | schemesIterator() Return an iterator over the filter's data schemes. |
void | setPriority(int priority) Modify priority of this filter. |
Iterator | typesIterator() Return an iterator over the filter's data types. |