@@ -11,13 +11,10 @@ import com.facebook.imagepipeline.core.ImagePipelineFactory
11
11
import com.facebook.react.modules.fresco.ImageCacheControl
12
12
13
13
/* * Helper class for dealing with multisource images. */
14
- public object MultiSourceHelper {
14
+ internal object MultiSourceHelper {
15
15
@JvmStatic
16
- public fun getBestSourceForSize (
17
- width : Int ,
18
- height : Int ,
19
- sources : List <ImageSource >
20
- ): MultiSourceResult = getBestSourceForSize(width, height, sources, 1.0 )
16
+ fun getBestSourceForSize (width : Int , height : Int , sources : List <ImageSource >): MultiSourceResult =
17
+ getBestSourceForSize(width, height, sources, 1.0 )
21
18
22
19
/* *
23
20
* Chooses the image source with the size closest to the target image size.
@@ -29,7 +26,7 @@ public object MultiSourceHelper {
29
26
* best source; this is useful if the image will be displayed bigger than the view (e.g. zoomed)
30
27
*/
31
28
@JvmStatic
32
- public fun getBestSourceForSize (
29
+ fun getBestSourceForSize (
33
30
width : Int ,
34
31
height : Int ,
35
32
sources : List <ImageSource >,
@@ -78,16 +75,16 @@ public object MultiSourceHelper {
78
75
return MultiSourceResult (best, bestCached)
79
76
}
80
77
81
- public class MultiSourceResult (
78
+ class MultiSourceResult (
82
79
/* *
83
80
* Get the best result overall (closest in size to the view's size). Can be null if there were
84
81
* no sources to choose from, or if there were more than 1 sources but width/height were 0.
85
82
*/
86
- @JvmField public val bestResult : ImageSource ? ,
83
+ @JvmField val bestResult : ImageSource ? ,
87
84
/* *
88
85
* Get the best result (closest in size to the view's size) that is also in cache. If this
89
86
* would be the same as the source from [.getBestResult], this will return `null` instead.
90
87
*/
91
- @JvmField public val bestResultInCache : ImageSource ?
88
+ @JvmField val bestResultInCache : ImageSource ?
92
89
)
93
90
}
0 commit comments