NotificationsClient class
A client that connects to the notifications server.
Constructors
- NotificationsClient({DBusClient? bus})
-
Creates a new notification client. If
bus
is provided connect to the given D-Bus server.
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
close(
) → Future< void> - Terminates all active connections. If a client remains unclosed, the Dart process may not terminate.
-
getCapabilities(
) → Future< List< String> > - Gets the capabilities of the notifications server.
-
getServerInformation(
) → Future< NotificationsServerInformation> - Gets information about the notifications server.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notify(
String summary, {String body = '', String appName = '', String appIcon = '', int expireTimeoutMs = -1, int replacesId = 0, List< NotificationHint> hints = const [], List<NotificationAction> actions = const []}) → Future<Notification> -
Sends a notification with a
summary
and optionalbody
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited