-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fbandroid/libraries/fresco/imagepipeline/src/main/java/com/facebook/i…
…magepipeline/producers/BaseNetworkFetcher.java Reviewed By: oprisnik Differential Revision: D39767602 fbshipit-source-id: fbc0a5e016c47bbd3f45675c2449341e740beae5
- Loading branch information
1 parent
d77435c
commit e9224ea
Showing
2 changed files
with
26 additions
and
40 deletions.
There are no files selected for viewing
40 changes: 0 additions & 40 deletions
40
imagepipeline/src/main/java/com/facebook/imagepipeline/producers/BaseNetworkFetcher.java
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
imagepipeline/src/main/java/com/facebook/imagepipeline/producers/BaseNetworkFetcher.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
package com.facebook.imagepipeline.producers | ||
|
||
/** | ||
* Base class for [NetworkFetcher]. | ||
* | ||
* Intermediate results are propagated. | ||
* | ||
* {#code getExtraMap} returns null. | ||
*/ | ||
abstract class BaseNetworkFetcher<FETCH_STATE : FetchState?> : NetworkFetcher<FETCH_STATE> { | ||
|
||
override fun shouldPropagate(fetchState: FETCH_STATE): Boolean = true | ||
|
||
override fun onFetchCompletion(fetchState: FETCH_STATE, byteSize: Int) { | ||
// no-op | ||
} | ||
|
||
override fun getExtraMap(fetchState: FETCH_STATE, byteSize: Int): Map<String, String>? = null | ||
} |