KeyboardManagerDisableKey Method |
Disables completely a single physical key, through the
VScanEntry
data structure.
Namespace:
Com.Datalogic.Decode
Assembly:
datalogic-xamarin-sdk (in datalogic-xamarin-sdk.dll) Version: 1.0.0.0
(1.0.0.0)
Syntax
public virtual int DisableKey (Com.Datalogic.Device.Input.VScanEntry scanCode, bool disable);
Public Virtual Integer DisableKey (Com.Datalogic.Device.Input.VScanEntry scanCode, Boolean disable);
Parameters
- scanCode
- Type: Com.Datalogic.Device.Input.VScanEntry
a VScanEntry representing the virtual scan code, associated to the physical key. - disable
- Type: System.Boolean
a boolean that specifies whether or not the key will be disabled.
Return Value
Type: System.Int32
int DeviceException.SUCCESS in case of success,
otherwise a possible error code, matching one of the DeviceException error constants.
Exceptions
Exception |
Condition |
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