ChangeEvent | 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 | Fields | Methods | Inherited Methods | [Expand All]
public final class

# ChangeEvent

extends Object
implements SafeParcelable ResourceEvent

java.lang.Object
↳ | com.google.android.gms.drive.events.ChangeEvent

## Class Overview

Sent when a `DriveResource` has had a change to its `Contents` or `Metadata`. Refer to `DriveEvent` for additional information about event listeners. Refer to `DriveEvent` for general information about event listeners and `addChangeListener(GoogleApiClient, DriveEvent.Listener)` for how to create them.

## 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.

Fields
public static final Creator<ChangeEvent> | CREATOR |

Public Methods
int | describeContents()
DriveId | getDriveId() Returns the id of the Drive resource that triggered the event, or `null` if not resource-specific.
int | getType() Returns the type of an event.
boolean | hasContentChanged() Returns `true` if the content has changed for this resource.
boolean | hasMetadataChanged() Returns `true` if the metadata has changed for this resource.
String | toString()
void | writeToParcel(Parcel dest, int flags)

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
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.
From interface com.google.android.gms.drive.events.ResourceEvent
abstract DriveId | getDriveId() Returns the id of the Drive resource that triggered the event, or `null` if not resource-specific.

## Fields

#### public static final Creator<ChangeEvent> CREATOR

## Public Methods

#### public int describeContents ()

#### public DriveId getDriveId ()

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

#### public int getType ()

Returns the type of an event. See the `TYPE_*` constants for possible values.

#### public boolean hasContentChanged ()

Returns `true` if the content has changed for this resource.

#### public boolean hasMetadataChanged ()

Returns `true` if the metadata has changed for this resource.

#### public String toString ()

#### public void writeToParcel (Parcel dest, int flags)