dynamic_launcher_request_install_token


Description:

public string dynamic_launcher_request_install_token (string name, Variant icon_v) throws Error

Requests a token which can be passed to [method@Portal.

dynamic_launcher_install] to complete installation of the launcher without user interaction.

This function only works when the caller's app ID is in the allowlist for the portal backend being used. It's intended for software centers such as GNOME Software or KDE Discover.

Parameters:

this

a [class@Portal]

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

Returns:

a token that can be passed to [[email protected]_launcher_install], or null with throws set




2022 vala-language.org