UIApplication.ApplicationIconBadgeNumber Property

Definition

Numeric value to display as the application badge number.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual nint ApplicationIconBadgeNumber { [Foundation.Export("applicationIconBadgeNumber")] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)] get; [Foundation.Export("setApplicationIconBadgeNumber:")] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)] set; }
member this.ApplicationIconBadgeNumber : nint with get, set

Property Value

System.System.IntPtr System.nativeint
Attributes

Remarks

When this value is zero, no badge is displayed. When this value is different than zero, the value is displayed as a badge on the application's icon by the operating system.

Starting with iOS 8.0, your application needs to register for user notifications to be able to set the application icon badge number.   You do this by calling the RegisterUserNotificationSettings(UIUserNotificationSettings).

Applies to