java.lang.Object |
↳ |
com.google.android.gms.fitness.request.StartBleScanRequest.Builder |
Class Overview
Builder used to create new DataSourceRequests.
Summary
[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(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Constructors
public
StartBleScanRequest.Builder
()
Public Methods
Finishes building and returns the request.
Throws |
IllegalStateException |
if the builder doesn't have enough data to build
a valid request
|
Sets the callback to be used when devices are found.
The callback must be set or build()
will throw an exception.
Parameters |
bleScanCallback |
BleScanCallback :
the callback to be called.
|
Sets the desired data types to search for on the BLE scan. We'll only return devices
which match this data type. If no data types are set, the request will return all
compatible devices.
Parameters |
dataTypes |
DataType :
the data types to search for. These can be one of the data types
listed in DataType , or a custom data type.
|
Sets how long to wait before automatically stopping the scan,
in seconds. If this method isn't called scans will stop after 10 seconds by default.
Parameters |
stopTimeSecs |
int :
duration of the scan before stopping. Must be a value between 1
and 60 seconds.
|