# InstrumentationContext

# InstrumentationContext

```
@Incubating interface InstrumentationContext : Serializable
```

|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [com.android.build.api.instrumentation.InstrumentationContext](https://developer.android.com/reference/tools/gradle-api/4.2/com/android/build/api/instrumentation/InstrumentationContext#) |

Instrumentation context data that will be injected to [AsmClassVisitorFactory](https://developer.android.com/reference/tools/gradle-api/4.2/com/android/build/api/instrumentation/AsmClassVisitorFactory) on instantiation.

## Summary

|                                                                                                                                                                                                                                                                            ### Properties                                                                                                                                                                                                                                                                             ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| abstract [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)\> | [apiVersion](https://developer.android.com/reference/tools/gradle-api/4.2/com/android/build/api/instrumentation/InstrumentationContext#apiVersion:org.gradle.api.provider.Property) The asm api version to be passed to the [ClassVisitor](https://developer.android.com/reference/tools/gradle-api/4.2/com/android/build/api/instrumentation/InstrumentationContext#) constructor. |

## Properties

### apiVersion

```
abstract val apiVersion: Property<Int>
```

The asm api version to be passed to the [ClassVisitor](https://developer.android.com/reference/tools/gradle-api/4.2/com/android/build/api/instrumentation/InstrumentationContext#) constructor.