https://kotlinlang.org logo
#android
Title
# android
r

rajesh

06/13/2021, 6:18 PM
How to use jetpack datastore with retrofit interceptor to append header on every request? Datastore doesn't seem to support return type without Flow api.
u

ursus

06/13/2021, 6:24 PM
interceptors are blocking, so you can only do that,
runBlocking
👍 1
m

Minhaj

06/14/2021, 4:12 AM
you can inject datastore object. and for return type you can use _datastore.anyvariable._*first()*
👍 1
109 Views