BleDevice | 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...
Summary: Inherited Constants | Fields | Methods | Inherited Methods | [Expand All]
public class

# BleDevice

extends Object
implements Parcelable

java.lang.Object
↳ | com.google.android.gms.fitness.data.BleDevice

## Class Overview

Representation of a BLE Device (such as a heart rate monitor) that broadcasts information about its on board sensors. The BLE device supports one or more `GATT Profiles`, which can be translated to one or more `data type`.

## Summary

[Expand] Inherited Constants
From interface android.os.Parcelable
int | CONTENTS_FILE_DESCRIPTOR |
int | PARCELABLE_WRITE_RETURN_VALUE |

Fields
public static final Creator<BleDevice> | CREATOR |

Public Methods
int | describeContents()
boolean | equals(Object o)
String | getAddress() Returns the address of the BLE device, from `getAddress()`.
List<DataType> | getDataTypes() Returns all of the Fitness Platform data types supported by the device's supported profiles.
String | getName() Returns the name of the BLE device, from `getName()`.
List<String> | getSupportedProfiles() Returns a list of supported GATT Profile Specification Types for the device which are also supported by the Fitness Platform.
int | hashCode()
String | toString()
void | writeToParcel(Parcel parcel, 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)

## Fields

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

## Public Methods

#### public int describeContents ()

#### public boolean equals (Object o)

#### public String getAddress ()

Returns the address of the BLE device, from `getAddress()`.

#### public List<DataType> getDataTypes ()

Returns all of the Fitness Platform data types supported by the device's supported profiles.

Note that in some GATT profiles certain characteristics are optional. This method will return an optional data type even if the device doesn't support it. Registering to updates from a non-supported optional data type from a supported profile will succeed, but no data will be returned.

#### public String getName ()

Returns the name of the BLE device, from `getName()`.

#### public List<String> getSupportedProfiles ()

Returns a list of supported GATT Profile Specification Types for the device which are also supported by the Fitness Platform.

#### public int hashCode ()

#### public String toString ()

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