Skip to main content

AndroidProgress

Progress bar shown in an Android notification.

Set it as AndroidOptions.progress. To advance the bar, show the notification again with the same ID and an updated value; combine with AndroidOptions.only_alert_once to avoid alerting on each update.

Properties

  • indeterminate - Whether to show ongoing activity without a known completion amount.
  • max - Value at which the progress bar is full.
  • value - Current progress, between 0 and max.

Properties​

indeterminateclass-attributeinstance-attribute​

indeterminate: bool = False

Whether to show ongoing activity without a known completion amount.

When True, value and max are ignored.

maxclass-attributeinstance-attribute​

max: int = 100

Value at which the progress bar is full.

valueclass-attributeinstance-attribute​

value: int = 0

Current progress, between 0 and max.