ColorContrastOptions

Wrapper class for specifying color contrast options when applying contrast to branded and custom themes. Clients have the options to provide theme overlay resource ids for medium and high contrast mode.

An example of the provided theme overlay resource ids could be one of the following:

  • contrast in light mode: R.style.ThemeOverlay_XxxContrast_Light
  • contrast in dark mode: R.style.ThemeOverlay_XxxContrast_Dark
  • contrast in both light and dark mode: R.style.ThemeOverlay_XxxContrast_DayNight

Types

Link copied to clipboard
open class Builder
Builder class for specifying options when applying contrast.

Functions

Link copied to clipboard
Returns the resource id of the high contrast theme overlay.
Link copied to clipboard
Returns the resource id of the medium contrast theme overlay.