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 filter acts on the properties of ComponentIdentity, and on the type of ComponentT.
Calls can be chained to include more than one filter, 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> | |
abstract Unit | |
abstract Unit |
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