Click or drag to resize

KeyboardManagerDisableKey Method

Disables completely a single physical key, through the VScanEntry

Namespace:  Com.Datalogic.Device.Input
Assembly:  datalogic-xamarin-sdk (in datalogic-xamarin-sdk.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public virtual int DisableKey(
	VScanEntry scanCode,
	bool disable
)

Parameters

scanCode
Type: Com.Datalogic.Device.InputVScanEntry
- a VScanEntry representing the virtual scan code, associated to the physical key.
disable
Type: SystemBoolean
- a boolean that specifies whether or not the key will be disabled.

Return Value

Type: Int32
intSuccess in case of success, otherwise a possible error code, matching one of the DeviceException error constants.
Exceptions
ExceptionCondition
DeviceException - in case of error, when exceptions are enabled through the ErrorManager singleton.
Remarks

Disables completely a single physical key, through the VScanEntry

data structure. When a key is disabled, no input will be produced whenever key presses are detected. When a key is again re-enabled, is reset to its original value, so any previous mapping is automatically lost.

[Android Documentation]

See Also