AAC LiveData
The LiveData extension package for Fuel.

Installation

You can download and install fuel-livedata with Maven and Gradle. The livedata package has the following dependencies:
1
implementation 'com.github.kittinunf.fuel:fuel:<latest-version>'
2
implementation 'com.github.kittinunf.fuel:fuel-livedata:<latest-version>'
Copied!

Usage

See FuelLiveData.kt

LiveData Response

  • Fuel supports LiveData
    1
    Fuel.get("www.example.com/get")
    2
    .liveDataResponse()
    3
    .observe(this) { /* do something */ }
    Copied!