@PublicSpi public interface InstrumentationState
Instrumentation implementation can create this as a stateful object that is then passed
to each instrumentation method, allowing state to be passed down with the request execution| Modifier and Type | Method and Description |
|---|---|
static <T extends InstrumentationState> |
ofState(InstrumentationState rawState)
This helper method allows you to cast from
InstrumentationState to a custom classes more easily. |
static <T extends InstrumentationState> T ofState(InstrumentationState rawState)
InstrumentationState to a custom classes more easily.T - for tworawState - the raw InstrumentationState