StartBleScanRequest

public class StartBleScanRequest extends AbstractSafeParcelable

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();
 

Nested Class Summary

class StartBleScanRequest.Builder Builder used to create new DataSourceRequests. 

Inherited Constant Summary

Field Summary

public static final Creator<StartBleScanRequest> CREATOR

Public Method Summary

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
void
writeToParcel(Parcel parcel, int flags)

Inherited Method Summary

Fields

public static final Creator<StartBleScanRequest> CREATOR

Public Methods

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)