com.google.android.gms.drive.DriveResource |
![]()
|
A Resource represents a file or folder in Drive.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DriveResource.MetadataResult | Result that is returned in response to metadata requests. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a new listener for changes on this resources.
| |||||||||||
Returns the DriveId that uniquely identifies this resource.
| |||||||||||
Retrieves the Metadata that is associated with this resource.
| |||||||||||
Retrieves a collection of metadata for all of the parents of this resource that the calling
app has been authorized to view.
| |||||||||||
Removes a listener for changes on this resource that was previously added by
addChangeListener(GoogleApiClient, DriveEvent.Listener . | |||||||||||
Updates the Metadata that is associated with this resource with the changes described
in the
MetadataChangeSet . |
Adds a new listener for changes on this resources. The listener will remain active for
the duration of the current GoogleApiClient
connection or until the
removeChangeListener(GoogleApiClient, DriveEvent.Listener
method is called with the same listener argument.
Retrieves the Metadata that is associated with this resource.
apiClient | The GoogleApiClient to service the call. |
---|
Retrieves a collection of metadata for all of the parents of this resource that the calling app has been authorized to view.
apiClient | The GoogleApiClient to service the call. |
---|
Removes a listener for changes on this resource that was previously added by
addChangeListener(GoogleApiClient, DriveEvent.Listener
.
Updates the Metadata that is associated with this resource with the changes described
in the MetadataChangeSet
.
Note that the user must have edit access to update the metadata (see
isEditable()
). Also, the metadata of the root folder cannot be updated.
apiClient | The GoogleApiClient to service the call. The client must be
connected when this method is invoked. |
---|---|
changeSet | The set of changes that will be applied to the Metadata. Only include the specific fields that should be updated. |