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
)
Public Overridable Function DisableKey (
scanCode As VScanEntry,
disable As Boolean
) As Integer
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:
Int32intSuccess in case of success,
otherwise a possible error code, matching one of the
DeviceException error constants.
Exceptions 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