set_observer_recover


Description:

public void set_observer_recover (bool recover)

Set whether the channel dispatcher should attempt to recover this Observer if it crashes.

(This is implemented by setting the value of its Recover D-Bus property.)

Normally, Observers are only notified when new channels appear. If an Observer is set to recover, when it registers with register, it will also be told about any channels that already existed before it started.

For Observers that are activatable as a D-Bus service, if the Observer exits or crashes while there are any channels that match its filter, it will automatically be restarted by service-activation.

This method may only be called before register is called, and may only be called on objects whose class implements observe_channels.

Parameters:

this

a BaseClient

recover

the value of the Observer.Recover property




2022 vala-language.org