Class DefaultPreviewLoader.Builder
java.lang.Object
com.brightcove.player.mediacontroller.DefaultPreviewLoader.Builder
- Enclosing class:
- DefaultPreviewLoader
The
DefaultPreviewLoader Builder.-
Constructor Summary
ConstructorsConstructorDescriptionBuilder(android.content.Context context) InstantiateDefaultPreviewLoader.Builder -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theDefaultPreviewLoaderinstancesetNumberOfImagesToPrefetch(int numberOfImagesToPrefetch) Sets the max number of images that will be prefetch as soon as theThumbnailDocumentis set throughPreviewLoader.setThumbnailDocument(ThumbnailDocument).setPicasso(com.squareup.picasso.Picasso picasso) Sets a customizedPicassoinstance 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 customizedPicassoinstance 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 theThumbnailDocumentis set throughPreviewLoader.setThumbnailDocument(ThumbnailDocument).- Parameters:
numberOfImagesToPrefetch- the number of images to prefetch- Returns:
- this Builder
-
build
Builds theDefaultPreviewLoaderinstance- Returns:
- the
DefaultPreviewLoaderinstance
-