# VariantOutput

# VariantOutput

<br />

```
interface VariantOutput : VariantOutputConfiguration
```

<br />

*** ** * ** ***

Defines a variant output.

## Summary

|                                                                                                                                                                                                                                                                                       ### Public properties                                                                                                                                                                                                                                                                                        ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)`<`[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`>` | [enable](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/VariantOutput#enable()) **This property is deprecated.**Replaced by enable                                                                                                                                                                                                                                  |
| [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)`<`[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`>` | [enabled](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/VariantOutput#enabled()) Returns a modifiable[Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)to enable or disable the production of this[VariantOutput](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/VariantOutput) |
| [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)`<`[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`?>`        | [versionCode](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/VariantOutput#versionCode()) Returns a modifiable[Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)representing the variant output version code.                                                                                                                |
| [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?>`  | [versionName](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/VariantOutput#versionName()) Returns a modifiable[Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)representing the variant output version name.                                                                                                                |

## Public properties

### enable

```
val enable: Property<Boolean>
```
| **This property is deprecated.**   
| Replaced by enable

Returns a modifiable[Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)to enable or disable the production of this[VariantOutput](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/VariantOutput)  

|                                                                                                                                                    Returns                                                                                                                                                     ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|
| [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)`<`[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`>` | a[Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)to enable or disable this output. |

### enabled

```
val enabled: Property<Boolean>
```

Returns a modifiable[Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)to enable or disable the production of this[VariantOutput](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/VariantOutput)  

|                                                                                                                                                    Returns                                                                                                                                                     ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|
| [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)`<`[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`>` | a[Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)to enable or disable this output. |

### versionCode

```
val versionCode: Property<Int?>
```

Returns a modifiable[Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)representing the variant output version code.

This will be initialized with the variant's merged flavor value or read from the manifest file if unset.  

### versionName

```
val versionName: Property<String?>
```

Returns a modifiable[Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)representing the variant output version name.

This will be initialized with the variant's merged flavor value, or it will be read from the manifest source file if it's not set via the DSL, or it will be null if it's also not set in the manifest.