Companion

object Companion

Properties

Link copied to clipboard
const val MODE_DETERMINATE: Int = 5

In this mode, a Determinate ProgressBar is shown inside the ProgressDialog for indicating Progress. It also has a TextView for numerically showing the Progress Value either as Percentage or as Fraction. Progress Value is shown as Percentage by Default which can be changed using showProgressTextAsFraction.

Link copied to clipboard
const val MODE_INDETERMINATE: Int = 4

The default mode for ProgressDialog where an Indeterminate Spinner is shown for indicating Progress (even if it is not passed in Constructor). Suitable for implementations where the exact progress of an operation is unknown to the Developer.

Link copied to clipboard
const val THEME_DARK: Int = 2

This theme is suitable for apps having a Dark Theme. This Constant SHOULD be passed explicitly in the Constructor for setting Dark Theme for ProgressDialog. Theme can be changed later by setting theme.

Link copied to clipboard
@RequiresApi(api = 30)
const val THEME_FOLLOW_SYSTEM: Int = 3

When this ThemeConstant is used, ProgressDialog's theme is automatically changed to match the System's theme each time before show is called. This Constant can be used starting from Android API Level 30 (Android 11) ONLY. Setting theme will throw IllegalArgumentException if this Constant is passed in method call in Android versions lower than Android 11.

Link copied to clipboard
const val THEME_LIGHT: Int = 1

The default Theme for ProgressDialog (even if it is not passed in Constructor). Suitable for apps having a Light Theme. Theme can be changed later by setting theme.