DriveFile.trash(GoogleApiClient)方法了 [英] DriveFile.trash(GoogleApiClient) method is gone

查看:161
本文介绍了DriveFile.trash(GoogleApiClient)方法了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android的样本code的垃圾桶()方法(请参阅同code github上

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

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

我用的是最新的谷歌游戏服务库(更新3月17日)。

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

但DriveFile类不包含垃圾()方法。

But DriveFile class does not contain trash() method.

如何垃圾文件?

必须使用谷歌驱动器,SDK的Java?

Must use Google-Drive-SDK for java?

推荐答案

它看起来就像是一个OOPS。在GitHub上code。与一个提交味精失踪删除捣毁活动。但至少它看起来像它的即将推出。同时,我坚持这个<一个href=\"http://stackoverflow.com/questions/22295903/how-to-delete-a-file-on-google-drive-using-google-drive-android-api\">SO 22295903 解决方案。凌乱,但至少东西。

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.

这篇关于DriveFile.trash(GoogleApiClient)方法了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆