# InstrumentationScope

# InstrumentationScope

<br />

```
public enum InstrumentationScope extends Enum
```

<br />

|---|---|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [java.lang.Object](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html)                                                                                           |||
| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)                                                                                                           ||
|   | ↳ | [com.android.build.api.instrumentation.InstrumentationScope](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/instrumentation/InstrumentationScope) |

*** ** * ** ***

## Summary

|                                                                 ### Enum Values                                                                 |
|-------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------|
| [ALL](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/instrumentation/InstrumentationScope#ALL)         | Instrument the classes of the current project and its library dependencies. |
| [PROJECT](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/instrumentation/InstrumentationScope#PROJECT) | Instrument the classes of the current project only.                         |

|                                                                                                                            ### Public methods                                                                                                                            |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `final @`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[InstrumentationScope](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/instrumentation/InstrumentationScope) | [valueOf](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/instrumentation/InstrumentationScope#valueOf(kotlin.String))`(@`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)` value)` Returns the enum constant of this type with the specified name. |
| `final @`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` InstrumentationScope[]`                                                                                                                               | [values](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/instrumentation/InstrumentationScope#values())`()` Returns an array containing the constants of this enum type, in the order they're declared.                                                                                                                                                                                                    |

## Enum Values

### ALL

```
InstrumentationScope InstrumentationScope.ALL
```

Instrument the classes of the current project and its library dependencies.

This can't be applied to library projects, as instrumenting library dependencies will have no effect on library consumers.  

### PROJECT

```
InstrumentationScope InstrumentationScope.PROJECT
```

Instrument the classes of the current project only.

Libraries that this project depends on will not be instrumented.  

## Public methods

### valueOf

```
public final @NonNull InstrumentationScope valueOf(@NonNull String value)
```

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

```
public final @NonNull InstrumentationScope[] values()
```

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.