TelepathyGLib.AvatarRequirements

Fields

Name

Type

Access

Description

maximum_bytes

int

r/w

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

maximum_height

int

r/w

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

maximum_width

int

r/w

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

minimum_height

int

r/w

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

minimum_width

int

r/w

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

recommended_height

int

r/w

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

recommended_width

int

r/w

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

supported_mime_types

[str]

r/w

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

Methods

class

new (supported_mime_types, minimum_width, minimum_height, recommended_width, recommended_height, maximum_width, maximum_height, maximum_bytes)

Details

class TelepathyGLib.AvatarRequirements

The requirements for setting an avatar on a particular protocol.

New in version 0.11.4.

classmethod new(supported_mime_types, minimum_width, minimum_height, recommended_width, recommended_height, maximum_width, maximum_height, maximum_bytes)
Parameters:
  • supported_mime_types ([str]) – An array of supported MIME types (e.g. “image/jpeg”) Clients MAY assume that the first type in this array is preferred

  • minimum_width (int) – The minimum width in pixels of an avatar, which MAY be 0

  • minimum_height (int) – The minimum height in pixels of an avatar, which MAY be 0

  • recommended_width (int) – The recommended width in pixels of an avatar, or 0 if there is no preferred width.

  • recommended_height (int) – The recommended height in pixels of an avatar, or 0 if there is no preferred height

  • maximum_width (int) – The maximum width in pixels of an avatar on this protocol, or 0 if there is no limit.

  • maximum_height (int) – The maximum height in pixels of an avatar, or 0 if there is no limit.

  • maximum_bytes (int) – he maximum size in bytes of an avatar, or 0 if there is no limit.

Returns:

a newly allocated TelepathyGLib.AvatarRequirements, free it with tp_avatar_requirements_destroy()

Return type:

TelepathyGLib.AvatarRequirements

Returns: says it all

New in version 0.11.4.