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

ColorProducer


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

Can be used as:

fun nonBoxedArgs(color: ColorProducer?)

Summary

Public functions

operator Color

Return the color

Cmn

Public functions

invoke

operator fun invoke(): Color

Return the color