Notification.Builder.SetNumber(Int32) Method

Definition

Sets the number of items this notification represents.

[Android.Runtime.Register("setNumber", "(I)Landroid/app/Notification$Builder;", "GetSetNumber_IHandler")]
public virtual Android.App.Notification.Builder SetNumber(int number);
[<Android.Runtime.Register("setNumber", "(I)Landroid/app/Notification$Builder;", "GetSetNumber_IHandler")>]
abstract member SetNumber : int -> Android.App.Notification.Builder
override this.SetNumber : int -> Android.App.Notification.Builder

Parameters

number
Int32

int

Returns

This Android.App.Notification.Builder instance, allowing calls to be chained.

Attributes

Remarks

Sets the number of items this notification represents. May be displayed as a badge count for Launchers that support badging.

Android reference for android.app.Notification.Builder.setNumber.

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