IntentFilter.MatchCategories(ICollection<String>) Method

Definition

Match this filter against an Intent's categories.

[Android.Runtime.Register("matchCategories", "(Ljava/util/Set;)Ljava/lang/String;", "")]
public string? MatchCategories (System.Collections.Generic.ICollection<string>? categories);
[<Android.Runtime.Register("matchCategories", "(Ljava/util/Set;)Ljava/lang/String;", "")>]
member this.MatchCategories : System.Collections.Generic.ICollection<string> -> string

Parameters

categories
ICollection<String>

The categories included in the intent, as returned by Intent.getCategories().

Returns

String

If all categories match (success), null; else the name of the first category that didn't match.

Attributes

Remarks

Java documentation for android.content.IntentFilter.matchCategories(java.util.Set<java.lang.String>).

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