com.google.android.gms.drive.DriveResource |
Known Indirect Subclasses
|
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 resource.
| |||||||||||
This method is deprecated.
Use
addChangeListener(GoogleApiClient, ChangeListener)
| |||||||||||
Adds a change subscription for this resource that will deliver events to the application
event service.
| |||||||||||
Returns the DriveId that uniquely identifies this resource.
| |||||||||||
Retrieves the Metadata 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.
| |||||||||||
This method is deprecated.
Use
removeChangeListener(GoogleApiClient, ChangeListener)
| |||||||||||
Removes a listener for changes on this resource that was previously added by
addChangeListener(GoogleApiClient, ChangeListener) . | |||||||||||
Removes any existing change subscription for this resource.
| |||||||||||
Sets the parents of this resource.
| |||||||||||
Updates the Metadata that is associated with this resource with the changes described
in the
MetadataChangeSet . |
Adds a new listener for changes on this resource. The listener will remain active for
the duration of the current GoogleApiClient
connection or until the
removeChangeListener(GoogleApiClient, ChangeListener)
method is called with the same listener argument.
This method is deprecated.
Use addChangeListener(GoogleApiClient, ChangeListener)
Adds a new listener for changes on this resource. The listener will remain active for
the duration of the current GoogleApiClient
connection or until the
removeChangeListener(GoogleApiClient, ChangeListener)
method is called with the same listener argument.
Adds a change subscription for this resource that will deliver events to the application
event service. The event service class implementation should contain an
implementation of ChangeListener
and be
exported in the application manifest. The subscription is persistent until the next
device reboot and will be active until the removeChangeSubscription(GoogleApiClient)
method is
called on the same resource.
Retrieves the Metadata 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. |
---|
release()
when you're done with the result.
This method is deprecated.
Use removeChangeListener(GoogleApiClient, ChangeListener)
Removes a listener for changes on this resource that was previously added by
addChangeListener(GoogleApiClient, ChangeListener)
.
Removes a listener for changes on this resource that was previously added by
addChangeListener(GoogleApiClient, ChangeListener)
.
Removes any existing change subscription for this resource.
Sets the parents of this resource. If successful, the resource parent set will be changed to the one specified in the parameter. The existing parent set will be overwritten. The caller must make sure that the set contains all intended parents of the resource, including existing parents that should remain as parents.
The parent set must contain at least one parent. All parents must be folders.
If this resource is in the App Folder or in one of its subfolders, all parents must also belong to the App Folder or one of its subfolders.
If this resource is outside the App Folder every parent must also be outside the App Folder.
This method is a generalized way of moving resources between folders.
apiClient | The GoogleApiClient to service the call. |
---|---|
parentIds | The non-empty set of parents to move the item to. Do NOT modify the set after calling this method. |
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. |