setDuration

fun setDuration(duration: Long?, timeUnit: TimeUnit?): ZTScanner.Builder

Set the maximum duration for the scan.

Return

Builder instance

Parameters

duration

the duration

timeUnit