progressCallbackThreshold

abstract fun progressCallbackThreshold(bytes: Long): ApiClient.Builder

Define a progress notifications threshold

If set, a supplied ProgressListener instance will be invoked on no less than bytes of transferred data.

Can be used to control thread congestion caused by the invocations of the progress listener.

Return

the same Builder instance

See also

Parameters

bytes

the minimal amounts of bytes to be transferred before notifying about a transfer progress