Exploring Paging3 — Part 1

JetPack Library with the power of Kotlin Flow

Siva Ganesh Kantamani
Programming Geeks

--

Photo by Luca Bravo on Unsplash

Takeaway from this article

In this article, you’ll learn how and why we need to use Paging3 — the jetpack library. You’ll also learn how it is different from its previous versions. You’ll also find a detailed guide on how to implement paging3 in MVVM architecture using Spotify API.

A GitHub repository with a working sample of including all the things that I discussed here is linked at the bottom of this article. Feel free to play with it.

Introduction

Paging is a Jetpack library designed to help developers load & display pages of data from massive datasets with minimal use of network and system resources.

The paging library can load the data from a remote source or local storage. Offline mode is essential for effective user experience; it’s recommended to get data from a remote source and save it locally. Then use the local storage as a single source of truth. Paging3 library covers all of this out of the box.

In addition to that, paging3 components are built to fit in the recommended Android App Architecture and also to provide better Kotlin support.

How is it different from previous versions?

--

--