当前位置: 首页>>代码示例>>Java>>正文


Java DriveResourceClient类代码示例

本文整理汇总了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);
    }*/
}
 
开发者ID:canyapan,项目名称:DietDiaryApp,代码行数:18,代码来源:RestoreDialog.java

示例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();
}
 
开发者ID:canyapan,项目名称:DietDiaryApp,代码行数:6,代码来源:RestoreDialog.java

示例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);
}
 
开发者ID:canyapan,项目名称:DietDiaryApp,代码行数:5,代码来源:RestoreDialog.java

示例4: getmDriveResourceClient

import com.google.android.gms.drive.DriveResourceClient; //导入依赖的package包/类
private DriveResourceClient getmDriveResourceClient() {
    return mDriveResourceClient;
}
 
开发者ID:canyapan,项目名称:DietDiaryApp,代码行数:4,代码来源:DriveBackupService.java

示例5: getDriveResourceClient

import com.google.android.gms.drive.DriveResourceClient; //导入依赖的package包/类
protected DriveResourceClient getDriveResourceClient() {
    return mDriveResourceClient;
}
 
开发者ID:googledrive,项目名称:android-conflict,代码行数:4,代码来源:BaseDemoActivity.java

示例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;
}
 
开发者ID:googledrive,项目名称:android-quickeditor,代码行数:9,代码来源:EditDriveFileAsyncTask.java


注:本文中的com.google.android.gms.drive.DriveResourceClient类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。