AvatarRequirements


Description:

[ CCode ( has_construct_function = false ) ]
public AvatarRequirements (string[] supported_mime_types, uint minimum_width, uint minimum_height, uint recommended_width, uint recommended_height, uint maximum_width, uint maximum_height, uint maximum_bytes)

Parameters:

supported_mime_types

An array of supported MIME types (e.g. "image/jpeg") Clients MAY assume that the first type in this array is preferred

minimum_width

The minimum width in pixels of an avatar, which MAY be 0

minimum_height

The minimum height in pixels of an avatar, which MAY be 0

recommended_width

The recommended width in pixels of an avatar, or 0 if there is no preferred width.

recommended_height

The recommended height in pixels of an avatar, or 0 if there is no preferred height

maximum_width

The maximum width in pixels of an avatar on this protocol, or 0 if there is no limit.

maximum_height

The maximum height in pixels of an avatar, or 0 if there is no limit.

maximum_bytes

he maximum size in bytes of an avatar, or 0 if there is no limit.

Returns:

a newly allocated AvatarRequirements, free it with tp_avatar_requirements_destroy




2022 vala-language.org