common-plugin / com.cognifide.gradle.common.notifier / NotifierFacade

NotifierFacade

class NotifierFacade

Properties

common

val common: CommonExtension

config

Hook for customizing notifications being displayed.

var config: NotifierFacade.() -> Notifier

enabled

Turn on/off default system notifications.

var enabled: Boolean

image

Project specific image at path relative to root project.

var image: File

Functions

custom

fun custom(notifier: (title: String, text: String, level: LogLevel, onClick: (Notify) -> Unit) -> Unit): Notifier

dorkbox

fun dorkbox(configurer: Notify.() -> Unit = {}): Notifier

error

fun error(title: String, text: String): Unit

info

fun info(title: String, text: String): Unit

lifecycle

fun lifecycle(title: String, text: String): Unit

log

fun log(title: String): Unit
fun log(title: String, message: String): Unit
fun log(title: String, message: String, level: LogLevel): Unit

notify

fun notify(title: String): Unit
fun notify(title: String, text: String, level: LogLevel, onClick: (Notify) -> Unit = {}): Unit
fun notify(title: String, text: String): Unit

warn

fun warn(title: String, text: String): Unit

Companion Object Functions

of

Get project specific notifier (config can vary)

fun of(common: CommonExtension): NotifierFacade