NotificationHint class
A hint about how to display this notification.
Constructors
- NotificationHint(String key, DBusValue value)
-
Creates a custom notification hint.
const
- NotificationHint.actionIcons()
-
This notification should have its action IDs intepreted as icon names.
factory
- NotificationHint.category(NotificationCategory category)
-
This notification is of type
category
.factory - NotificationHint.desktopEntry(String name)
-
This notification is from the application with the desktop file
name
.desktop.factory -
NotificationHint.imageData(int width, int height, Iterable<
int> data, {int rowStride = -1, bool hasAlpha = false, int bitsPerSample = 8, int channels = 3}) -
This notification should show use the supplied raw image data for its icon.
data
is the raw data for the image.width
andheight
are the width and height of the image in pixels.rowStride
is the number of bytes per row indata
.hasAlpha
is true if the image has an alpha channel.bitsPerSample
is the number of bits in each color sample.channels
is the number of channels in the image (e.g. 3 for RGB, 4 for RGBA).factory - NotificationHint.imagePath(String path)
-
This notification should use the image at
path
as the icon.factory - NotificationHint.location(int x, int y)
-
This notification should be placed at the given
x
andy
co-ordinates.factory - NotificationHint.resident()
-
This notification should not be removed when its action is invoked. It will be removed when explicitly removed by this client or the user.
factory
- NotificationHint.soundFile(String path)
-
This notification should play the sound file at
path
when shown.factory - NotificationHint.soundName(String name)
-
This notification should play the sound from the sound theme with
name
when shown.factory - NotificationHint.suppressSound()
-
This notification should not trigger any any sounds that would normally play for notifications.
factory
- NotificationHint.transient()
-
This notification should be transient and by-pass the server's persistent capability.
factory
- NotificationHint.urgency(NotificationUrgency urgency)
-
This notification should have the given
urgency
level.factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited