copy_document_async


Description:

[ Version ( since = "0.13.1" ) ]
public async DocumentsDocument copy_document_async (DocumentsDocument document, Cancellable? cancellable) throws Error

Copy the given document, producing a duplicate document in the same folder and returning its DocumentsDocument.

this and document are both reffed when this function is called, so can safely be unreffed after this function returns.

For more details, see copy_document, which is the synchronous version of this function.

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

Parameters:

this

a DocumentsService

document

the DocumentsDocument to copy

cancellable

optional Cancellable object, or null

callback

a TaskReadyCallback to call when the operation is finished, or null

user_data

data to pass to the callback function