create_and_handle_channel_async


Description:

public async Channel? create_and_handle_channel_async (Cancellable? cancellable, out HandleChannelsContext context) throws Error

Asynchronously calls CreateChannel on the ChannelDispatcher to create a channel with the properties defined in TpAccountChannelRequest:request that you are going to handle yourself.

When the operation is finished, callback will be called. You can then call create_and_handle_channel_async.end to get the result of the operation.

(Behind the scenes, this works by creating a temporary BaseClient, then acting like create_channel_async with the temporary BaseClient as the preferred_handler.)

The caller is responsible for closing the channel with tp_cli_channel_call_close when it has finished handling it.

Parameters:

this

a AccountChannelRequest

cancellable

optional Cancellable object, null to ignore

callback

a callback to call when the request is satisfied

user_data

data to pass to callback




2022 vala-language.org