get_notices_sync


Description:

[ Version ( since = "1.65" ) ]
public GenericArray<unowned Notice> get_notices_sync (DateTime since_date_time, TimeSpan timeout, Cancellable? cancellable = null) throws Error

Synchronously get notifications that have occurred / are occurring on the snap daemon.

The since_date_time field, being a GDateTime, has a resolution of microseconds, so, if nanosecond resolution is needed, it is mandatory to call notices_set_after_notice before calling this method.

Parameters:

this

a Client.

since_date_time

send only the notices generated after this moment (NULL for all).

timeout

time, in microseconds, to wait for a new notice (zero to return immediately).

cancellable

a Cancellable or null.

Returns:

a GenericArray object containing the requested notices, or NULL in case of error.