Schedule image downloading/displaying in Glance widget with WorkManager API.
Every 15 minutes a new image is downloaded from the api and placed in the app widget. I wrote an article about it in Medium.
Make sure you first grab an API key from UnSplash API and then place it in your local.properties
file like so
CLIENT_ID = "your_api_key"