SensorEventDispatcher | 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
  - Analyze
  - Tools & Reference
  - Developer Stories

## Results

Loading...
public interface

# SensorEventDispatcher

com.google.android.gms.fitness.service.SensorEventDispatcher

## Class Overview

Dispatcher that can be used by `FitnessSensorService` implementations to push events to the Fitness Platform. Each event is delivered as a `DataPoint`.

## Summary

Public Methods
abstract void | publish(DataPoint dataPoint) Publishes a new data point to the Fitness Platform.
abstract void | publish(List<DataPoint> dataPoints) Publishes a batch of data points to the Fitness Platform.

## Public Methods

#### public abstract void publish (DataPoint dataPoint)

Publishes a new data point to the Fitness Platform.

##### Throws

RemoteException |

#### public abstract void publish (List<DataPoint> dataPoints)

Publishes a batch of data points to the Fitness Platform.

##### Throws

RemoteException |