refresh


Description:

[ Version ( since = "3.18" ) ]
public async bool refresh (string? display_name, Cancellable? cancellable) throws Error

Asynchronously starts refresh of the this.

This means to access the server and search it for available sources. The this shows a feedback and a Cancel button during the operation.

The display_name is used only if the this wasn't created with an Source and it's shown in the password prompts, if there are required any.

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

Parameters:

this

an WebDAVDiscoverContent

display_name

optional display name to use for scratch sources

cancellable

optional Cancellable object, or null

callback

a TaskReadyCallback to call when the request is satisfied

user_data

data to pass to the callback function