Intent.IsMismatchingFilter Property

Definition

Whether the intent mismatches all intent filters declared in the receiving component.

public virtual bool IsMismatchingFilter { [Android.Runtime.Register("isMismatchingFilter", "()Z", "GetIsMismatchingFilterHandler", ApiSince=35)] get; }
[<get: Android.Runtime.Register("isMismatchingFilter", "()Z", "GetIsMismatchingFilterHandler", ApiSince=35)>]
member this.IsMismatchingFilter : bool

Property Value

Returns true if the intent does not match any intent filters declared in the receiving component.

Attributes

Remarks

Whether the intent mismatches all intent filters declared in the receiving component.

When a component receives an intent, normally obtainable through the following methods: <ul> <li> BroadcastReceiver#onReceive(Context, Intent)<li> Activity#getIntent()<li> Activity#onNewIntent)<li> android.app.Service#onStartCommand(Intent, int, int)<li> android.app.Service#onBind(Intent)</ul> The developer can call this method to check if this intent does not match any of its declared intent filters. A non-matching intent can be delivered when the intent sender explicitly set the component through #setComponent or #setClassName.

This method always returns false if the intent originated from within the same application or the system, because these cases are always exempted from security checks.

Java documentation for android.content.Intent.isMismatchingFilter().

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.

Applies to