Package net.runelite.client.config
Class Notification
- java.lang.Object
-
- net.runelite.client.config.Notification
-
@ConfigSerializer(net.runelite.client.config.NotificationSerializer.class) public class Notification extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static Notification
OFF
static Notification
ON
-
Constructor Summary
Constructors Constructor Description Notification()
Notification(boolean enabled, boolean initialized, boolean override, boolean tray, TrayIcon.MessageType trayIconType, RequestFocusType requestFocus, Notifier.NativeCustomOff sound, int volume, int timeout, boolean gameMessage, FlashNotification flash, Color flashColor, boolean sendWhenFocused)
-
Method Summary
-
-
-
Field Detail
-
OFF
public static final Notification OFF
-
ON
public static final Notification ON
-
-
Constructor Detail
-
Notification
public Notification(boolean enabled, boolean initialized, boolean override, boolean tray, TrayIcon.MessageType trayIconType, RequestFocusType requestFocus, Notifier.NativeCustomOff sound, int volume, int timeout, boolean gameMessage, FlashNotification flash, Color flashColor, boolean sendWhenFocused)
-
Notification
public Notification()
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
-
isInitialized
public boolean isInitialized()
-
isOverride
public boolean isOverride()
-
isTray
public boolean isTray()
-
getTrayIconType
public TrayIcon.MessageType getTrayIconType()
-
getRequestFocus
public RequestFocusType getRequestFocus()
-
getSound
public Notifier.NativeCustomOff getSound()
-
getVolume
public int getVolume()
-
getTimeout
public int getTimeout()
-
isGameMessage
public boolean isGameMessage()
-
getFlash
public FlashNotification getFlash()
-
getFlashColor
public Color getFlashColor()
-
isSendWhenFocused
public boolean isSendWhenFocused()
-
withEnabled
public Notification withEnabled(boolean enabled)
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withInitialized
public Notification withInitialized(boolean initialized)
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withOverride
public Notification withOverride(boolean override)
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withTray
public Notification withTray(boolean tray)
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withTrayIconType
public Notification withTrayIconType(TrayIcon.MessageType trayIconType)
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withRequestFocus
public Notification withRequestFocus(RequestFocusType requestFocus)
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withSound
public Notification withSound(Notifier.NativeCustomOff sound)
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withVolume
public Notification withVolume(int volume)
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withTimeout
public Notification withTimeout(int timeout)
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withGameMessage
public Notification withGameMessage(boolean gameMessage)
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withFlash
public Notification withFlash(FlashNotification flash)
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withFlashColor
public Notification withFlashColor(Color flashColor)
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
withSendWhenFocused
public Notification withSendWhenFocused(boolean sendWhenFocused)
- Returns:
- a clone of this object, except with this updated property (returns
this
if an identical value is passed).
-
-