leave_async


Description:

[ Version ( since = "0.13.10" ) ]
public async bool leave_async (ChannelGroupChangeReason reason, string message) throws Error

Leave channel this with reason as reason and message as leave message.

If this doesn't implement TP_IFACE_QUARK_CHANNEL_INTERFACE_GROUP or if for any reason we can't properly leave the channel, we close it.

When we left the channel, callback will be called. You can then call leave_async.end to get the result of the operation.

Note that unlike join_async, TP_CHANNEL_FEATURE_GROUP feature does not have to be prepared and will be prepared for you. But this is a deprecated behaviour.

Parameters:

this

a Channel

reason

the leave reason

message

the leave message

callback

a callback to call when we left the channel

user_data

data to pass to callback