# TargetedNativeComponent

API Documentation: | `TargetedNativeComponent`

Note: This class is incubating and may change in a future version of Gradle.

A native component that can be configured to target certain variant dimensions. This functionality is a temporary workaround to eliminate configuration of unnecessary domain objects and tasks.

### Properties

No properties

### Methods

Method | Description
`targetBuildTypes(platformSelectors)` | Incubating Specifies the names of one or more `BuildType`s that this component should be built for.
`targetFlavors(flavorSelectors)` | Incubating Specifies the names of one or more `Flavor`s that this component should be built for.
`targetPlatforms(platformSelectors)` | Incubating Specifies the names of one or more `Platform`s that this component should be built for.

### Script blocks

No script blocks

### Method details

#### `void` `targetBuildTypes`(``String`...` platformSelectors)

Note: This method is incubating and may change in a future version of Gradle.

Specifies the names of one or more `BuildType`s that this component should be built for.

#### `void` `targetFlavors`(``String`...` flavorSelectors)

Note: This method is incubating and may change in a future version of Gradle.

Specifies the names of one or more `Flavor`s that this component should be built for.

#### `void` `targetPlatforms`(``String`...` platformSelectors)

Note: This method is incubating and may change in a future version of Gradle.

Specifies the names of one or more `Platform`s that this component should be built for.