Stay organized with collections
Save and categorize content based on your preferences.
FilteredVariantSelector
@Incubating interface FilteredVariantSelector<ComponentT : ComponentIdentity> : VariantSelector<ComponentT>
Summary
Public methods
|
abstract FilteredVariantSelector<ComponentT> |
Returns a new selector for ComponentT objects with a given build type.
|
abstract FilteredVariantSelector<ComponentT> |
Returns a new selector for ComponentT objects with a given (dimension, flavorName).
|
abstract VariantSelector<ComponentT> |
Registers an Action for ComponentT objects with a given name pattern.
|
Public methods
withBuildType
abstract fun withBuildType(buildType: String): FilteredVariantSelector<ComponentT>
Returns a new selector for ComponentT objects with a given build type.
Parameters |
buildType: String |
Build type to filter ComponentT on. |
withFlavor
abstract fun withFlavor(flavorToDimension: Pair<String, String>): FilteredVariantSelector<ComponentT>
Returns a new selector for ComponentT objects with a given (dimension, flavorName).
Parameters |
flavorToDimension: Pair<String, String> |
Dimension and flavor to filter ComponentT on. |
withName
abstract fun withName(pattern: Pattern): VariantSelector<ComponentT>
Registers an Action for ComponentT objects with a given name pattern.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]