com.google.android.gms.drive.events
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.
[null,null,["Last updated 2024-10-31 UTC."],[[["The Drive Events API provides interfaces and classes for handling events related to Drive resources, such as changes to files or completion of actions."],["Key interfaces include `ChangeListener` (deprecated), `CompletionListener`, `DriveEvent`, `ListenerToken`, `OnChangeListener`, and `ResourceEvent`."],["Important classes include `ChangeEvent`, `CompletionEvent`, `DriveEventService`, and `OpenFileCallback`."],["`DriveEventService` is an abstract base class for handling all `DriveEvent` instances."],["Developers can use these components to monitor changes in Drive files and folders, track progress of file operations, and respond to events in real-time."]]],["The core content details interfaces and classes for handling Google Drive events. Key interfaces include `OnChangeListener` for detecting changes and `CompletionListener` for tracking task completion. `DriveEvent` and `ResourceEvent` are base interfaces for various event types. `ListenerToken` identifies registered listeners. Relevant classes are `ChangeEvent`, which signals resource changes; `CompletionEvent`, for completion notifications; `DriveEventService`, a base for handling all drive events and `OpenFileCallback`, to handle progress events on an active file content download. `ChangeListener` is deprecated.\n"]]