Flatpak.BundleRef

g Flatpak.BundleRef Flatpak.BundleRef Flatpak.Ref Flatpak.Ref Flatpak.Ref->Flatpak.BundleRef GObject.Object GObject.Object GObject.Object->Flatpak.Ref

Subclasses:

None

Methods

Inherited:

Flatpak.Ref (9), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (file)

get_appstream ()

get_file ()

get_icon (size)

get_installed_size ()

get_metadata ()

get_origin ()

get_runtime_repo_url ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

Flatpak.Ref (6)

Name

Type

Flags

Short Description

file

Gio.File

r/w/co

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

Flatpak.Ref

r

Class Details

class Flatpak.BundleRef(**kwargs)
Bases:

Flatpak.Ref

Abstract:

No

Structure:

Flatpak.BundleRefClass

classmethod new(file)
Parameters:

file (Gio.File) – a Gio.File

Raises:

GLib.Error

Returns:

a new bundle ref.

Return type:

Flatpak.BundleRef

Creates a new bundle ref for the given file.

get_appstream()
Returns:

an GLib.Bytes with the appstream contents, or None

Return type:

GLib.Bytes

Get the compressed appstream for the app/runtime

get_file()
Returns:

an Gio.File

Return type:

Gio.File

Get the file this bundle is stored in.

get_icon(size)
Parameters:

size (int) – 64 or 128

Returns:

an GLib.Bytes with png contents

Return type:

GLib.Bytes

Get the icon png data for the app/runtime

get_installed_size()
Returns:

the installed size

Return type:

int

Returns the installed size for the bundle.

get_metadata()
Returns:

an GLib.Bytes with the metadata contents, or None

Return type:

GLib.Bytes

Get the metadata for the app/runtime

get_origin()
Returns:

an url string, or None

Return type:

str

Get the origin url stored in the bundle

get_runtime_repo_url()
Returns:

an url string, or None

Return type:

str

Get the runtime flatpakrepo url stored in the bundle (if any)

New in version 0.8.0.

Property Details

Flatpak.BundleRef.props.file
Name:

file

Type:

Gio.File

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The bundle file that this ref refers to.