get_icon_async


Description:

public async Bytes get_icon_async (string? requested_mime_type, int requested_depth, int requested_width, int requested_height, bool prefer_bigger, Cancellable? cancellable, out string mime, out int depth, out int width, out int height) throws Error

Download the device icon matching the request parameters.

For details on the lookup procedure, see [method@GUPnP.DeviceInfo.get_icon_url]

Parameters:

this

A DeviceInfo

requested_mime_type

The requested file format, or null for any

requested_depth

The requested color depth, or -1 for any

requested_width

The requested width, or -1 for any

requested_height

The requested height, or -1 for any

prefer_bigger

true if a bigger, rather than a smaller icon should be returned if no exact match could be found