Class DisabledAppearanceValues

  • All Implemented Interfaces:

    
    public final class DisabledAppearanceValues
    
                        

    An immutable value holder for the parameters required to create a "gray filter" effect, typically used to render UI elements in a disabled state.

    This class encapsulates the brightness, contrast, and alpha values needed by the Modifier.disabledAppearance composable. By marking it as @Immutable, we signal to the Compose compiler that it can safely skip recompositions of components that consume this class if its instance has not changed.

    The parameter ranges are validated upon instantiation to prevent invalid values.