AI-generated Key Takeaways
-
ChangeEvent is sent when a DriveResource has changes to its DriveContents or Metadata.
-
It provides methods to check if the resource has been deleted, if its content has changed, or if its metadata has changed.
-
The event includes the DriveId of the resource that triggered the change.
-
ChangeEvent implements the Parcelable interface.
Sent when a DriveResource
has had a change to its DriveContents
or Metadata. Refer to
DriveEvent
for additional information about event listeners.
Refer to DriveEvent
for general information about event listeners and
addChangeListener(DriveResource, OnChangeListener) for how to create them.
Inherited Constant Summary
Field Summary
| public static final Creator<ChangeEvent> | CREATOR |
Public Method Summary
| DriveId |
getDriveId()
Returns the id of the Drive resource that triggered the event.
|
| boolean |
hasBeenDeleted()
Returns
true if the resource has been deleted.
|
| boolean |
hasContentChanged()
Returns
true if the content has changed for this resource.
|
| boolean |
hasMetadataChanged()
Returns
true if the metadata has changed for this resource.
|
| String |
toString()
|
| void |
writeToParcel(Parcel dest, int
flags)
|
Inherited Method Summary
Fields
public static final Creator<ChangeEvent> CREATOR
Public Methods
public DriveId getDriveId ()
Returns the id of the Drive resource that triggered the event.
public boolean hasBeenDeleted ()
Returns true if the resource has been deleted.
public boolean hasContentChanged ()
Returns true if the content has changed for this resource.
public boolean hasMetadataChanged ()
Returns true if the metadata has changed for this resource.