EBookContacts.ContactPhoto

Fields

Name Type Access Description
type EBookContacts.ContactPhotoType r/w  

Methods

class new ()
  copy ()
  free ()
  get_inlined ()
  get_mime_type ()
  get_uri ()
  set_inlined (data)
  set_mime_type (mime_type)
  set_uri (uri)

Details

class EBookContacts.ContactPhoto
classmethod new()
Returns:A new EBookContacts.ContactPhoto struct.
Return type:EBookContacts.ContactPhoto

Creates a new EBookContacts.ContactPhoto struct.

New in version 3.2.

copy()
Returns:A new EBookContacts.ContactPhoto struct identical to self.
Return type:EBookContacts.ContactPhoto

Creates a copy of self.

New in version 3.8.

free()

Frees the self struct and its contents.

get_inlined()
Returns:the EBookContacts.inlined image in the EBookContacts.ContactPhoto, or None if it has not been set.
Return type:bytes or None

Gets the self’s data.

New in version 3.2.

get_mime_type()
Returns:the MIME type of the image, or None if it has not been set.
Return type:str or None

Gets the self’s mime type.

New in version 3.2.

get_uri()
Returns:the URI of the image, or None if it has not been set
Return type:str or None

Gets the self’s URI.

New in version 3.2.

set_inlined(data)
Parameters:data (bytes) – the EBookContacts.inlined image data

Sets the self’s EBookContacts.inlined data.

New in version 3.2.

set_mime_type(mime_type)
Parameters:mime_type (str) – the mime type

Sets the self’s mime type.

New in version 3.2.

set_uri(uri)
Parameters:uri (str) – the self’s URI

Sets the self’s URI.

New in version 3.2.