# Artifact.Category

# Artifact.Category

[View Source](https://cs.android.com/search?q=file:com/android/build/api/artifact/Artifact.kt+class:com.android.build.api.artifact.Artifact.Category)  
Added in 4.2.0  

<br />

```
enum Artifact.Category : Enum
```

<br />

|---|---|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                                       |||
| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)                                                                                  ||
|   | ↳ | [com.android.build.api.artifact.Artifact.Category](https://developer.android.com/reference/tools/gradle-api/8.5/com/android/build/api/artifact/Artifact.Category) |

*** ** * ** ***

Defines the kind of artifact type. this will be used to determine the output file location for instance.

## Summary

|                                                               ### Enum Values                                                                |
|----------------------------------------------------------------------------------------------------------------------------------------------|---|
| [GENERATED](https://developer.android.com/reference/tools/gradle-api/8.5/com/android/build/api/artifact/Artifact.Category#GENERATED)         |   |
| [INTERMEDIATES](https://developer.android.com/reference/tools/gradle-api/8.5/com/android/build/api/artifact/Artifact.Category#INTERMEDIATES) |   |
| [OUTPUTS](https://developer.android.com/reference/tools/gradle-api/8.5/com/android/build/api/artifact/Artifact.Category#OUTPUTS)             |   |
| [REPORTS](https://developer.android.com/reference/tools/gradle-api/8.5/com/android/build/api/artifact/Artifact.Category#REPORTS)             |   |
| [SOURCES](https://developer.android.com/reference/tools/gradle-api/8.5/com/android/build/api/artifact/Artifact.Category#SOURCES)             |   |

|                                                                                                  ### Public functions                                                                                                  |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Artifact.Category](https://developer.android.com/reference/tools/gradle-api/8.5/com/android/build/api/artifact/Artifact.Category)                                                                                     | [valueOf](https://developer.android.com/reference/tools/gradle-api/8.5/com/android/build/api/artifact/Artifact.Category#valueOf(kotlin.String))`(value: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Returns the enum constant of this type with the specified name. |
| [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)`<`[Artifact.Category](https://developer.android.com/reference/tools/gradle-api/8.5/com/android/build/api/artifact/Artifact.Category)`>` | [values](https://developer.android.com/reference/tools/gradle-api/8.5/com/android/build/api/artifact/Artifact.Category#values())`()` Returns an array containing the constants of this enum type, in the order they're declared.                                                                             |

## Enum Values

### GENERATED

```
val Artifact.Category.GENERATED: Artifact.Category
```  

### INTERMEDIATES

```
val Artifact.Category.INTERMEDIATES: Artifact.Category
```  

### OUTPUTS

```
val Artifact.Category.OUTPUTS: Artifact.Category
```  

### REPORTS

```
val Artifact.Category.REPORTS: Artifact.Category
```  

### SOURCES

```
val Artifact.Category.SOURCES: Artifact.Category
```  

## Public functions

### valueOf

Added in 4.2.0  

```
fun valueOf(value: String): Artifact.Category
```

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)  

|                                                            Throws                                                             |
|-------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------|
| [kotlin.IllegalArgumentException](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-argument-exception/index.html) | if this enum type has no constant with the specified name |

### values

Added in 4.2.0  

```
fun values(): Array<Artifact.Category>
```

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.