Class DefaultPreviewLoader.Builder
java.lang.Object
com.brightcove.player.mediacontroller.DefaultPreviewLoader.Builder
- Enclosing class:
- DefaultPreviewLoader
The
DefaultPreviewLoader
Builder.-
Constructor Summary
ConstructorDescriptionBuilder
(android.content.Context context) InstantiateDefaultPreviewLoader.Builder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds theDefaultPreviewLoader
instancesetNumberOfImagesToPrefetch
(int numberOfImagesToPrefetch) Sets the max number of images that will be prefetch as soon as theThumbnailDocument
is set throughPreviewLoader.setThumbnailDocument(ThumbnailDocument)
.setPicasso
(com.squareup.picasso.Picasso picasso) Sets a customizedPicasso
instance to request and load the images.
-
Constructor Details
-
Builder
public Builder(android.content.Context context) InstantiateDefaultPreviewLoader.Builder
- Parameters:
context
- the Android context
-
-
Method Details
-
setPicasso
Sets a customizedPicasso
instance to request and load the images.- Parameters:
picasso
- the picasso instance- Returns:
- this Builder
-
setNumberOfImagesToPrefetch
Sets the max number of images that will be prefetch as soon as theThumbnailDocument
is set throughPreviewLoader.setThumbnailDocument(ThumbnailDocument)
.- Parameters:
numberOfImagesToPrefetch
- the number of images to prefetch- Returns:
- this Builder
-
build
Builds theDefaultPreviewLoader
instance- Returns:
- the
DefaultPreviewLoader
instance
-