public static interface EventListener.Factory
As of OkHttp 3.9, this feature is an unstable preview: the API is subject to change, and the implementation is incomplete. We expect that OkHttp 3.10 or 3.11 will finalize this API. Until then, expect API and behavior changes when you update your OkHttp dependency.
| Modifier and Type | Method and Description |
|---|---|
EventListener |
create(Call call)
Creates an instance of the
EventListener for a particular Call. |
EventListener create(Call call)
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(Request).
It is an error for implementations to issue any mutating operations on the
call instance from this method.
Copyright © 2017. All Rights Reserved.