Attach#

class Attach(**properties: Any)#

Superclasses: Object, Object

This is the ICalAttach instance.

Constructors#

class Attach
classmethod new_from_bytes(bytes: Bytes) Attach#

Creates a new Attach from the data in bytes. Takes a reference of bytes, increase the reference before calling this function if you with to use it afterward. The stored bytes should be already encoded with used encoding (like base64).

Added in version 1.0.

Parameters:

bytes – The Bytes holding the data used to create the Attach

classmethod new_from_data(data: str, free_fn: Callable[[Any, Any], None] | None = None, free_fn_data: Any = None) Attach#

Creates a new Attach from the data.

Added in version 1.0.

Parameters:
  • data – The data used to create the Attach

  • free_fn – The function used to free the data when the create Attach is destroyed

  • free_fn_data – The userdata used for the free function free_fn

classmethod new_from_url(url: str) Attach#

Creates a new Attach from the url.

Added in version 1.0.

Parameters:

url – The url from which the object is created

Methods#

class Attach
get_data() str | None#

Gets the data, if the Attach is built from the data.

Added in version 1.0.

get_is_url() bool#

Checks whether the Attach is built from url.

Added in version 1.0.

get_url() str | None#

Gets the url, if the Attach is built from the url.

Added in version 1.0.