ColorContrastOptions.Builder

public static class ColorContrastOptions.Builder
extends Object

java.lang.Object
   ↳ com.google.android.material.color.ColorContrastOptions.Builder


Builder class for specifying options when applying contrast.

Summary

Public constructors

Builder()

Public methods

ColorContrastOptions build()
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.

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

build

public ColorContrastOptions build ()

Returns
ColorContrastOptions

setHighContrastThemeOverlay

public ColorContrastOptions.Builder setHighContrastThemeOverlay (int highContrastThemeOverlayResourceId)

Sets the resource id of the high contrast theme overlay.

Parameters
highContrastThemeOverlayResourceId int

Returns
ColorContrastOptions.Builder

setMediumContrastThemeOverlay

public ColorContrastOptions.Builder setMediumContrastThemeOverlay (int mediumContrastThemeOverlayResourceId)

Sets the resource id of the medium contrast theme overlay.

Parameters
mediumContrastThemeOverlayResourceId int

Returns
ColorContrastOptions.Builder