Builder

class Builder

This class defines all parameters to get a ZTScanner.

Constructors

Builder
Link copied to clipboard
fun Builder()

Functions

build
Link copied to clipboard
fun build(client: RxBleClient): ZTScanner
Build a ZTScanner based on parameters.
setDuration
Link copied to clipboard
fun setDuration(duration: Long?, timeUnit: TimeUnit?): ZTScanner.Builder
Set the maximum duration for the scan.
setProductType
Link copied to clipboard
fun setProductType(productType: ZTProductType?): ZTScanner.Builder
Set the product type to scan for.