AutoBrightnessGainProvider

Sample Implementation of an auto brightness logic to be used with the UIKit.services.IEvsAutoBrightnessController.setProvider

The auto brightness gain can be set via setGain

NOTE: This auto brightness implementation is experimental and provided 'as-is',without any express or implied warranty.

Usage:

  1. Add AutoBrightnessGainProvider instance to UIKit.services.IEvsAutoBrightnessController.setProvider

  2. Enable auto brightness via UIKit.services.IEvsAutoBrightnessController.enable

The UIKit.services.IEvsAutoBrightnessController can be received via UIKit.services.IEvsDisplayService.autoBrightness

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun getBrightnessByLux(lux: Float): Float

The function should return a brightness value that is calculated fro the given lux value

Link copied to clipboard
open override fun getGain(): Int

Get the auto brightness gain 0-100

Link copied to clipboard
open override fun onReady()

Notify the provider when the glasses are ready

Link copied to clipboard
open override fun setGain(gain: Int)

Set the auto brightness gain 0-100