# LibraryComponentSelector

interface LibraryComponentSelector : ComponentSelector(source)

Criteria for selecting a library instance that is built as part of the current build.

## Functions

getAttributes
Link copied to clipboard
abstract fun getAttributes(): AttributeContainer
The attributes of the module to select the component from.
getCapabilitySelectors
Link copied to clipboard
@Incubating
abstract fun getCapabilitySelectors(): Set<CapabilitySelector>
Returns the set of capabilities that are requested for this component.
getDisplayName
Link copied to clipboard
abstract fun getDisplayName(): String
Returns a human-consumable display name for this selector.
getLibraryName
Link copied to clipboard
@Nullable
abstract fun getLibraryName(): @Nullable String
Return the library name of the selected library.
getProjectPath
Link copied to clipboard
abstract fun getProjectPath(): String
Return the project path of the selected library.
getRequestedCapabilities
Link copied to clipboard
abstract fun getRequestedCapabilities(): List<Capability>
The explicitly requested capabilities for this component.
getVariant
Link copied to clipboard
@Nullable
abstract fun getVariant(): @Nullable String
matchesStrictly
Link copied to clipboard
abstract fun matchesStrictly(identifier: ComponentIdentifier): Boolean
Checks if selector matches component identifier.