ProgressCallback (status, progress, estimating, *user_data)


Flatpak.ProgressCallback(status, progress, estimating, *user_data)
  • status (str) – A status string, suitable for display
  • progress (int) – percentage of completion
  • estimating (bool) – whether progress is just an estimate
  • user_data (object or None) – User data passed to the caller

The progress callback is called repeatedly during long-running operations such as installations or updates, and can be used to update progress information in a user interface.

The callback occurs in the thread-default context of the caller.