- Notifications
You must be signed in to change notification settings - Fork374
Fluent syntax
Daniel Luberda edited this pageDec 18, 2015 ·3 revisions
FFImageLoading uses aFluent syntax to chain calls.
Any request goes through ImageService.LoadFromXxx methods. These return a TaskParameter which offers the Fluent API. The TaskParameter can be configured untilInto method is called.
Example:
ImageService.LoadUrl("http://www.funchap.com/wp-content/uploads/2014/05/help-dog-picture.jpg").LoadingPlaceholder("loading.png").ErrorPlaceholder("error.png").Retry(3,200).Into(_imageView);
ImageView on iOS isUIImageView, on Android:ImageViewAsync (ImageView derivative) and on Windows:Image
For more information about the API visit the relevant pages.