Implementation

The sample uses TButton to enable or activate a function such as set or reset the badge number.

When you run the aplication, you see the TNumberBox object set to 0. This is the badge number of the application. To increase the badge number, use the buttons btnBadgeNumberDown and btnBadgeNumberUp. To increase the badge number, click on the btnBadgeNumberUp button. To decrease the badge number, click on the btnBadgeNumberDown button. Once the badge number is set to the desired one, if you click on the btnSetBadgeNumber button, the sample uses the ApplicationIconBadgeNumber property of
TNotificationCenter to update the application badge number. Finally, if you click on btnResetBadgeNumber button, the application badge number is reset to 0.