com.google.android.gms.drive.DriveFolder |
Note: The Google Drive Android API is currently in developer preview. Applications compiled using this version of the API will continue to operate on devices using future versions of Google Play services; however, changes to the API are expected in future releases.
A folder in Drive. This class provides access to list or query the contents of the folder, or create new resources within it.
To retrieve a DriveFolder from a known drive id, use ERROR(/DriveApi#getFolder(DriveId))
.
Nested Classes | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DriveFolder.DriveFileResult | A result that contains a DriveFile. | ||||||||||||||||
DriveFolder.DriveFolderResult | A result that contains a DriveFolder. | ||||||||||||||||
DriveFolder.OnChildrenRetrievedCallback | A callback that provides the result for a get children request. | ||||||||||||||||
DriveFolder.OnCreateFileCallback | A callback that provides the result for a create file request. | ||||||||||||||||
DriveFolder.OnCreateFolderCallback | A callback that provides the result for a create folder request. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | MIME_TYPE | The MIME type associated with folder resources. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new file within this folder, with the provided initial metadata and contents.
| |||||||||||
Creates a new folder within this folder, with the provided initial metadata.
| |||||||||||
Retrieves a collection of metadata for the direct children of this folder.
| |||||||||||
Retrieves a collection of metadata for the all authorized direct children of this folder.
|
[Expand]
Inherited Methods | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]()
|
The MIME type associated with folder resources.
Creates a new file within this folder, with the provided initial metadata and contents.
apiClient | The GoogleApiClient to service the call. The client must be
connected before invoking this method. |
---|---|
changeSet | A set of metadata fields that should be initially set. This should minimally include a title and mime type. |
contents | The initial contents. |
Creates a new folder within this folder, with the provided initial metadata.
apiClient | The GoogleApiClient to service the call. The client must be
connected before invoking this method. |
---|---|
changeSet | A set of metadata fields that should be initially set. This should minimally include a title. The mime type will be set to the folder mime type. |
Retrieves a collection of metadata for the direct children of this folder. The result will include metadata for both files and folders.
apiClient | The GoogleApiClient to service the call. |
---|
Retrieves a collection of metadata for the all authorized direct children of this folder. Unless restricted by the query, the result will include metadata for both files and folders.
apiClient | The GoogleApiClient to service the call. |
---|---|
query | A query that will restrict the results of the retrieved children. |