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
TwainScanning.CapabilityCapSetBase
TwainScanning.Capability.CapabilitySetsPowerMonitoring
Namespace: TwainScanning.Capability.CapabilitySets
Assembly: TwainScanning (in TwainScanning.dll) Version: 1.3.4.0 (1.3.4.0)
Syntax
The PowerMonitoring type exposes the following members.
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetCapabilities | (Inherited from CapSetBase.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MakeCapT | (Inherited from CapSetBase.) | |
MakeCapArrT | (Inherited from CapSetBase.) | |
MakeCapReadOnlyT | (Inherited from CapSetBase.) | |
MakeCapReadOnlyArrayT | (Inherited from CapSetBase.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a String that represents the current Object. (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
BatteryMinutes |
The minutes of battery power remaining to the device.
CAP_BATTERYMINUTES
| |
BatteryPercentage |
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
| |
PowerSaveTime |
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
| |
PowerSupply |
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
|
See Also