Package com.theoplayer.android.api.ads
Class MediaFile.Builder
-
- All Implemented Interfaces:
public final class MediaFile.Builder
The builder for MediaFile.
-
-
Constructor Summary
Constructors Constructor Description MediaFile.Builder()
Creates a builder for a MediaFile.
-
Method Summary
Modifier and Type Method Description final MediaFile.Builder
resourceURI(String resourceURI)
Sets the URI of the VAST content. final MediaFile.Builder
type(String type)
Sets the MIME type for the file container. final MediaFile.Builder
delivery(String delivery)
Sets the delivery type. final MediaFile.Builder
width(Integer width)
Sets the native width of the video file, in pixels. final MediaFile.Builder
height(Integer height)
Sets the native height of the video file, in pixels. final MediaFile
build()
Builds the MediaFile. -
-
Constructor Detail
-
MediaFile.Builder
MediaFile.Builder()
Creates a builder for a MediaFile.
-
-
Method Detail
-
resourceURI
final MediaFile.Builder resourceURI(String resourceURI)
Sets the URI of the VAST content.
-
type
final MediaFile.Builder type(String type)
Sets the MIME type for the file container.
-
delivery
final MediaFile.Builder delivery(String delivery)
Sets the delivery type.
-
width
final MediaFile.Builder width(Integer width)
Sets the native width of the video file, in pixels.
-
height
final MediaFile.Builder height(Integer height)
Sets the native height of the video file, in pixels.
-
-
-
-