InstrumentationContext

public interface InstrumentationContext extends Serializable


Instrumentation context data that will be injected to AsmClassVisitorFactory on instantiation.

Summary

Public methods

abstract @NonNull Property<@NonNull Integer>

The asm api version to be passed to the ClassVisitor constructor.

Public methods

getApiVersion

@Input
abstract @NonNull Property<@NonNull IntegergetApiVersion()

The asm api version to be passed to the ClassVisitor constructor.

| AGP version | Corresponding ASM version |
|-------------|---------------------------|
| 4.2.0 - 7.0 | ASM7 |
| 7.1.0+ | ASM9 |