get_handle


Description:

[ Version ( since = "0.7.12" ) ]
public Handle get_handle (out HandleType handle_type)

Get the handle representing the contact, chatroom, etc.

with which this channel communicates for its whole lifetime, or 0 if there is no such handle or it has not yet been discovered.

This is the same as the TpChannelIface:handle property. It isn't guaranteed to have its final value until the TP_CHANNEL_FEATURE_CORE feature is ready.

If handle_type is not null, the type of handle is written into it. This will be UNKNOWN_HANDLE_TYPE if the handle has not yet been discovered, or NONE if there is no handle with which this channel will always communicate. This is the same as the TpChannelIface:handle-type property.

Parameters:

this

a channel

handle_type

if not null, used to return the type of this handle

Returns:

the handle