Java android.content IntentFilter fields, constructors, methods, implement or subclass

Example usage for Java android.content IntentFilter fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.content IntentFilter.

The text is from its open source code.

Field

intSYSTEM_HIGH_PRIORITY
The filter #setPriority value at which system high-priority receivers are placed; that is, receivers that should execute before application code.
intSYSTEM_LOW_PRIORITY
The filter #setPriority value at which system low-priority receivers are placed; that is, receivers that should execute after application code.
intMATCH_CATEGORY_MASK
The part of a match constant that describes the category of match that occurred.
intMATCH_CATEGORY_TYPE
The filter matched an intent with the same data MIME type.
StringSCHEME_HTTP
HTTP scheme.
StringSCHEME_HTTPS
HTTPS scheme.

Constructor

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.

Method

IteratoractionsIterator()
Return an iterator over the filter's actions.
voidaddAction(String action)
Add a new Intent action to match against.
voidaddCategory(String category)
Add a new Intent category to match against.
voidaddDataAuthority(String host, String port)
Add a new Intent data authority to match against.
voidaddDataPath(String path, int type)
Add a new Intent data path to match against.
voidaddDataScheme(String scheme)
Add a new Intent data scheme to match against.
voidaddDataSchemeSpecificPart(String ssp, int type)
Add a new Intent data "scheme specific part" to match against.
voidaddDataType(String type)
Add a new Intent data type to match against.
IteratorauthoritiesIterator()
Return an iterator over the filter's data authorities.
IteratorcategoriesIterator()
Return an iterator over the filter's categories.
intcountActions()
Return the number of actions in the filter.
intcountCategories()
Return the number of categories in the filter.
intcountDataAuthorities()
Return the number of data authorities in the filter.
intcountDataPaths()
Return the number of data paths in the filter.
intcountDataSchemes()
Return the number of data schemes in the filter.
intcountDataTypes()
Return the number of data types in the filter.
IntentFiltercreate(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.
StringgetAction(int index)
Return an action in the filter.
StringgetCategory(int index)
Return a category in the filter.
AuthorityEntrygetDataAuthority(int index)
Return a data authority in the filter.
PatternMatchergetDataPath(int index)
Return a data path in the filter.
StringgetDataScheme(int index)
Return a data scheme in the filter.
StringgetDataType(int index)
Return a data type in the filter.
booleanhasAction(String action)
Is the given action included in the filter?
booleanhasCategory(String category)
Is the given category included in the filter?
booleanmatchAction(String action)
Match this filter against an Intent's action.
intmatchData(String type, String scheme, Uri data)
Match this filter against an Intent's data (type, scheme and path).
IteratorpathsIterator()
Return an iterator over the filter's data paths.
IteratorschemesIterator()
Return an iterator over the filter's data schemes.
voidsetPriority(int priority)
Modify priority of this filter.
IteratortypesIterator()
Return an iterator over the filter's data types.