setBadge

fun setBadge(text: String)(source)

Sets the string to be displayed in the dock’s badging area.

!IMPORTANT You need to ensure that your application has the permission to display notifications for this method to work.