KeyboardManagerMapUnicode Method |
Assigns a unicode character to a physical key.
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 MapUnicode (Com.Datalogic.Device.Input.VScanEntry scanCode, Java.Lang.Character c);
Public Virtual Integer MapUnicode (Com.Datalogic.Device.Input.VScanEntry scanCode, Java.Lang.Character c);
Parameters
- scanCode
- Type: Com.Datalogic.Device.Input.VScanEntry
a VScanEntry representing the virtual scan code. - c
- Type: Java.Lang.Character
unicode character Example code to assign a Thai unicode character to the
physical key '1': (new KeyboardManager()).mapUnicode(new VScanEntry(VScanCode.VSCAN_1), '\\u0e01');
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
Assigns a unicode character to a physical key. If a mapping for the
desired physical key is already assigned and saved, it will be
overridden.
[Android Documentation]
See Also