fuel-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>'

Usage

See FuelLiveData.kt

LiveData Response

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