Class DefaultPreviewLoader.Builder
- java.lang.Object
-
- com.brightcove.player.mediacontroller.DefaultPreviewLoader.Builder
-
- Enclosing class:
- DefaultPreviewLoader
public static final class DefaultPreviewLoader.Builder extends java.lang.Object
TheDefaultPreviewLoader
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder(android.content.Context context)
InstantiateDefaultPreviewLoader.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultPreviewLoader
build()
Builds theDefaultPreviewLoader
instanceDefaultPreviewLoader.Builder
setNumberOfImagesToPrefetch(int numberOfImagesToPrefetch)
Sets the max number of images that will be prefetch as soon as theThumbnailDocument
is set throughPreviewLoader.setThumbnailDocument(ThumbnailDocument)
.DefaultPreviewLoader.Builder
setPicasso(com.squareup.picasso.Picasso picasso)
Sets a customizedPicasso
instance to request and load the images.
-
-
-
Constructor Detail
-
Builder
public Builder(android.content.Context context)
InstantiateDefaultPreviewLoader.Builder
- Parameters:
context
- the Android context
-
-
Method Detail
-
setPicasso
public DefaultPreviewLoader.Builder setPicasso(com.squareup.picasso.Picasso picasso)
Sets a customizedPicasso
instance to request and load the images.- Parameters:
picasso
- the picasso instance- Returns:
- this Builder
-
setNumberOfImagesToPrefetch
public DefaultPreviewLoader.Builder setNumberOfImagesToPrefetch(int numberOfImagesToPrefetch)
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
public DefaultPreviewLoader build()
Builds theDefaultPreviewLoader
instance- Returns:
- the
DefaultPreviewLoader
instance
-
-