DriveFile.trash(GoogleApiClient) method is gone

醉酒当歌 提交于 2019-12-11 19:18:06

问题


Android sample code has trash() method (see same code github)

DriveFile file = Drive.DriveApi.getFile(getGoogleApiClient(), result.getDriveId());
file.trash(getGoogleApiClient()).setResultCallback(trashCallback);

I use the latest google play service library (updated on March 17).

But DriveFile class does not contain trash() method.

How to trash file?

Must use Google-Drive-SDK for java?


回答1:


It looks like it was an OOPS. The code on Github disappeared with a commit msg "remove trashing activity". But at least it looks like it's coming soon. Meanwhile, I stick with this SO 22295903 solution. Messy, but at least something.



来源:https://stackoverflow.com/questions/22703040/drivefile-trashgoogleapiclient-method-is-gone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!