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
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."],[[["\u003cp\u003e\u003ccode\u003eResourceEvent\u003c/code\u003e is a base interface for Drive events related to a specific resource, such as changes to its content or metadata.\u003c/p\u003e\n"],["\u003cp\u003eThis interface extends \u003ccode\u003eDriveEvent\u003c/code\u003e and provides a method to retrieve the \u003ccode\u003eDriveId\u003c/code\u003e of the resource that triggered the event.\u003c/p\u003e\n"],["\u003cp\u003eKey subclasses of \u003ccode\u003eResourceEvent\u003c/code\u003e include \u003ccode\u003eChangeEvent\u003c/code\u003e and \u003ccode\u003eCompletionEvent\u003c/code\u003e, signaling changes to a resource's contents or the completion of an action.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use \u003ccode\u003eResourceEvent\u003c/code\u003e and its subclasses to monitor changes and actions related to specific Drive resources in their applications.\u003c/p\u003e\n"]]],["`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"],null,["# ResourceEvent\n\npublic interface **ResourceEvent** implements [DriveEvent](/android/reference/com/google/android/gms/drive/events/DriveEvent) \n\n|---|---|---|\n| Known Indirect Subclasses [ChangeEvent](/android/reference/com/google/android/gms/drive/events/ChangeEvent), [CompletionEvent](/android/reference/com/google/android/gms/drive/events/CompletionEvent) |-------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [ChangeEvent](/android/reference/com/google/android/gms/drive/events/ChangeEvent) | Sent when a [DriveResource](/android/reference/com/google/android/gms/drive/DriveResource) has had a change to its [DriveContents](/android/reference/com/google/android/gms/drive/DriveContents) or [Metadata](/android/reference/com/google/android/gms/drive/Metadata). | | [CompletionEvent](/android/reference/com/google/android/gms/drive/events/CompletionEvent) | An event delivered after the client requests a completion notification using [setNotifyOnCompletion(boolean)](/android/reference/com/google/android/gms/drive/ExecutionOptions.Builder#setNotifyOnCompletion(boolean)) and that action has either succeeded or failed on the server. | |||\n\nBase interface for [DriveEvent](/android/reference/com/google/android/gms/drive/events/DriveEvent)\ntypes related to a specific resource. \n\n### Inherited Constant Summary\n\nFrom interface android.os.Parcelable \n\n|-----|-------------------------------|---|\n| int | CONTENTS_FILE_DESCRIPTOR | |\n| int | PARCELABLE_WRITE_RETURN_VALUE | |\n\n### Public Method Summary\n\n|-----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [DriveId](/android/reference/com/google/android/gms/drive/DriveId) | [getDriveId](/android/reference/com/google/android/gms/drive/events/ResourceEvent#getDriveId())() Returns the id of the Drive resource that triggered the event. |\n\n### Inherited Method Summary\n\nFrom interface android.os.Parcelable \n\n|---------------|--------------------------------------------------------------------------------------------------|\n| abstract int | describeContents() |\n| abstract void | writeToParcel([Parcel](//developer.android.com/reference/android/os/Parcel.html) arg0, int arg1) |\n\nPublic Methods\n--------------\n\n#### public abstract [DriveId](/android/reference/com/google/android/gms/drive/DriveId)\n**getDriveId** ()\n\nReturns the id of the Drive resource that triggered the event."]]