public static final class DefaultPreviewLoader.Builder
extends java.lang.Object
DefaultPreviewLoader
Builder.Constructor and Description |
---|
Builder(android.content.Context context)
Instantiate
DefaultPreviewLoader.Builder |
Modifier and Type | Method and Description |
---|---|
DefaultPreviewLoader |
build()
Builds the
DefaultPreviewLoader instance |
DefaultPreviewLoader.Builder |
setNumberOfImagesToPrefetch(int numberOfImagesToPrefetch)
Sets the max number of images that will be prefetch as soon as the
ThumbnailDocument is set
through PreviewLoader.setThumbnailDocument(ThumbnailDocument) . |
DefaultPreviewLoader.Builder |
setPicasso(com.squareup.picasso.Picasso picasso)
Sets a customized
Picasso instance to request and load the images. |
public Builder(android.content.Context context)
DefaultPreviewLoader.Builder
context
- the Android contextpublic DefaultPreviewLoader.Builder setPicasso(com.squareup.picasso.Picasso picasso)
Picasso
instance to request and load the images.picasso
- the picasso instancepublic DefaultPreviewLoader.Builder setNumberOfImagesToPrefetch(int numberOfImagesToPrefetch)
ThumbnailDocument
is set
through PreviewLoader.setThumbnailDocument(ThumbnailDocument)
.numberOfImagesToPrefetch
- the number of images to prefetchpublic DefaultPreviewLoader build()
DefaultPreviewLoader
instanceDefaultPreviewLoader
instance