IntentFilter.AsPredicate Method

Definition

Return a Predicate which tests whether this filter matches the given <var>intent</var>.

[Android.Runtime.Register("asPredicate", "()Ljava/util/function/Predicate;", "GetAsPredicateHandler", ApiSince=33)]
public virtual Java.Util.Functions.IPredicate AsPredicate ();
[<Android.Runtime.Register("asPredicate", "()Ljava/util/function/Predicate;", "GetAsPredicateHandler", ApiSince=33)>]
abstract member AsPredicate : unit -> Java.Util.Functions.IPredicate
override this.AsPredicate : unit -> Java.Util.Functions.IPredicate

Returns

Attributes

Remarks

Return a Predicate which tests whether this filter matches the given <var>intent</var>.

The intent's type will always be tested using a simple Intent#getType() check. To instead perform a detailed type resolution before matching, use #asPredicateWithTypeResolution(ContentResolver).

Java documentation for android.content.IntentFilter.asPredicate().

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