setBadgeCount

abstract fun setBadgeCount(count: Double = definedExternally): Boolean(source)

Whether the call succeeded.

Sets the counter badge for current app. Setting the count to 0 will hide the badge.

On macOS, it shows on the dock icon. On Linux, it only works for Unity launcher.

!NOTE Unity launcher requires a .desktop file to work. For more information, please read the Unity integration documentation.

!NOTE On macOS, you need to ensure that your application has the permission to display notifications for this method to work.