setPerformanceHintApiEnabled

abstract fun setPerformanceHintApiEnabled(enabled: Boolean): T

Enable or disable CPU acceleration.

By default CPU acceleration is enabled. And all detection logic is executed on top CPU cores on supported devices. Otherwise it might run on middle or low tier cores of device. It depends on the device architecture and Android version.

Return

same initializer instance, so calls can be chained.

Parameters

enabled

true to enable CPU acceleration, false to disable it.