Share via


UNMutableNotificationContent.Badge Property

Definition

Gets or sets the number to display in the app's icon badge.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Foundation.NSNumber? Badge { [Foundation.Export("badge", ObjCRuntime.ArgumentSemantic.Copy)] get; [Foundation.Export("setBadge:", ObjCRuntime.ArgumentSemantic.Copy)] set; }
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<get: Foundation.Export("badge", ObjCRuntime.ArgumentSemantic.Copy)>]
[<set: Foundation.Export("setBadge:", ObjCRuntime.ArgumentSemantic.Copy)>]
member this.Badge : Foundation.NSNumber with get, set

Property Value

The number to display in the app's icon badge.

This value can be null.

Attributes

Applies to