Flatpak.TransactionProgress

g Flatpak.TransactionProgress Flatpak.TransactionProgress GObject.Object GObject.Object GObject.Object->Flatpak.TransactionProgress

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_bytes_transferred ()

get_is_estimating ()

get_progress ()

get_start_time ()

get_status ()

set_update_frequency (update_interval)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Name

Short Description

changed

Emitted when some detail of the progress object changes, you can call the various methods to get the current status.

Fields

Inherited:

GObject.Object (1)

Class Details

class Flatpak.TransactionProgress(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Flatpak.TransactionProgressClass

get_bytes_transferred()
Returns:

the number of bytes transferred

Return type:

int

Gets the number of bytes that have been transferred.

New in version 1.1.2.

get_is_estimating()
Returns:

whether we’re estimating

Return type:

bool

Gets whether the progress is currently estimating

get_progress()
Returns:

the current progress, as an integer between 0 and 100

Return type:

int

Gets the current progress.

get_start_time()
Returns:

the start time

Return type:

int

Gets the time at which this operation has started, as monotonic time.

New in version 1.1.2.

get_status()
Returns:

the current status

Return type:

str

Gets the current status string

set_update_frequency(update_interval)
Parameters:

update_interval (int) – the update interval, in milliseconds

Sets how often progress should be updated.

Signal Details

Flatpak.TransactionProgress.signals.changed(transaction_progress)
Signal Name:

changed

Flags:

RUN_LAST

Parameters:

transaction_progress (Flatpak.TransactionProgress) – The object which received the signal

Emitted when some detail of the progress object changes, you can call the various methods to get the current status.