Class Info |
|---|
public class Drive extends AbstractJsonClient Drive Kit implementation class, which manages files on drives, including file upload, download, search, and change detection. AbstractJsonClient: abstract JSON client. |
Qualifier and Type | Class Name and Description |
|---|---|
class | Declaration of the Drive.About class. |
static class | Class for constructing a Drive.Builder object. |
class | Declaration of the Drive.Changes class. |
class | Declaration of the Drive.Channels class. |
class | Declaration of the Drive.Comments class. |
class | Declaration of the Drive.Files class. |
class | Declaration of the Drive.HistoryVersions class. |
class | Declaration of the Drive.Permissions class. |
class | Declaration of the Drive.Replies class. |
Constructor Name |
|---|
Drive(DriveCredential credential, Context context) Constructs a Drive object. |
Constructor Name |
|---|
Drive(Drive.Builder builder) Constructs a Drive object. |
Qualifier and Type | Method Name and Description |
|---|---|
about() Obtains an object for creating requests from the Drive.About class. | |
batch() Obtains the batch API of Drive Kit. (This method is provided by the parent class and can be directly called.) | |
changes() Obtains an object for creating requests from the Drive.Changes class. | |
channels() Obtains an object for creating requests from the Drive.Channels class. | |
comments() Obtains an object for creating requests from the Drive.Comments class. | |
files() Obtains an object for creating requests from the Drive.Files class. | |
| Obtains an object for creating requests from the Drive.HistoryVersions class. | |
| Obtains an object for creating requests from the Drive.Permissions class. | |
replies() Obtains an object for creating requests from the Drive.Replies class. |
Qualifier and Type | Method Name and Description |
|---|---|
void | initialize(AbstractClientRequest<?> httpClientRequest) |
Constructor |
|---|
public Drive(DriveCredential credential, android.content.Context context) Constructs a Drive object. |
Parameters
Name | Description |
|---|---|
credential | Device credential with information such as the user ID and country or region code. |
context | App context. |
Constructor |
|---|
protected Drive(Drive.Builder builder) Constructs a Drive object. |
Parameters
Name | Description |
|---|---|
builder | Builder for constructing an object. |
Method |
|---|
public Drive.About about() Obtains an object for creating requests from the Drive.About class. |
Returns
Type | Description |
|---|---|
Drive.About | A Drive.About object. |
Method |
|---|
public Drive.Changes changes() Obtains an object for creating requests from the Drive.Changes class. |
Returns
Type | Description |
|---|---|
Drive.Changes | The Drive.Changes.Subscribe class extends DriveRequest<Channel>. Therefore, the return result of the execute method is encapsulated as a Changes object. |
Method |
|---|
public Drive.Channels channels() Obtains an object for creating requests from the Drive.Channels class. |
Returns
Type | Description |
|---|---|
Drive.Channels | A Drive.Channels object. |
Method |
|---|
public Drive.Files files() Obtains an object for creating requests from the Drive.Files class. |
Returns
Type | Description |
|---|---|
Drive.Files | A Drive.Files object. |
Method |
|---|
public Drive.Comments comments() Obtains an object for creating requests from the Drive.Comments class. |
Returns
Type | Description |
|---|---|
Drive.Comments | A Drive.Comments object. |
Method |
|---|
public Drive.Replies replies() Obtains an object for creating requests from the Drive.Replies class. |
Returns
Type | Description |
|---|---|
Drive.Replies | A Drive.Replies object. |
Method |
|---|
public Drive.HistoryVersions historyVersions() Obtains an object for creating requests from the Drive.HistoryVersions class. |
Returns
Type | Description |
|---|---|
Drive.HistoryVersions | A Drive.HistoryVersions object. |
Method |
|---|
public final BatchRequest batch() Obtains the batch API of Drive Kit. (This method is provided by the parent class and can be directly called.) |
Returns
Type | Description |
|---|---|
A BatchRequest object. |
Method |
|---|
protected void initialize(AbstractClientRequest<?> httpClientRequest) Initializes AbstractClientRequest using ClientRequestInitializer. |
Parameters
Name | Description |
|---|---|
httpClientRequest | AbstractClientRequest object. |
Throws
Name | Description |
|---|---|
java.io.IOException | I/O exception thrown upon an API call failure. You can use the getMessage method to obtain the error description. |