DevConsoleOkHttp

Java-friendly mirror of installDevConsole. Kotlin extension functions are not callable as instance methods from Java, so this object gives Java hosts the same one-call installer:

OkHttpClient client = DevConsoleOkHttp.install(new OkHttpClient.Builder(), DevConsole.networkRecorder())
.addInterceptor(new DevConsoleMockInterceptor(DevConsole.mockEngine()))
.build();

Functions

Link copied to clipboard
fun install(builder: OkHttpClient.Builder, recorder: NetworkTransactionRecorder, existingEventListenerFactory: EventListener.Factory? = null): OkHttpClient.Builder