{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

ColorProducer

public fun interface ColorProducer


Alternative to () -> Color that's useful for avoiding boxing.

Can be used as:

fun nonBoxedArgs(color: ColorProducer?)

Summary

Public methods

abstract @NonNull Color

Return the color

Public methods

invoke

abstract @NonNull Color invoke()

Return the color