How to set timeout for ImageRequest #1531
-
Hello everyone, Thanks, |
Beta Was this translation helpful? Give feedback.
Answered by
colinrtwhite
Dec 5, 2022
Replies: 2 comments 1 reply
-
Not directly, but you can set any network properties (including request timeouts) using an OkHttp interceptor. You'll have to create an |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mesudemre
-
@colinrtwhite @mesudemre Just a silly doubt, how about wrapping the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not directly, but you can set any network properties (including request timeouts) using an OkHttp interceptor. You'll have to create an
OkHttpClient
, add the interceptor, then pass it toImageLoader.Builder.okHttpClient
.