Skip to content

Commit 12642a2

Browse files
Artem Kholodnyifacebook-github-bot
Artem Kholodnyi
authored andcommitted
Relative URI modification without viewport data
Differential Revision: D73438063 fbshipit-source-id: 6df554ee50cf3d5ab31d6a207a496c5e1fe37880
1 parent 176f74f commit 12642a2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

urimod/src/main/java/com/facebook/fresco/urimod/UriModifierInterface.kt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ interface UriModifierInterface {
3535
contextChain: ContextChain? = null,
3636
): ModificationResult = ModificationResult.Disabled("Default")
3737

38+
/**
39+
* Modifies the network uri adaptively based on current network or other conditions. No need to
40+
* provide viewport or scale type since those are extracted from the uri itself.
41+
*/
42+
fun modifyNetworkUriAdaptively(
43+
uri: Uri,
44+
callerContext: Any?,
45+
contextChain: ContextChain? = null,
46+
): ModificationResult = ModificationResult.Disabled("Default")
47+
3848
fun unregisterReverseFallbackUri(uri: Uri)
3949

4050
sealed class ModificationResult(private val comment: String) {

0 commit comments

Comments
 (0)