В настоящее время я использую Retrofit 2
, и я хочу загрузить фотографию на свой сервер.
Я знаю, что более старая версия использует класс TypedFile
для загрузки. И если мы хотим использовать индикатор выполнения с ним, мы должны переопределить метод writeTo
в классе TypedFile
.
Можно ли показывать прогресс при использовании библиотеки Retrofit 2
?