public static ImageRequestBuilder fromRequest ( ImageRequest imageRequest ) { return ImageRequestBuilder . newBuilderWithSource ( imageRequest . getSourceUri ( ) ) . setImageDecodeOptions ( imageRequest . getImageDecodeOptions ( ) ) . setBytesRange ( imageRequest . getBytesRange ( ) ) . setCacheChoice ( imageRequest . getCacheChoice ( ) ) . setLocalThumbnailPreviewsEnabled ( imageRequest . getLocalThumbnailPreviewsEnabled ( ) ) . setLowestPermittedRequestLevel ( imageRequest . getLowestPermittedRequestLevel ( ) ) . setPostprocessor ( imageRequest . getPostprocessor ( ) ) . setProgressiveRenderingEnabled ( imageRequest . getProgressiveRenderingEnabled ( ) ) . setRequestPriority ( imageRequest . getPriority ( ) ) . setResizeOptions ( imageRequest . getResizeOptions ( ) ) . setRequestListener ( imageRequest . getRequestListener ( ) ) . setRotationOptions ( imageRequest . getRotationOptions ( ) ) . setShouldDecodePrefetches ( imageRequest . shouldDecodePrefetches ( ) ) ; }
Creates a new request builder instance with the same parameters as the imageRequest passed in .