FFImageLoading icon indicating copy to clipboard operation
FFImageLoading copied to clipboard

Timeout value when loading from url

Open alicint opened this issue 9 years ago • 3 comments

Hi Thanks for good library :)

I was wondering whether it is possible to modify the timeout value for loading images from a url? I mean the time the library waits for a response before deciding that this url is broken or not.

and btw what is the default timeout value? :)

Thanks. Ali

alicint avatar Apr 19 '17 09:04 alicint

Hi, @alicint

var config = new FFImageLoading.Config.Configuration() { HttpHeadersTimeout = 10, // Default value (seconds) HttpReadTimeout = 30 // Default value }; ImageService.Instance.Initialize(config);

You can set timeout's values in your project. Something like that (Vide supra)

I hope, it's that you need.

AndreiMisiukevich avatar May 04 '17 09:05 AndreiMisiukevich

yeah that is what I needed exactly, thanks 👍

alicint avatar May 04 '17 16:05 alicint

Thanks @AndreiMisiukevich 👍

daniel-luberda avatar May 08 '17 17:05 daniel-luberda