public class

BleDevice

extends Object
implements Parcelable 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
Public Methods
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
From interface android.os.Parcelable

Public Methods

public boolean equals (Object o)

Parameters
o Object
Returns
boolean

public String getAddress ()

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

Returns
String

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.

Returns
List<DataType>

public String getName ()

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

Returns
String

public List<String> getSupportedProfiles ()

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

Returns
List<String>

public int hashCode ()

Returns
int

public String toString ()

Returns
String

public void writeToParcel (Parcel parcel, int flags)

Parameters
parcel Parcel
flags int