public class NotifierFacade
| Modifier and Type | Class and Description |
|---|---|
static class |
NotifierFacade.Companion |
| Modifier and Type | Field and Description |
|---|---|
static NotifierFacade.Companion |
Companion |
static long |
DORKBOX_HIDE_AFTER_SECONDS |
| Modifier and Type | Method and Description |
|---|---|
Notifier |
custom(kotlin.jvm.functions.Function4<? super java.lang.String,? super java.lang.String,? super org.gradle.api.logging.LogLevel,? super kotlin.jvm.functions.Function1<? super dorkbox.notify.Notify,kotlin.Unit>,kotlin.Unit> notifier) |
Notifier |
dorkbox() |
Notifier |
dorkbox(kotlin.jvm.functions.Function1<? super dorkbox.notify.Notify,kotlin.Unit> configurer) |
kotlin.jvm.functions.Function1<com.cognifide.gradle.aem.common.notifier.NotifierFacade,com.cognifide.gradle.aem.common.notifier.Notifier> |
getConfig()
Hook for customizing notifications being displayed.
|
boolean |
getEnabled()
Turn on/off default system notifications.
|
java.net.URL |
getImage() |
void |
log(java.lang.String title) |
void |
log(java.lang.String title,
java.lang.String message) |
void |
log(java.lang.String title,
java.lang.String message,
org.gradle.api.logging.LogLevel level) |
void |
notify(java.lang.String title) |
void |
notify(java.lang.String title,
java.lang.String text) |
void |
notify(java.lang.String title,
java.lang.String text,
org.gradle.api.logging.LogLevel level) |
void |
notifyLogError(java.lang.String title,
java.lang.String message,
java.net.URI file) |
void |
setConfig(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.notifier.NotifierFacade,? extends com.cognifide.gradle.aem.common.notifier.Notifier> p)
Hook for customizing notifications being displayed.
|
void |
setEnabled(boolean p)
Turn on/off default system notifications.
|
public static long DORKBOX_HIDE_AFTER_SECONDS
public static NotifierFacade.Companion Companion
public boolean getEnabled()
Turn on/off default system notifications.
public void setEnabled(boolean p)
Turn on/off default system notifications.
@NotNull public kotlin.jvm.functions.Function1<com.cognifide.gradle.aem.common.notifier.NotifierFacade,com.cognifide.gradle.aem.common.notifier.Notifier> getConfig()
Hook for customizing notifications being displayed.
To customize notification use one of concrete provider methods: 'dorkbox' or 'jcgay' (and optionally pass configuration lambda(s)). Also it is possible to implement own notifier directly in build script by using provider method 'custom'.
public void setConfig(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.notifier.NotifierFacade,? extends com.cognifide.gradle.aem.common.notifier.Notifier> p)
Hook for customizing notifications being displayed.
To customize notification use one of concrete provider methods: 'dorkbox' or 'jcgay' (and optionally pass configuration lambda(s)). Also it is possible to implement own notifier directly in build script by using provider method 'custom'.
public void log(@NotNull
java.lang.String title)
public void log(@NotNull
java.lang.String title,
@NotNull
java.lang.String message)
public void log(@NotNull
java.lang.String title,
@NotNull
java.lang.String message,
@NotNull
org.gradle.api.logging.LogLevel level)
public void notify(@NotNull
java.lang.String title)
public void notify(@NotNull
java.lang.String title,
@NotNull
java.lang.String text)
public void notify(@NotNull
java.lang.String title,
@NotNull
java.lang.String text,
@NotNull
org.gradle.api.logging.LogLevel level)
@NotNull public Notifier dorkbox()
@NotNull public Notifier dorkbox(@NotNull kotlin.jvm.functions.Function1<? super dorkbox.notify.Notify,kotlin.Unit> configurer)
@NotNull public Notifier custom(@NotNull kotlin.jvm.functions.Function4<? super java.lang.String,? super java.lang.String,? super org.gradle.api.logging.LogLevel,? super kotlin.jvm.functions.Function1<? super dorkbox.notify.Notify,kotlin.Unit>,kotlin.Unit> notifier)
public void notifyLogError(@NotNull
java.lang.String title,
@NotNull
java.lang.String message,
@NotNull
java.net.URI file)
@NotNull public java.net.URL getImage()