okhttp / okhttp3 / EventListener / Factory

Factory

interface Factory

Functions

create

abstract fun create(call: Call): EventListener

Creates an instance of the EventListener for a particular Call. The returned EventListener instance will be used during the lifecycle of the call.

Companion Object Functions

invoke

operator fun invoke(block: (call: Call) -> EventListener): EventListener.Factory