IntentFilter IntentFilter Class

Definition

Structured description of Intent values to be matched.

[Android.Runtime.Register("android/content/IntentFilter", ApiSince=1, DoNotGenerateAcw=true)]
public class IntentFilter : Java.Lang.Object, Android.OS.IParcelable, IDisposable
type IntentFilter = class
    inherit Object
    interface IParcelable
    interface IJavaObject
    interface IDisposable
Inheritance
IntentFilterIntentFilter
Attributes
Implements

Remarks

Android platform documentation

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

IntentFilter() IntentFilter()

New empty IntentFilter.

IntentFilter(IntentFilter) IntentFilter(IntentFilter)

New IntentFilter containing a copy of an existing filter.

IntentFilter(IntPtr, JniHandleOwnership) IntentFilter(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

IntentFilter(String) IntentFilter(String)

New IntentFilter that matches a single action with no data.

IntentFilter(String, String) IntentFilter(String, String)

New IntentFilter that matches a single action and data type.

Fields

SystemHighPriority SystemHighPriority

The filter Priority value at which system high-priority receivers are placed; that is, receivers that should execute before application code.

SystemLowPriority SystemLowPriority

The filter Priority value at which system low-priority receivers are placed; that is, receivers that should execute after application code.

Properties

Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
Creator Creator
Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
PeerReference PeerReference Inherited from Object
Priority Priority

Return the priority of this filter.

ThresholdClass ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

ActionsIterator() ActionsIterator()

Return an iterator over the filter's actions.

AddAction(String) AddAction(String)

Add a new Intent action to match against.

AddCategory(String) AddCategory(String)

Add a new Intent category to match against.

AddDataAuthority(String, String) AddDataAuthority(String, String)

Add a new Intent data authority to match against.

AddDataPath(String, Pattern) AddDataPath(String, Pattern)

Add a new Intent data path to match against.

AddDataScheme(String) AddDataScheme(String)

Add a new Intent data scheme to match against.

AddDataSchemeSpecificPart(String, Pattern) AddDataSchemeSpecificPart(String, Pattern)

Add a new Intent data "scheme specific part" to match against.

AddDataType(String) AddDataType(String)

Add a new Intent data type to match against.

AuthoritiesIterator() AuthoritiesIterator()

Return an iterator over the filter's data authorities.

CategoriesIterator() CategoriesIterator()

Return an iterator over the filter's categories.

Clone() Clone()

Creates and returns a copy of this Object.

(Inherited from Object)
CountActions() CountActions()

Return the number of actions in the filter.

CountCategories() CountCategories()

Return the number of categories in the filter.

CountDataAuthorities() CountDataAuthorities()

Return the number of data authorities in the filter.

CountDataPaths() CountDataPaths()

Return the number of data paths in the filter.

CountDataSchemes() CountDataSchemes()

Return the number of data schemes in the filter.

CountDataSchemeSpecificParts() CountDataSchemeSpecificParts()

Return the number of data scheme specific parts in the filter.

CountDataTypes() CountDataTypes()

Return the number of data types in the filter.

Create(String, String) Create(String, String)

Create a new IntentFilter instance with a specified action and MIME type, where you know the MIME type is correctly formatted.

DescribeContents() DescribeContents()

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Dispose() Dispose() Inherited from Object
Dispose(Boolean) Dispose(Boolean) Inherited from Object
Dump(IPrinter, String) Dump(IPrinter, String)
Equals(Object) Equals(Object)

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
GetAction(Int32) GetAction(Int32)

Return an action in the filter.

GetCategory(Int32) GetCategory(Int32)

Return a category in the filter.

GetDataAuthority(Int32) GetDataAuthority(Int32)

Return a data authority in the filter.

GetDataPath(Int32) GetDataPath(Int32)

Return a data path in the filter.

GetDataScheme(Int32) GetDataScheme(Int32)

Return a data scheme in the filter.

GetDataSchemeSpecificPart(Int32) GetDataSchemeSpecificPart(Int32)

Return a data scheme specific part in the filter.

GetDataType(Int32) GetDataType(Int32)

Return a data type in the filter.

GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
HasAction(String) HasAction(String)

Is the given action included in the filter? Note that if the filter does not include any actions, false will always be returned.

HasCategory(String) HasCategory(String)

Is the given category included in the filter?

HasDataAuthority(Uri) HasDataAuthority(Uri)

Is the given data authority included in the filter? Note that if the filter does not include any authorities, false will always be returned.

HasDataPath(String) HasDataPath(String)

Is the given data path included in the filter? Note that if the filter does not include any paths, false will always be returned.

HasDataScheme(String) HasDataScheme(String)

Is the given data scheme included in the filter? Note that if the filter does not include any scheme, false will always be returned.

HasDataSchemeSpecificPart(String) HasDataSchemeSpecificPart(String)

Is the given data scheme specific part included in the filter? Note that if the filter does not include any scheme specific parts, false will always be returned.

HasDataType(String) HasDataType(String)

Is the given data type included in the filter? Note that if the filter does not include any type, false will always be returned.

JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
Match(ContentResolver, Intent, Boolean, String) Match(ContentResolver, Intent, Boolean, String)

intent

Match(String, String, String, Uri, ICollection<String>, String) Match(String, String, String, Uri, ICollection<String>, String)
MatchAction(String) MatchAction(String)

Match this filter against an Intent's action.

MatchCategories(ICollection<String>) MatchCategories(ICollection<String>)
MatchData(String, String, Uri) MatchData(String, String, Uri)

Match this filter against an Intent's data (type, scheme and path).

MatchDataAuthority(Uri) MatchDataAuthority(Uri)

Match this intent filter against the given Intent data.

Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
PathsIterator() PathsIterator()

Return an iterator over the filter's data paths.

ReadFromXml(XmlReader) ReadFromXml(XmlReader)
SchemesIterator() SchemesIterator()

Return an iterator over the filter's data schemes.

SchemeSpecificPartsIterator() SchemeSpecificPartsIterator()

Return an iterator over the filter's data scheme specific parts.

SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() ToArray<T>() Inherited from Object
ToString() ToString()

Returns a string containing a concise, human-readable description of this object.

(Inherited from Object)
TypesIterator() TypesIterator()

Return an iterator over the filter's data types.

UnregisterFromRuntime() UnregisterFromRuntime() Inherited from Object
Wait() Wait()

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
WriteToParcel(Parcel, ParcelableWriteFlags) WriteToParcel(Parcel, ParcelableWriteFlags)

Flatten this object in to a Parcel.

WriteToXml(IXmlSerializer) WriteToXml(IXmlSerializer)

Write the contents of the IntentFilter as an XML stream.

Explicit Interface Implementations

IJavaObjectEx.ToLocalJniHandle() IJavaObjectEx.ToLocalJniHandle() Inherited from Object
IJavaPeerable.Disposed() IJavaPeerable.Disposed() Inherited from Object
IJavaPeerable.DisposeUnlessReferenced() IJavaPeerable.DisposeUnlessReferenced() Inherited from Object
IJavaPeerable.Finalized() IJavaPeerable.Finalized() Inherited from Object
IJavaPeerable.SetJniIdentityHashCode(Int32) IJavaPeerable.SetJniIdentityHashCode(Int32) Inherited from Object
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) Inherited from Object
IJavaPeerable.SetPeerReference(JniObjectReference) IJavaPeerable.SetPeerReference(JniObjectReference) Inherited from Object

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to