GenericVariantSelector
@Incubating interface GenericVariantSelector<ComponentT : ComponentIdentity> : FilteredVariantSelector<ComponentT>
| com.android.build.api.extension.GenericVariantSelector |
Selector interface to reduce the number of variants that are of interests when calling any of the variant API like AndroidComponentsExtension.beforeVariants.
Summary
Public methods |
|
|---|---|
| abstract VariantSelector<ComponentT> |
all()Creates a VariantSelector of ComponentTthat includes all the variants for the current module. |
| abstract FilteredVariantSelector<NewTypeT> |
Creates a VariantSelector of NewTypeT, including all variants that are a sub type of NewTypeT, discarding all others. |
Inherited functions |
|
|---|---|
Public methods
all
abstract fun all(): VariantSelector<ComponentT>
Creates a VariantSelector of ComponentTthat includes all the variants for the current module.
| Return | |
|---|---|
| a VariantSelector for all variants. |
withType
abstract fun <NewTypeT : ComponentT> withType(newType: Class<NewTypeT>): FilteredVariantSelector<NewTypeT>
Creates a VariantSelector of NewTypeT, including all variants that are a sub type of NewTypeT, discarding all others.
| Parameters | |
|---|---|
| newType: Class<NewTypeT> | the sub type of ComponentT of interest. |