DataApi.DataListener | 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: Methods | [Expand All]
public static interface

# DataApi.DataListener

com.google.android.gms.wearable.DataApi.DataListener

Known Indirect Subclasses WearableListenerService
WearableListenerService | Receives events from other nodes, such as data changes, messages or connectivity events.

## Class Overview

Used with `addListener(GoogleApiClient, DataApi.DataListener)` to receive data events.

##### See Also

- `WearableListenerService`

## Summary

Public Methods
abstract void | onDataChanged(DataEventBuffer dataEvents) Notification that a set of data items have been changed or deleted.

## Public Methods

#### public abstract void onDataChanged (DataEventBuffer dataEvents)

Notification that a set of data items have been changed or deleted. The data buffer is closed upon completion of this method. If a caller wishes to use the events outside this callback, they should be sure to `freeze()` the `DataEvent`s they wish to use.