postNotification

abstract fun postNotification(event: String, userInfo: ReadonlyRecord<String, Any?>, deliverImmediately: Boolean = definedExternally)(source)

Posts event as native notifications of macOS. The userInfo is an Object that contains the user information dictionary sent along with the notification.