:right-sidebar: True BundleRef =================================================================== .. currentmodule:: gi.repository.Flatpak .. class:: BundleRef(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Flatpak.Ref`, :class:`~gi.repository.GObject.Object` :Constructors: :: BundleRef(**properties) new(file:Gio.File) -> Flatpak.BundleRef Constructors ------------ .. rst-class:: interim-class .. class:: BundleRef :no-index: .. classmethod:: new(file: ~gi.repository.Gio.File) -> ~gi.repository.Flatpak.BundleRef Creates a new bundle ref for the given file. :param file: a :obj:`~gi.repository.Gio.File` Methods ------- .. rst-class:: interim-class .. class:: BundleRef :no-index: .. method:: get_appstream() -> ~gi.repository.GLib.Bytes Get the compressed appstream for the app/runtime .. method:: get_file() -> ~gi.repository.Gio.File Get the file this bundle is stored in. .. method:: get_icon(size: int) -> ~gi.repository.GLib.Bytes Get the icon png data for the app/runtime :param size: 64 or 128 .. method:: get_installed_size() -> int Returns the installed size for the bundle. .. method:: get_metadata() -> ~gi.repository.GLib.Bytes Get the metadata for the app/runtime .. method:: get_origin() -> str Get the origin url stored in the bundle .. method:: get_runtime_repo_url() -> str Get the runtime flatpakrepo url stored in the bundle (if any) .. versionadded:: 0.8.0 Properties ---------- .. rst-class:: interim-class .. class:: BundleRef :no-index: .. attribute:: props.file :type: ~gi.repository.Gio.File The type of the None singleton. Fields ------ .. rst-class:: interim-class .. class:: BundleRef :no-index: .. attribute:: parent