ResourceEvent | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Tools & Reference
  - Developer Stories

## Results

Loading...
Summary: Inherited Constants | Methods | Inherited Methods | [Expand All]
public interface

# ResourceEvent

implements DriveEvent

com.google.android.gms.drive.events.ResourceEvent

Known Indirect Subclasses ChangeEvent
ChangeEvent | Sent when a `DriveResource` has had a change to its `Contents` or `Metadata`.

## Class Overview

Base interface for `DriveEvent` types related to a specific resource.

## Summary

[Expand] Inherited Constants
From interface android.os.Parcelable
int | CONTENTS_FILE_DESCRIPTOR |
int | PARCELABLE_WRITE_RETURN_VALUE |
From interface com.google.android.gms.common.internal.safeparcel.SafeParcelable
String | NULL |
From interface com.google.android.gms.drive.events.DriveEvent
int | TYPE_CHANGE | Event type that indicates a resource change.

Public Methods
abstract DriveId | getDriveId() Returns the id of the Drive resource that triggered the event, or `null` if not resource-specific.

[Expand] Inherited Methods
From interface android.os.Parcelable
abstract int | describeContents()
abstract void | writeToParcel(Parcel arg0, int arg1)
From interface com.google.android.gms.drive.events.DriveEvent
abstract DriveId | getDriveId() Returns the id of the Drive resource that triggered the event, or `null` if not resource-specific.
abstract int | getType() Returns the type of an event.

## Public Methods

#### public abstract DriveId getDriveId ()

Returns the id of the Drive resource that triggered the event, or `null` if not resource-specific.