UIApplication.ApplicationIconBadgeNumber Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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).