Google is committed to advancing racial equity for Black communities. See how.

Component

@Incubating interface Component<PropertiesT : ComponentProperties> : ComponentIdentity, ActionableComponentObject
com.android.build.api.component.Component

Component object that contains properties that must be set during configuration time as it changes the build flow for the variant.

Summary

Public methods

abstract Unit
onProperties(action: PropertiesT.() -> Unit)

Runs the Action block on the VariantProperties object once created.

Properties

abstract Boolean

Set to True if the variant is active and should be configured, false otherwise.

Inherited properties

Public methods

onProperties

abstract fun onProperties(action: PropertiesT.() -> Unit): Unit

Runs the Action block on the VariantProperties object once created.

Properties

enabled

abstract var enabled: Boolean

Set to True if the variant is active and should be configured, false otherwise.