signal_subscribe


Description:

public uint signal_subscribe (DBusConnection connection, string? service, string? object_path, string? graph)

Listens to notification events from a remote DBus SPARQL endpoint.

If connection refers to a message bus (system/session), service must refer to a D-Bus name (either unique or well-known). If connection is a non-message bus (e.g. a peer-to-peer D-Bus connection) the service argument may be null.

If the object_path argument is null, the default `/org/freedesktop/Tracker3/Endpoint` path will be used. If graph is null, all graphs will be listened for.

The signal subscription can be removed with [method@Notifier.signal_unsubscribe].

Note that this call is not necessary to receive notifications on a connection obtained through [ctor@SparqlConnection.bus_new], only to listen to update notifications from additional DBus endpoints.

Parameters:

this

A `TrackerNotifier`

connection

A [class@Gio.DBusConnection]

service

DBus service name to subscribe to events for, or null

object_path

DBus object path to subscribe to events for, or null

graph

Graph to listen events for, or null

Returns:

An ID for this subscription