public class

StartBleScanRequest

extends Object
implements Parcelable
java.lang.Object
   ↳ com.google.android.gms.fitness.request.StartBleScanRequest

Class Overview

Request for finding BLE devices around the user. A request can be built using the StartBleScanRequest.Builder. Use the parameters of the request to specify which data sources should be returned. Example usage:

     new StartBleScanRequest.Builder()
         .setDataTypes(DataTypes.HEART_RATE_BPM)
         .setBleScanCallback(callback)
         .build();
 

Summary

Nested Classes
class StartBleScanRequest.Builder Builder used to create new DataSourceRequests. 
[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<StartBleScanRequest> CREATOR
Public Methods
int describeContents()
List<DataType> getDataTypes()
Returns the list of data types that constrain the list of scanned devices.
int getTimeoutSecs()
Returns the timeout for the scan, in seconds.
String toString()
void writeToParcel(Parcel parcel, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<StartBleScanRequest> CREATOR

Public Methods

public int describeContents ()

public List<DataType> getDataTypes ()

Returns the list of data types that constrain the list of scanned devices.

Returns
  • the list of data types, empty if we're scanning all devices

public int getTimeoutSecs ()

Returns the timeout for the scan, in seconds.

public String toString ()

public void writeToParcel (Parcel parcel, int flags)