:right-sidebar: True Attach =================================================================== .. currentmodule:: gi.repository.ICalGLib .. class:: Attach(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.ICalGLib.Object`, :class:`~gi.repository.GObject.Object` This is the ICalAttach instance. Constructors ------------ .. rst-class:: interim-class .. class:: Attach :no-index: .. classmethod:: new_from_bytes(bytes: ~gi.repository.GLib.Bytes) -> ~gi.repository.ICalGLib.Attach Creates a new :obj:`~gi.repository.ICalGLib.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). .. versionadded:: 1.0 :param bytes: The :obj:`~gi.repository.GLib.Bytes` holding the data used to create the :obj:`~gi.repository.ICalGLib.Attach` .. classmethod:: new_from_data(data: str, free_fn: ~collections.abc.Callable[[~typing.Any, ~typing.Any], None] | None = None, free_fn_data: ~typing.Any = None) -> ~gi.repository.ICalGLib.Attach Creates a new :obj:`~gi.repository.ICalGLib.Attach` from the data. .. versionadded:: 1.0 :param data: The data used to create the :obj:`~gi.repository.ICalGLib.Attach` :param free_fn: The function used to free the data when the create :obj:`~gi.repository.ICalGLib.Attach` is destroyed :param free_fn_data: The userdata used for the free function ``free_fn`` .. classmethod:: new_from_url(url: str) -> ~gi.repository.ICalGLib.Attach Creates a new :obj:`~gi.repository.ICalGLib.Attach` from the url. .. versionadded:: 1.0 :param url: The url from which the object is created Methods ------- .. rst-class:: interim-class .. class:: Attach :no-index: .. method:: get_data() -> str | None Gets the data, if the :obj:`~gi.repository.ICalGLib.Attach` is built from the data. .. versionadded:: 1.0 .. method:: get_is_url() -> bool Checks whether the :obj:`~gi.repository.ICalGLib.Attach` is built from url. .. versionadded:: 1.0 .. method:: get_url() -> str | None Gets the url, if the :obj:`~gi.repository.ICalGLib.Attach` is built from the url. .. versionadded:: 1.0