ColorContrastOptions.Builder

public class ColorContrastOptions.Builder


Builder class for specifying options when applying contrast.

Summary

Public constructors

Public methods

ColorContrastOptions
ColorContrastOptions.Builder
setHighContrastThemeOverlay(int highContrastThemeOverlayResourceId)

Sets the resource id of the high contrast theme overlay.

ColorContrastOptions.Builder
setMediumContrastThemeOverlay(
    int mediumContrastThemeOverlayResourceId
)

Sets the resource id of the medium contrast theme overlay.

Public constructors

Builder

public Builder()

Public methods

build

public ColorContrastOptions build()

setHighContrastThemeOverlay

public ColorContrastOptions.Builder setHighContrastThemeOverlay(int highContrastThemeOverlayResourceId)

Sets the resource id of the high contrast theme overlay.

setMediumContrastThemeOverlay

public ColorContrastOptions.Builder setMediumContrastThemeOverlay(
    int mediumContrastThemeOverlayResourceId
)

Sets the resource id of the medium contrast theme overlay.