Method

ValentDevicePluginshow_notification

unstable since: 1.0

Declaration [src]

void
valent_device_plugin_show_notification (
  ValentDevicePlugin* plugin,
  const char* id,
  GNotification* notification
)

Description [src]

A convenience for showing a local notification.

id will be automatically prepended with the device ID and plugin module to prevent conflicting with other devices and plugins.

Call valent_device_plugin_hide_notification() to make the same transformation on id and withdraw the notification.

Available since: 1.0

Parameters

id

Type: const char*

An id for the notification.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
notification

Type: GNotification

A GNotification.

The data is owned by the caller of the method.