print_file


Description:

public async bool print_file (Parent? parent, string title, uint token, string file, PrintFlags flags, Cancellable? cancellable) throws Error

Prints a file.

If a valid token is present in the options, then this call will print with the settings from the Print call that the token refers to. If no token is present, then a print dialog will be presented to the user.

When the request is done, callback will be called. You can then call [[email protected]_file_finish] to get the results.

Parameters:

this

a [class@Portal]

parent

parent window information

title

tile for the print dialog

token

token that was returned by a previous [[email protected]_print] call, or 0

file

path of the document to print

flags

options for this call

cancellable

optional [[email protected]]

callback

a callback to call when the request is done

data

data to pass to callback




2022 vala-language.org