My app is a photo organizer of photos taken with the default camera app. I want it to send photos to "trash", so they can later be restored from trash in the default photos app.
Deleting images fully is shown with an example in the API docs: https://developer.android.com/training/data-storage/shared/media#remove-item , but this deletes the image immediately and doesn't send the image to trash.
It looks like for a brief 1 month period in the beginning of 2019 there was a trash-method on MediaStore, but it was deprecated the month after: https://github.com/aosp-mirror/platform_frameworks_base/blame/2d330f6fa8bc0888a27bf1729844be8b0fe71c8b/core/java/android/provider/MediaStore.java#L843
What API do you use to send a photo taken with the camera app to trash?
Edit: Here's a screenshot to clarify what I mean by "trash".
There is no such API. Each app has its own private trash can implementation, you can't interact with it.
UPD: trash API is added in android R preview. See https://developer.android.com/reference/android/provider/MediaStore#createTrashRequest(android.content.ContentResolver,%20java.util.Collection%3Candroid.net.Uri%3E,%20boolean)