java.lang.Object | |
↳ | com.google.android.gms.fitness.request.StartBleScanRequest.Builder |
Builder used to create new DataSourceRequests.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Finishes building and returns the request.
| |||||||||||
Sets the callback to be used when devices are found.
| |||||||||||
Sets the desired data types to search for on the BLE scan.
| |||||||||||
Sets how long to wait before automatically stopping the scan,
in seconds.
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Finishes building and returns the request.
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.
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.
dataTypes | 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.
stopTimeSecs | duration of the scan before stopping. Must be a value between 1 and 60 seconds. |
---|