set_destination


Description:

public void set_destination (string uri)

Sets the URI to which the downloaded file will be written.

This method should be called before the download transfer starts or it will not have any effect on the ongoing download operation. To set the destination using the filename suggested by the server connect to decide_destination signal and call set_destination. If you want to set a fixed destination URI that doesn't depend on the suggested filename you can connect to notify:response signal and call set_destination. If decide_destination signal is not handled and destination URI is not set when the download transfer starts, the file will be saved with the filename suggested by the server in g_user_directory_download directory.

Parameters:

this

a Download

uri

the destination URI




2022 vala-language.org