ResourceEvent

  • ResourceEvent is a base interface for DriveEvent types related to a specific resource.

  • ResourceEvent has known indirect subclasses ChangeEvent and CompletionEvent.

  • The ChangeEvent is sent when a DriveResource's content or metadata changes.

  • The CompletionEvent is delivered after a client requests and an action succeeds or fails on the server.

  • ThegetDriveId() method returns the ID of the Drive resource that triggered the event.

public interfaceResourceEvent implementsDriveEvent
Known Indirect Subclasses
ChangeEventSent when aDriveResource has had a change to itsDriveContents orMetadata
CompletionEventAn event delivered after the client requests a completion notification using setNotifyOnCompletion(boolean) and that action has either succeeded or failed on the server. 

Base interface forDriveEvent types related to a specific resource.

Inherited Constant Summary

From interface android.os.Parcelable
intCONTENTS_FILE_DESCRIPTOR
intPARCELABLE_WRITE_RETURN_VALUE

Public Method Summary

abstractDriveId
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 abstractDriveIdgetDriveId()

Returns the id of the Drive resource that triggered the event.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-10-31 UTC.