dynamic_launcher_prepare_install


Description:

public async Variant dynamic_launcher_prepare_install (Parent? parent, string name, Variant icon_v, LauncherType launcher_type, string? target, bool editable_name, bool editable_icon, Cancellable? cancellable) throws Error

Presents a dialog to the user so they can confirm they want to install a launcher to their desktop.

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

Parameters:

this

a [class@Portal]

parent

parent window information

name

the name for the launcher

icon_v

a BytesIcon as returned by serialize. Must be a png or jpeg no larger than 512x512, or an svg

launcher_type

the type of the launcher

target

the URL if the launcher is for a web app, or null

editable_name

if true, the user will be able to edit the name of the launcher

editable_icon

if true, the user will be able to edit the icon of the launcher, if the implementation supports this

cancellable

optional [[email protected]]

callback

a callback to call when the request is done

data

data to pass to callback




2022 vala-language.org