Package org.robolectric.shadows
Class StreamConfigurationMapBuilder
java.lang.Object
org.robolectric.shadows.StreamConfigurationMapBuilder
public final class StreamConfigurationMapBuilder extends Object
Builder for StreamConfigurationMap
-
Method Summary
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 Details
-
newBuilder
Create a newStreamConfigurationMapBuilder
. -
addOutputSize
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
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
Builds a StreamConfigurationMap based on data previously added to this builder.
-