add_observer_filter_vardict


Description:

[ Version ( since = "0.19.10" ) ]
public void add_observer_filter_vardict (Variant filter)

Register a new channel class as Observer.

ObserverChannelFilter. The observe_channels virtual method will be called whenever a new channel's properties match the ones in filter.

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

If the variant is floating (see g_variant_ref_sink), ownership will be taken, allowing for uses like this:

tp_base_client_add_observer_filter_vardict (client,
g_variant_new_parsed ("{ %s: <%s>, %s: <%u>, ... }",
TP_PROP_CHANNEL_CHANNEL_TYPE, TP_IFACE_CHANNEL_TYPE_TEXT,
TP_PROP_CHANNEL_TARGET_HANDLE_TYPE, (guint32) TP_HANDLE_TYPE_CONTACT,
...));

Parameters:

this

a client

filter

a variant of type VARDICT




2022 vala-language.org