Play Core Library: Your App's Runtime API to the Play Store

The Play Core Library is your app's direct line to the Google Play Store at runtime. Use it to request features like in-app updates, on-demand modules, or user reviews without leaving the app.
WHY IT EXISTS To give developers a standard, in-app way to communicate with the Google Play Store after installation. This enables dynamic features and smoother user experiences, like updating an app without forcing the user to visit the store page or downloading features only when needed.
THE MENTAL MODEL Think of the Play Core Library as a special remote control for your app. After installation, your app can use this remote to ask the Google Play Store to perform actions on its behalf, such as "Please download this new feature module" or "Is it a good time to ask the user for a review?".
HOW IT WORKS The library provides a set of APIs that your app calls. These calls communicate with the Play Store app running on the device. The Play Store then handles the request, which might involve showing UI to the user (like an update confirmation) or downloading components in the background. The results are returned to your app asynchronously via listeners or callbacks.
WHEN TO USE IT Use it for runtime interactions with Play Store services from within your app. Key use cases include: first, Play Feature Delivery for downloading dynamic feature modules to reduce initial install size; second, In-app Updates for prompting users to update; third, In-app Reviews for requesting a rating without leaving the app; and fourth, Play Asset Delivery for delivering large game assets on demand.
WHEN NOT TO USE IT This library is not for build-time or publishing tasks. Do not use it for configuring your app's manifest, signing your app bundle, or interacting with the Google Play Console APIs for publishing and analytics. Those have separate tools and Gradle plugins. It's strictly for runtime interactions on a user's device.
ONE CANONICAL EXAMPLE A news app could ship with only the core article-reading functionality. When a user tries to access the "Podcasts" section for the first time, the app uses Play Feature Delivery to download and install that feature module on demand. This keeps the initial app download small for all users, especially those who never listen to podcasts.
Read the original → developer.android.com
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.