IntentFilter.AddCategory(String) Method

Definition

Add a new Intent category to match against.

[Android.Runtime.Register("addCategory", "(Ljava/lang/String;)V", "")]
public void AddCategory (string? category);
[<Android.Runtime.Register("addCategory", "(Ljava/lang/String;)V", "")>]
member this.AddCategory : string -> unit

Parameters

category
String

Name of category to match, such as Intent.CATEGORY_EMBED.

Attributes

Remarks

Add a new Intent category to match against. The semantics of categories is the opposite of actions -- an Intent includes the categories that it requires, all of which must be included in the filter in order to match. In other words, adding a category to the filter has no impact on matching unless that category is specified in the intent.

Java documentation for android.content.IntentFilter.addCategory(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