provide_file_async


Description:

[ Version ( since = "0.17.1" ) ]
public async bool provide_file_async (File file) throws Error

Provide a file transfer.

This should be called when the file transfer state changes (tp_file_transfer_channel_get_state() and the "notify::state" signal) to ACCEPTED or PENDING. Once the file has been provided, the channel state will change to OPEN.

Once the file has been provided, callback will be called. You should then call provide_file_async.end to get the result of the operation.

Parameters:

this

a FileTransferChannel

file

a File to send to the remote contact

callback

a callback to call when the transfer has been accepted

user_data

data to pass to callback




2022 vala-language.org