theme

var theme: Int

Gets/Sets the theme of the ProgressDialog. The theme is THEME_LIGHT by Default. If you're going to use only one Theme constantly, no need to set this. Instead, use an appropriate Constructor to set the required Theme during Instantiation. Only THEME_LIGHT, THEME_DARK or THEME_FOLLOW_SYSTEM should be passed as parameter for the Setter.

Throws

If any other value other than THEME_LIGHT, THEME_DARK or THEME_FOLLOW_SYSTEM is passed to the Setter or if THEME_FOLLOW_SYSTEM is used in Android Versions BELOW Android 11 (API Level 30).