okhttp / okhttp3 / EventListener / Factory / create

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.

This method is invoked after the call is created. See OkHttpClient.newCall.

It is an error for implementations to issue any mutating operations on the call instancefrom this method.