StartBleScanRequest

public classStartBleScanRequestextendsObject
implementsParcelable

This class is deprecated.
UseBluetoothManager directly.

Request for findingBLE devicesaround the user. A request can be built using theStartBleScanRequest.Builder. Use the parameters of the request to specify which data sources should be returned. Example usage:

new StartBleScanRequest.Builder()
.setDataTypes(DataType.TYPE_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 finalCreator<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(Parcelparcel, int flags)

Inherited Method Summary

Fields

public static finalCreator<StartBleScanRequest> CREATOR

Public Methods

publicList<DataType> getDataTypes()

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

Returns
  • The list of data types, empty if you're scanning all devices.

public intgetTimeoutSecs()

Returns the timeout for the scan, in seconds.

publicStringtoString()

public voidwriteToParcel(Parcelparcel, int flags)