Android Guides | Samples

Android.App.Notification.Builder.SetCategory Method

Set the notification category.

Syntax

[Android.Runtime.Register("setCategory", "(Ljava/lang/String;)Landroid/app/Notification$Builder;", "GetSetCategory_Ljava_lang_String_Handler")]
public virtual Notification+Builder SetCategory (String category)

Parameters

category
The Notification.Category that best describes the notification.

Remarks

Sets the notification category that best describes this notification. This category is used for ranking and filtering this notification.

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 11