prepare_print


Description:

public async Variant prepare_print (Parent? parent, string title, Variant? settings, Variant? page_setup, PrintFlags flags, Cancellable? cancellable) throws Error

Presents a print dialog to the user and returns print settings and page setup.

When the request is done, callback will be called. You can then call [method@Portal.prepare_print_finish] to get the results.

Parameters:

this

a [class@Portal]

parent

parent window information

title

tile for the print dialog

settings

Serialized print settings

page_setup

Serialized page setup

flags

options for this call

cancellable

optional [class@Gio.Cancellable]

callback

a callback to call when the request is done

data

data to pass to callback