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.3.0.0 (1.3.0.0)
Syntax

public class PowerMonitoring : CapSetBase

The PowerMonitoring type exposes the following members.

Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetCapabilities (Inherited from CapSetBase.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(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
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(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