Datalogic .NET SDK

DisplayGetBkltState (Method)

 

Syntax

 

   public static DisplayBacklight DisplayGetBkltState();

 

 

Class                           : Device

Namespace                : Datalogic.API

Assembly                   : Datalogic.API.DLL

 

 

Description

Returns the backlight enable status. If the backlight auto-off timer is expired then this method will return the backlight status as enabled even though the backlight is disabled.

This method does not control brightness.

 

 

Parameters Table

 

Type

Parameter

Description

[in]

void

-

-

 

 

 

 

[returns]

DisplayBacklight

 

The status of the backlight is retuned on success.

[on error]

Device.DisplayBacklight.Error

 

 

 

 

Example

 

private void SetBacklightDisplay()

{

       Device.DisplayBacklight bkLight = Device.DisplayGetBkltState();

 

       // Backlight enabled

       if (bkLight != Device.DisplayBacklight.Error)

       {

             chkEnableBacklight.Checked = System.Convert.ToBoolean((int)bkLight);

       }

       else

       {

             this.chkEnableBacklight.Checked = false;

             this.chkEnableBacklight.Enabled = false;

       }

}

 

 

 

 

See Also

Device.DisplayBacklight (Enum), Example #022 and #030.

 

Copyright © Datalogic ADC. All Right Reserved