internal static extern ErrorCode ImeEventSetInputContextResetCb(ImeInputContextResetCb callbackFunction, IntPtr userData);
[DllImport(Libraries.InputMethod, EntryPoint = "ime_event_set_cursor_position_updated_cb")]
- internal static extern ErrorCode ImeEventSetCursorPositionitionUpdatedCb(ImeCursorPositionitionUpdatedCb callbackFunction, IntPtr userData);
+ internal static extern ErrorCode ImeEventSetCursorPositionUpdatedCb(ImeCursorPositionUpdatedCb callbackFunction, IntPtr userData);
[DllImport(Libraries.InputMethod, EntryPoint = "ime_event_set_language_requested_cb")]
internal static extern ErrorCode ImeEventSetLanguageRequestedCallbackCb(ImeLanguageRequestedCb callbackFunction, IntPtr userData);
internal static extern ErrorCode ImeContextGetLayoutVariation(IntPtr context, out LayoutVariation layoutVariation);
[DllImport(Libraries.InputMethod, EntryPoint = "ime_context_get_cursor_position")]
- internal static extern ErrorCode ImeContextGetCursorPositionition(IntPtr context, out int cursorPos);
+ internal static extern ErrorCode ImeContextGetCursorPosition(IntPtr context, out int cursorPos);
[DllImport(Libraries.InputMethod, EntryPoint = "ime_context_get_autocapital_type")]
internal static extern ErrorCode ImeContextGetAutocapitalType(IntPtr context, out AutoCapitalization autocapitalType);
internal delegate void ImeInputContextResetCb(IntPtr userData);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- internal delegate void ImeCursorPositionitionUpdatedCb(int cursorPos, IntPtr userData);
+ internal delegate void ImeCursorPositionUpdatedCb(int cursorPos, IntPtr userData);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
internal delegate void ImeLanguageRequestedCb(IntPtr userData, out IntPtr langCode);
private static ImeSurroundingTextUpdatedCb _imeSurroundingTextUpdatedDelegate;
private static event EventHandler<EventArgs> _inputContextReset;
private static ImeInputContextResetCb _imeInputContextResetDelegate;
- private static event EventHandler<CursorPositionitionUpdatedEventArgs> _cursorPositionUpdated;
- private static ImeCursorPositionitionUpdatedCb _imeCursorPositionitionUpdatedDelegate;
+ private static event EventHandler<CursorPositionUpdatedEventArgs> _cursorPositionUpdated;
+ private static ImeCursorPositionUpdatedCb _imeCursorPositionUpdatedDelegate;
private static event EventHandler<LanguageSetEventArgs> _langaugeSet;
private static ImeLanguageSetCb _imeLanguageSetDelegate;
private static event EventHandler<SetDataEventArgs> _imDataSet;
private static ImeAccessibilityStateChangedCb _imeAccessibilityStateChangedDelegate;
private static ImeLanguageRequestedCb _imeLanguageRequestedDelegate;
private static OutAction<string> _languageRequestedDelegate;
- private static BoolAction<KeyCode, KeyMask, VoiceControlDeviceInformation> _processKeyDelagate;
+ private static BoolAction<KeyCode, KeyMask, InputMethodDeviceInformation> _processKeyDelagate;
private static ImeImdataRequestedCb _imeImDataRequestedDelegate;
private static OutArrayAction<byte> _imDataRequestedDelegate;
private static ImeGeometryRequestedCb _imeGeometryRequestedDelegate;
/// <summary>
/// Called when the position of the cursor in an associated text input UI control changes.
/// </summary>
- public static event EventHandler<CursorPositionitionUpdatedEventArgs> CursorPositionitionUpdated
+ public static event EventHandler<CursorPositionUpdatedEventArgs> CursorPositionUpdated
{
add
{
lock (thisLock)
{
- _imeCursorPositionitionUpdatedDelegate = (int cursorPos, IntPtr userData) =>
+ _imeCursorPositionUpdatedDelegate = (int cursorPos, IntPtr userData) =>
{
- CursorPositionitionUpdatedEventArgs args = new CursorPositionitionUpdatedEventArgs(cursorPos);
+ CursorPositionUpdatedEventArgs args = new CursorPositionUpdatedEventArgs(cursorPos);
_cursorPositionUpdated?.Invoke(null, args);
};
- ErrorCode error = ImeEventSetCursorPositionitionUpdatedCb(_imeCursorPositionitionUpdatedDelegate, IntPtr.Zero);
+ ErrorCode error = ImeEventSetCursorPositionUpdatedCb(_imeCursorPositionUpdatedDelegate, IntPtr.Zero);
if (error != ErrorCode.None)
{
- Log.Error(LogTag, "Add CursorPositionitionUpdated Failed with error " + error);
+ Log.Error(LogTag, "Add CursorPositionUpdated Failed with error " + error);
}
else
{
/// The Action is alled when the key event is received from the external devices or SendKey function.
/// This Event processes the key event before an associated text input UI control does.
/// </param>
- public static void SetProcessKeyCallback(BoolAction<KeyCode, KeyMask, VoiceControlDeviceInformation> processKey)
+ public static void SetProcessKeyCallback(BoolAction<KeyCode, KeyMask, InputMethodDeviceInformation> processKey)
{
_imeProcessKeyDelegate = (KeyCode keyCode, KeyMask keyMask, IntPtr devInfo, IntPtr userData) =>
{
- return _processKeyDelagate(keyCode, keyMask, new VoiceControlDeviceInformation(devInfo));
+ return _processKeyDelagate(keyCode, keyMask, new InputMethodDeviceInformation(devInfo));
};
ErrorCode error = ImeEventSetProcessKeyEventCb(_imeProcessKeyDelegate, IntPtr.Zero);
if (error != ErrorCode.None)