-
- All Implemented Interfaces:
public class ProgressDialog.Companion
-
-
Field Summary
Fields Modifier and Type Field Description private final Integer
THEME_LIGHT
private final Integer
THEME_DARK
private final Integer
THEME_FOLLOW_SYSTEM
private final Integer
MODE_INDETERMINATE
private final Integer
MODE_DETERMINATE
public final static ProgressDialog.Companion
INSTANCE
-
Method Summary
Modifier and Type Method Description final Integer
getTHEME_LIGHT()
The default Theme for ProgressDialog (even if it is not passed in Constructor). final Integer
getTHEME_DARK()
This theme is suitable for apps having a Dark Theme. final Integer
getTHEME_FOLLOW_SYSTEM()
When this ThemeConstant is used, ProgressDialog's theme is automatically changed to match the System's theme each time before show is called. final Integer
getMODE_INDETERMINATE()
The default mode for ProgressDialog where an Indeterminate Spinner is shown for indicating Progress (even if it is not passed in Constructor). final Integer
getMODE_DETERMINATE()
In this mode, a Determinate ProgressBar is shown inside the ProgressDialog for indicating Progress. -
-
Method Detail
-
getTHEME_LIGHT
final Integer getTHEME_LIGHT()
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.
-
getTHEME_DARK
final Integer getTHEME_DARK()
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.
-
getTHEME_FOLLOW_SYSTEM
final Integer getTHEME_FOLLOW_SYSTEM()
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 31 (Android 11) ONLY. Setting theme will throw IllegalArgumentException if this Constant is passed in method call in Android versions lower than Android 11.
-
getMODE_INDETERMINATE
final Integer getMODE_INDETERMINATE()
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.
-
getMODE_DETERMINATE
final Integer getMODE_DETERMINATE()
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.
-
-
-
-