has_interface


Description:

public bool has_interface (string iface)

Return whether this proxy is known to have a particular interface.

In versions older than 0.11.11, this was a macro wrapper around has_interface_by_id.

For objects that discover their interfaces at runtime, this method will indicate that interfaces are missing until they are known to be present. In subclasses that define features for use with prepare_async, successfully preparing the "core" feature for that subclass (such as TP_CHANNEL_FEATURE_CORE or TP_CONNECTION_FEATURE_CORE) implies that the interfaces are known.

Parameters:

this

the Proxy (or subclass)

iface

the D-Bus interface required, as a string

Returns:

true if this proxy implements the given interface.