本文整理汇总了Java中com.google.android.gms.drive.DriveResourceClient类的典型用法代码示例。如果您正苦于以下问题:Java DriveResourceClient类的具体用法?Java DriveResourceClient怎么用?Java DriveResourceClient使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DriveResourceClient类属于com.google.android.gms.drive包,在下文中一共展示了DriveResourceClient类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: RestoreAsyncTask
import com.google.android.gms.drive.DriveResourceClient; //导入依赖的package包/类
RestoreAsyncTask(final Context context, final DriveClient driveClient, final DriveResourceClient driveResourceClient,
final String driveId, final OnRestoreListener listener) throws RestoreException {
// Create a temporary file in app cache dir.
mFile = new File(context.getCacheDir(), "gdrive_cache.json");
mContextRef = new WeakReference<>(context);
mListener = listener;
mCancelled = new AtomicBoolean();
mEnded = new AtomicBoolean();
mDriveClient = driveClient;
mDriveResourceClient = driveResourceClient;
mDriveId = driveId;
/*if (!mFile.canWrite()) {
Log.e(TAG, "App Cache Dir unavailable.");
throw new RestoreException(context, R.string.backup_sd_card_unavailable);
}*/
}
示例2: RestoreDialog
import com.google.android.gms.drive.DriveResourceClient; //导入依赖的package包/类
RestoreDialog(@NonNull final Context context, @NonNull final DriveClient driveClient, @NonNull final DriveResourceClient driveResourceClient, @NonNull final String driveId, @NonNull final OnRestoreListener listener) throws RestoreException {
this(context);
mAsyncTask = (RestoreAsyncTask) new RestoreFromJsonAsyncTask(context, driveClient, driveResourceClient, driveId, listener).execute();
}
示例3: RestoreFromJsonAsyncTask
import com.google.android.gms.drive.DriveResourceClient; //导入依赖的package包/类
RestoreFromJsonAsyncTask(@NonNull final Context context, @NonNull final DriveClient driveClient, @NonNull final DriveResourceClient driveResourceClient,
@NonNull final String driveId, @NonNull final OnRestoreListener listener) throws RestoreException {
super(context, driveClient, driveResourceClient, driveId, listener);
}
示例4: getmDriveResourceClient
import com.google.android.gms.drive.DriveResourceClient; //导入依赖的package包/类
private DriveResourceClient getmDriveResourceClient() {
return mDriveResourceClient;
}
示例5: getDriveResourceClient
import com.google.android.gms.drive.DriveResourceClient; //导入依赖的package包/类
protected DriveResourceClient getDriveResourceClient() {
return mDriveResourceClient;
}
示例6: EditDriveFileAsyncTask
import com.google.android.gms.drive.DriveResourceClient; //导入依赖的package包/类
/**
* Constructor.
*
* @param driveResourceClient A connected {@link DriveResourceClient} instance.
*/
public EditDriveFileAsyncTask(DriveResourceClient driveResourceClient) {
this.driveResourceClient = driveResourceClient;
}