Android Kotlin – Make CRUD with Cloud Firestore (2)

We make a post about how to integrate android kotlin with Cloud Firestore before here. Now we will try to make a feature to update and delete data on Cloud Firestore, but.. make sure you have been knowed well our posting about ADD and VIEW data from Cloud Firestore..

Create Event for Update and Delete

We have a listview that show data from Cloud Firestore, when we do click on listview it will show an option for Update and Delete data. We will use Anko library make this feature, insert this code to MainActivity: