GenericFilteredComponentActionRegistrar

@Incubating interface GenericFilteredComponentActionRegistrar<ComponentT> : FilteredComponentActionRegistrar<ComponentT> where ComponentT : ActionableComponentObject, ComponentT : ComponentIdentity
com.android.build.api.component.GenericFilteredComponentActionRegistrar

Allows registering Actions on ComponentT, with the ability to include filters to target sub sets of ComponentT.

The filters acts on the properties of ComponentIdentity, and on the type of ComponentT

Calls can be chained to include more than one filters, though in some cases, selecting a particular filter can reduce the list of available filters in the chain.

This extends FilteredComponentActionRegistrar to allow filtering per type.

Summary

Public methods

abstract FilteredComponentActionRegistrar<NewTypeT>
withType(newType: Class<NewTypeT>)

abstract Unit
withType(newType: Class<NewTypeT>, action: NewTypeT.() -> Unit)

abstract Unit
withType(newType: Class<NewTypeT>, action: Action<NewTypeT>)

Inherited functions

Public methods

withType

abstract fun <NewTypeT : ComponentT> withType(newType: Class<NewTypeT>): FilteredComponentActionRegistrar<NewTypeT>

withType

abstract fun <NewTypeT : ComponentT> withType(
    newType: Class<NewTypeT>,
    action: NewTypeT.() -> Unit
): Unit

withType

abstract fun <NewTypeT : ComponentT> withType(
    newType: Class<NewTypeT>,
    action: Action<NewTypeT>
): Unit