enable

abstract fun enable(isEnabled: Boolean): Boolean

Enables the auto brightness functionality

The controller, upon Enabling, will:

  • Enables the Ambient sensor

  • Calls the provider with the ambient sensor lux values

  • Receives the provider calculated brightness

  • Set the glasses brightness to the updated value

When the controller is disabled, it disables the ambient sensor enable state

Enable is possible only if the IEvsAutoBrightnessProvider was set via setProvider

The Auto brightness controller is automatically disabled when the IEvsDisplayService.setBrightness api is called

Return

true upon success, false otherwise