java.lang.Object | |
↳ | com.google.android.gms.drive.Metadata |
The details of a Drive file or folder.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | CONTENT_AVAILABLE_LOCALLY | The content is available on the device. | |||||||||
int | CONTENT_NOT_AVAILABLE_LOCALLY | The content is not available on the device. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a link for opening the file using a relevant Google editor or viewer.
| |||||||||||
Returns
CONTENT_NOT_AVAILABLE_LOCALLY when the content is not available on
the device or CONTENT_AVAILABLE_LOCALLY when the content is available on the
device. | |||||||||||
Returns the create time for this resource.
| |||||||||||
A short description of the file.
| |||||||||||
Returns the id of the resource
| |||||||||||
A link for embedding the file.
| |||||||||||
The file extension used when downloading this file.
| |||||||||||
The size of the file in bytes.
| |||||||||||
Returns the last time this resource was viewed by the user.
| |||||||||||
Returns the MIME type of the resource
| |||||||||||
Returns the last time this resource was modified by the user.
| |||||||||||
Returns the last time this resource was modified by anyone.
| |||||||||||
The original filename if the file was uploaded manually, or the original title if the file
was inserted through the API.
| |||||||||||
The number of quota bytes used by this file.
| |||||||||||
Returns the time at which this resource was shared with the user.
| |||||||||||
Returns the title of the resource
| |||||||||||
A link for downloading the content of the file in a browser using cookie based
authentication.
| |||||||||||
A link only available on public folders for viewing their static web assets (HTML, CSS, JS,
etc) via Google Drive's Website Hosting.
| |||||||||||
Returns true if this resource can be edited by the current user.
| |||||||||||
Returns true if this Metadata is for a folder.
| |||||||||||
Returns true if this resource is in the Application Folder.
| |||||||||||
Returns true if the file can be pinned.
| |||||||||||
Returns true if this resource has been pinned (a request has been made to make the content
available offline).
| |||||||||||
Whether viewers are prevented from downloading this file.
| |||||||||||
Returns true if this resource is a shared resource.
| |||||||||||
Returns true if this resource is starred by the user.
| |||||||||||
Returns true if this resource has been trashed.
| |||||||||||
Whether this file has been viewed by this user.
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||||||||||||||||||||||||
![]()
|
The content is available on the device.
The content is not available on the device.
Returns a link for opening the file using a relevant Google editor or viewer.
Returns CONTENT_NOT_AVAILABLE_LOCALLY
when the content is not available on
the device or CONTENT_AVAILABLE_LOCALLY
when the content is available on the
device.
Returns the create time for this resource.
A short description of the file.
A link for embedding the file.
The file extension used when downloading this file.
The size of the file in bytes.
This is only populated for files with content stored in Drive.
Returns the last time this resource was viewed by the user.
Returns the MIME type of the resource
Returns the last time this resource was modified by the user.
Returns the last time this resource was modified by anyone.
The original filename if the file was uploaded manually, or the original title if the file was inserted through the API.
The number of quota bytes used by this file.
Returns the time at which this resource was shared with the user.
Returns the title of the resource
A link for downloading the content of the file in a browser using cookie based authentication.
A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
Returns true if this resource can be edited by the current user.
Returns true if this Metadata is for a folder.
Returns true if this resource is in the Application Folder.
The App Folder contains hidden files stored in a user's Drive that are only accessible to the creating app. @see https://developers.google.com/drive/appdata
Returns true if the file can be pinned. Not all shortcut app MIME types are pinnable.
Returns true if this resource has been pinned (a request has been made to make the content available offline).
Whether viewers are prevented from downloading this file.
Returns true if this resource is a shared resource.
Returns true if this resource is starred by the user.
Returns true if this resource has been trashed.
Whether this file has been viewed by this user.