Share via


Intent.HasCategory(String) Method

Definition

Check if a category exists in the intent.

[Android.Runtime.Register("hasCategory", "(Ljava/lang/String;)Z", "GetHasCategory_Ljava_lang_String_Handler")]
public virtual bool HasCategory (string? category);
[<Android.Runtime.Register("hasCategory", "(Ljava/lang/String;)Z", "GetHasCategory_Ljava_lang_String_Handler")>]
abstract member HasCategory : string -> bool
override this.HasCategory : string -> bool

Parameters

category
String

The category to check.

Returns

boolean True if the intent contains the category, else false.

Attributes

Remarks

Check if a category exists in the intent.

Java documentation for android.content.Intent.hasCategory(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

See also