Package org.robolectric.shadows
Class StreamConfigurationMapBuilder
- java.lang.Object
-
- org.robolectric.shadows.StreamConfigurationMapBuilder
-
public final class StreamConfigurationMapBuilder extends Object
Builder for StreamConfigurationMap
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StreamConfigurationMapBuilder
addOutputSize(int format, Size outputSize)
Adds an output size to be returned byStreamConfigurationMap.getOutputSizes(java.lang.Class<T>)
for the provided format.StreamConfigurationMapBuilder
addOutputSize(Size outputSize)
Adds an output size to be returned byStreamConfigurationMap.getOutputSizes(java.lang.Class<T>)
.StreamConfigurationMap
build()
Builds a StreamConfigurationMap based on data previously added to this builder.static StreamConfigurationMapBuilder
newBuilder()
Create a newStreamConfigurationMapBuilder
.
-
-
-
Method Detail
-
newBuilder
public static StreamConfigurationMapBuilder newBuilder()
Create a newStreamConfigurationMapBuilder
.
-
addOutputSize
public StreamConfigurationMapBuilder addOutputSize(int format, Size outputSize)
Adds an output size to be returned byStreamConfigurationMap.getOutputSizes(java.lang.Class<T>)
for the provided format.The provided format must be one of the formats defined in
ImageFormat
orPixelFormat
.
-
addOutputSize
public StreamConfigurationMapBuilder addOutputSize(Size outputSize)
Adds an output size to be returned byStreamConfigurationMap.getOutputSizes(java.lang.Class<T>)
.Calling this method is equivalent to calling
addOutputSize(int,android.util.Size)
with formatImageFormat#PRIVATE
.
-
build
public StreamConfigurationMap build()
Builds a StreamConfigurationMap based on data previously added to this builder.
-
-