Drive | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Tools & Reference
  - Developer Stories

## Results

Loading...
Summary: Fields | Inherited Methods | [Expand All]
public final class

# Drive

extends Object

java.lang.Object
↳ | com.google.android.gms.drive.Drive

## Class Overview

The Drive API provides easy access to users' Google Drive contents. This API includes Activities to open or create files in users' Drives, as well as the ability to programmatically interact with contents, metadata, and the folder hierarchy.

To use Drive, enable the `API` and `SCOPE_FILE` in a `GoogleApiClient`. `DriveApi`, provides the entry point for interacting with Drive.

## Summary

Fields
public static final Api<Api.ApiOptions.NoOptions> | API | The API necessary to use Drive.
public static final DriveApi | DriveApi | The entry point for interacting with the Drive API.
public static final Scope | SCOPE_APPFOLDER | A Scope that gives 'drive.appfolder' access to a user's drive.
public static final Scope | SCOPE_FILE | A Scope that gives 'drive.file' access to a user's drive.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)

## Fields

#### public static final Api<Api.ApiOptions.NoOptions> API

The API necessary to use Drive. Provide this as an API `addApi(Api)`.

#### public static final DriveApi DriveApi

The entry point for interacting with the Drive API.

#### public static final Scope SCOPE_APPFOLDER

A Scope that gives 'drive.appfolder' access to a user's drive. This scope gives access to files that have been created by the app in the App Folder.

This scope can be provided in `addScope(Scope)`

#### public static final Scope SCOPE_FILE

A Scope that gives 'drive.file' access to a user's drive. This scope give per-file access to files that have been created with, or specifically opened by the app.

This scope can be provided in `addScope(Scope)`