Fuel - Documentation
  • README
  • Core
    • Fuel
  • Support
    • Android
    • Coroutines
    • AAC LiveData
    • RxJava
    • Reactor
  • Deserialization
    • Forge
    • Gson
    • Jackson
    • Json
    • Kotlinx-Serialization
    • Moshi
  • Legacy
    • v1.x.y
Powered by GitBook
On this page
  • Installation
  • Usage
  • LiveData Response

Was this helpful?

  1. Support

AAC LiveData

PreviousCoroutinesNextRxJava

Last updated 6 years ago

Was this helpful?

The LiveData extension package for Fuel.

Installation

You can and install fuel-livedata with Maven and Gradle. The livedata package has the following dependencies:

  • : 2.0.0

implementation 'com.github.kittinunf.fuel:fuel:<latest-version>'
implementation 'com.github.kittinunf.fuel:fuel-livedata:<latest-version>'

Usage

See FuelLiveData.kt

LiveData Response

  • Fuel supports

    Fuel.get("www.example.com/get")
      .liveDataResponse()
      .observe(this) { /* do something */ }
download
Fuel
AndroidX Livedata
LiveData