ResourceEvent
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
|
Base interface for DriveEvent
types related to a specific resource.
Inherited Constant Summary
From interface android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
Public Method Summary
abstract DriveId
|
getDriveId()
Returns the id of the Drive resource that triggered the event.
|
Inherited Method Summary
From interface android.os.Parcelable
abstract int |
describeContents()
|
abstract void |
writeToParcel( Parcel arg0,
int arg1)
|
Public Methods
public abstract DriveId
getDriveId ()
Returns the id of the Drive resource that triggered the event.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["`ResourceEvent` is a base interface for Drive events related to a specific resource, such as changes to its content or metadata."],["This interface extends `DriveEvent` and provides a method to retrieve the `DriveId` of the resource that triggered the event."],["Key subclasses of `ResourceEvent` include `ChangeEvent` and `CompletionEvent`, signaling changes to a resource's contents or the completion of an action."],["Developers can use `ResourceEvent` and its subclasses to monitor changes and actions related to specific Drive resources in their applications."]]],["`ResourceEvent` is a base interface for `DriveEvent` types, concerning a specific resource. It has two known subclasses: `ChangeEvent`, which signals changes to a `DriveResource`'s `DriveContents` or `Metadata`, and `CompletionEvent`, triggered after a completion notification request succeeds or fails. `ResourceEvent` includes the method `getDriveId()`, which returns the `DriveId` of the resource that caused the event. It also uses constants such as `CONTENTS_FILE_DESCRIPTOR` and `PARCELABLE_WRITE_RETURN_VALUE`.\n"]]