android.content
Class IntentFilter
java.lang.Object
android.content.IntentFilter
- All Implemented Interfaces:
- Parcelable
public class IntentFilter
- extends Object
- implements Parcelable
Method Summary |
Iterator<String> |
actionsIterator()
|
void |
addAction(String action)
|
void |
addCategory(String category)
|
void |
addDataAuthority(String host,
String port)
|
void |
addDataPath(String path,
int type)
|
void |
addDataScheme(String scheme)
|
void |
addDataType(String type)
|
Iterator<IntentFilter.AuthorityEntry> |
authoritiesIterator()
|
Iterator<String> |
categoriesIterator()
|
int |
countActions()
|
int |
countCategories()
|
int |
countDataAuthorities()
|
int |
countDataPaths()
|
int |
countDataSchemes()
|
int |
countDataTypes()
|
static IntentFilter |
create(String action,
String dataType)
|
int |
describeContents()
|
void |
dump(Printer du,
String prefix)
|
String |
getAction(int index)
|
String |
getCategory(int index)
|
IntentFilter.AuthorityEntry |
getDataAuthority(int index)
|
PatternMatcher |
getDataPath(int index)
|
String |
getDataScheme(int index)
|
String |
getDataType(int index)
|
int |
getPriority()
|
boolean |
hasAction(String action)
|
boolean |
hasCategory(String category)
|
boolean |
hasDataAuthority(Uri data)
|
boolean |
hasDataPath(String data)
|
boolean |
hasDataScheme(String scheme)
|
boolean |
hasDataType(String type)
|
int |
match(ContentResolver resolver,
Intent intent,
boolean resolve,
String logTag)
|
int |
match(String action,
String type,
String scheme,
Uri data,
Set<String> categories,
String logTag)
|
boolean |
matchAction(String action)
|
String |
matchCategories(Set<String> categories)
|
int |
matchData(String type,
String scheme,
Uri data)
|
int |
matchDataAuthority(Uri data)
|
Iterator<PatternMatcher> |
pathsIterator()
|
void |
readFromXml(org.xmlpull.v1.XmlPullParser parser)
|
Iterator<String> |
schemesIterator()
|
void |
setPriority(int priority)
|
Iterator<String> |
typesIterator()
|
void |
writeToParcel(Parcel dest,
int flags)
|
void |
writeToXml(org.xmlpull.v1.XmlSerializer serializer)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SYSTEM_HIGH_PRIORITY
public static final int SYSTEM_HIGH_PRIORITY
- See Also:
- Constant Field Values
SYSTEM_LOW_PRIORITY
public static final int SYSTEM_LOW_PRIORITY
- See Also:
- Constant Field Values
MATCH_CATEGORY_MASK
public static final int MATCH_CATEGORY_MASK
- See Also:
- Constant Field Values
MATCH_ADJUSTMENT_MASK
public static final int MATCH_ADJUSTMENT_MASK
- See Also:
- Constant Field Values
MATCH_ADJUSTMENT_NORMAL
public static final int MATCH_ADJUSTMENT_NORMAL
- See Also:
- Constant Field Values
MATCH_CATEGORY_EMPTY
public static final int MATCH_CATEGORY_EMPTY
- See Also:
- Constant Field Values
MATCH_CATEGORY_SCHEME
public static final int MATCH_CATEGORY_SCHEME
- See Also:
- Constant Field Values
MATCH_CATEGORY_HOST
public static final int MATCH_CATEGORY_HOST
- See Also:
- Constant Field Values
MATCH_CATEGORY_PORT
public static final int MATCH_CATEGORY_PORT
- See Also:
- Constant Field Values
MATCH_CATEGORY_PATH
public static final int MATCH_CATEGORY_PATH
- See Also:
- Constant Field Values
MATCH_CATEGORY_TYPE
public static final int MATCH_CATEGORY_TYPE
- See Also:
- Constant Field Values
NO_MATCH_TYPE
public static final int NO_MATCH_TYPE
- See Also:
- Constant Field Values
NO_MATCH_DATA
public static final int NO_MATCH_DATA
- See Also:
- Constant Field Values
NO_MATCH_ACTION
public static final int NO_MATCH_ACTION
- See Also:
- Constant Field Values
NO_MATCH_CATEGORY
public static final int NO_MATCH_CATEGORY
- See Also:
- Constant Field Values
CREATOR
public static final Parcelable.Creator<IntentFilter> CREATOR
IntentFilter
public IntentFilter()
IntentFilter
public IntentFilter(String action)
IntentFilter
public IntentFilter(String action,
String dataType)
throws IntentFilter.MalformedMimeTypeException
- Throws:
IntentFilter.MalformedMimeTypeException
IntentFilter
public IntentFilter(IntentFilter o)
create
public static IntentFilter create(String action,
String dataType)
setPriority
public final void setPriority(int priority)
getPriority
public final int getPriority()
addAction
public final void addAction(String action)
countActions
public final int countActions()
getAction
public final String getAction(int index)
hasAction
public final boolean hasAction(String action)
matchAction
public final boolean matchAction(String action)
actionsIterator
public final Iterator<String> actionsIterator()
addDataType
public final void addDataType(String type)
throws IntentFilter.MalformedMimeTypeException
- Throws:
IntentFilter.MalformedMimeTypeException
hasDataType
public final boolean hasDataType(String type)
countDataTypes
public final int countDataTypes()
getDataType
public final String getDataType(int index)
typesIterator
public final Iterator<String> typesIterator()
addDataScheme
public final void addDataScheme(String scheme)
countDataSchemes
public final int countDataSchemes()
getDataScheme
public final String getDataScheme(int index)
hasDataScheme
public final boolean hasDataScheme(String scheme)
schemesIterator
public final Iterator<String> schemesIterator()
addDataAuthority
public final void addDataAuthority(String host,
String port)
countDataAuthorities
public final int countDataAuthorities()
getDataAuthority
public final IntentFilter.AuthorityEntry getDataAuthority(int index)
hasDataAuthority
public final boolean hasDataAuthority(Uri data)
authoritiesIterator
public final Iterator<IntentFilter.AuthorityEntry> authoritiesIterator()
addDataPath
public final void addDataPath(String path,
int type)
countDataPaths
public final int countDataPaths()
getDataPath
public final PatternMatcher getDataPath(int index)
hasDataPath
public final boolean hasDataPath(String data)
pathsIterator
public final Iterator<PatternMatcher> pathsIterator()
matchDataAuthority
public final int matchDataAuthority(Uri data)
matchData
public final int matchData(String type,
String scheme,
Uri data)
addCategory
public final void addCategory(String category)
countCategories
public final int countCategories()
getCategory
public final String getCategory(int index)
hasCategory
public final boolean hasCategory(String category)
categoriesIterator
public final Iterator<String> categoriesIterator()
matchCategories
public final String matchCategories(Set<String> categories)
match
public final int match(ContentResolver resolver,
Intent intent,
boolean resolve,
String logTag)
match
public final int match(String action,
String type,
String scheme,
Uri data,
Set<String> categories,
String logTag)
writeToXml
public void writeToXml(org.xmlpull.v1.XmlSerializer serializer)
throws IOException
- Throws:
IOException
readFromXml
public void readFromXml(org.xmlpull.v1.XmlPullParser parser)
throws org.xmlpull.v1.XmlPullParserException,
IOException
- Throws:
org.xmlpull.v1.XmlPullParserException
IOException
dump
public void dump(Printer du,
String prefix)
describeContents
public final int describeContents()
- Specified by:
describeContents
in interface Parcelable
writeToParcel
public final void writeToParcel(Parcel dest,
int flags)
- Specified by:
writeToParcel
in interface Parcelable
Copyright © 2008-2012. All Rights Reserved.