# ScopedArtifacts.Scope

# ScopedArtifacts.Scope

[View Source](https://cs.android.com/search?q=file:com/android/build/api/variant/ScopedArtifacts.kt+class:com.android.build.api.variant.ScopedArtifacts.Scope)  
Added in 7.4.0  

<br />

```
enum ScopedArtifacts.Scope : 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.variant.ScopedArtifacts.Scope](https://developer.android.com/reference/tools/gradle-api/8.10/com/android/build/api/variant/ScopedArtifacts.Scope) |

*** ** * ** ***

Defines possible scopes.

## Summary

|                                                           ### Enum Values                                                            |
|--------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------|
| [ALL](https://developer.android.com/reference/tools/gradle-api/8.10/com/android/build/api/variant/ScopedArtifacts.Scope#ALL)         | Full scope, including project scope, imported projects and all external dependencies. |
| [PROJECT](https://developer.android.com/reference/tools/gradle-api/8.10/com/android/build/api/variant/ScopedArtifacts.Scope#PROJECT) | Project scope, not including imported projects nor external dependencies.             |

|                                                                                                      ### Public functions                                                                                                      |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ScopedArtifacts.Scope](https://developer.android.com/reference/tools/gradle-api/8.10/com/android/build/api/variant/ScopedArtifacts.Scope)                                                                                     | [valueOf](https://developer.android.com/reference/tools/gradle-api/8.10/com/android/build/api/variant/ScopedArtifacts.Scope#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)`<`[ScopedArtifacts.Scope](https://developer.android.com/reference/tools/gradle-api/8.10/com/android/build/api/variant/ScopedArtifacts.Scope)`>` | [values](https://developer.android.com/reference/tools/gradle-api/8.10/com/android/build/api/variant/ScopedArtifacts.Scope#values())`()` Returns an array containing the constants of this enum type, in the order they're declared.                                                                             |

## Enum Values

### ALL

```
val ScopedArtifacts.Scope.ALL: ScopedArtifacts.Scope
```

Full scope, including project scope, imported projects and all external dependencies.  

### PROJECT

```
val ScopedArtifacts.Scope.PROJECT: ScopedArtifacts.Scope
```

Project scope, not including imported projects nor external dependencies.  

## Public functions

### valueOf

Added in 7.4.0  

```
fun valueOf(value: String): ScopedArtifacts.Scope
```

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 7.4.0  

```
fun values(): Array<ScopedArtifacts.Scope>
```

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.