Stay organized with collections
Save and categorize content based on your preferences.
InstrumentationContext
@Incubating interface InstrumentationContext : Serializable
Instrumentation context data that will be injected to AsmClassVisitorFactory on instantiation.
Summary
Properties
apiVersion
abstract val apiVersion: Property<Int>
The asm api version to be passed to the ClassVisitor constructor.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# InstrumentationContext\n======================\n\n```\n@Incubating interface InstrumentationContext : Serializable\n```\n\n|-------------------------------------------------------------------|\n| [com.android.build.api.instrumentation.InstrumentationContext](#) |\n\nInstrumentation context data that will be injected to [AsmClassVisitorFactory](/reference/tools/gradle-api/7.0/com/android/build/api/instrumentation/AsmClassVisitorFactory) on instantiation.\n\nSummary\n-------\n\n| ### Properties ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)\\\u003c[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)\\\u003e | [apiVersion](#apiVersion:org.gradle.api.provider.Property) The asm api version to be passed to the [ClassVisitor](#) constructor. |\n\nProperties\n----------\n\n### apiVersion\n\n```\nabstract val apiVersion: Property\u003cInt\u003e\n```\n\nThe asm api version to be passed to the [ClassVisitor](#) constructor."]]