IntentFilter.MatchCategories(ICollection<String>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
If all categories match (success), null; else the name of the first category that didn't match.
- Attributes
Remarks
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.