KeyboardManagerMapKey Method |
Maps key events to customized actions.
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 MapKey (Com.Datalogic.Device.Input.VScanEntry scanCode, System.Collections.Generic.IDictionary mappingInfo, System.Collections.Generic.IDictionary<string,string> arguments);
Public Virtual Integer MapKey (Com.Datalogic.Device.Input.VScanEntry scanCode, System.Collections.Generic.IDictionary mappingInfo, System.Collections.Generic.IDictionary arguments);
Parameters
- scanCode
- Type: Com.Datalogic.Device.Input.VScanEntry
a scan code to track events - mappingInfo
- Type: System.Collections.Generic.IDictionary
a map defines the key events and the corresponding actions to be executed - arguments
- Type: System.Collections.Generic.IDictionary
No description available.
Return Value
Type: System.Int32
DeviceException in case of error, when exceptions are enabled through the ErrorManager singleton.
Remarks
Maps key events to customized actions.
This is a generic way to map a key to customized actions.
The actions are defined by providing a map of
MappingTriggerPolicy
to
MappingObject
.
For each entry in this map, the key defines a key events for detection and the value defines customized actions to be executed.
[Android Documentation]
See Also