PowerMonitoring ClassTerminal Works - TwainScanning.Net Library
Class to manipulate capability power of device. Use batteryPercentage with get method to indicate to the user about the battery power status, if -1 is returned, it indicates that the battery is not present. It is recomended to use PowerSupply to indentify the power source first.
Inheritance Hierarchy

SystemObject
  TwainScanning.CapabilityCapSetBase
    TwainScanning.Capability.CapabilitySetsPowerMonitoring

Namespace: TwainScanning.Capability.CapabilitySets
Assembly: TwainScanning (in TwainScanning.dll) Version: 1.4.3.0 (1.4.3.0)
Syntax

public class PowerMonitoring : CapSetBase

The PowerMonitoring type exposes the following members.

Methods

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetCapabilities (Inherited from CapSetBase.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMakeCapT (Inherited from CapSetBase.)
Protected methodMakeCapArrT (Inherited from CapSetBase.)
Protected methodMakeCapReadOnlyT (Inherited from CapSetBase.)
Protected methodMakeCapReadOnlyArrayT
(Inherited from CapSetBase.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
Properties

  NameDescription
Public propertyBatteryMinutes
The minutes of battery power remaining to the device. CAP_BATTERYMINUTES
Public propertyBatteryPercentage
When used with MSG_GET, return the percentage of battery power level on camera. If -1 is returned, it indicates that the battery is not present. CAP_BATTERYPERCENTAGE
Public propertyPowerSaveTime
When used with MSG_SET, set the camera power down timer in seconds. When used with MSG_GET, return the current setting of the power down time. CAP_POWERSAVETIME
Public propertyPowerSupply
MSG_GET reports the kinds of power available to the device. MSG_GETCURRENT reports the current power supply in use. This is a read only capability. CAP_POWERSUPPLY
Top
See Also

Reference