*
*/
-#if (NUI_DEBUG_ON)
-
-
using global::System;
using System.ComponentModel;
using System.Runtime.InteropServices;
IntPtr callbackIntPtr = IntPtr.Zero;
if (_sayFinishedEventHandler != null)
{
- _sayFinishedEventCallbackType callback = _sayFinishedEventCallback;
+ callback = _sayFinishedEventCallback;
callbackIntPtr = Marshal.GetFunctionPointerForDelegate<Delegate>(callback);
}
bool ret = Interop.Accessibility.accessibility_say(View.getCPtr(dummy), sentence, discardable, callbackIntPtr);
IntPtr callbackIntPtr = IntPtr.Zero;
if (_sayFinishedEventHandler != null)
{
- _sayFinishedEventCallbackType callback = _sayFinishedEventCallback;
+ callback = _sayFinishedEventCallback;
callbackIntPtr = Marshal.GetFunctionPointerForDelegate<Delegate>(callback);
}
bool ret = Interop.Accessibility.accessibility_say(View.getCPtr(target), sentence, discardable, callbackIntPtr);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void _sayFinishedEventCallbackType(int result);
+ private _sayFinishedEventCallbackType callback = null;
+
private void _sayFinishedEventCallback(int result)
{
tlog.Fatal(tag, $"_sayFinishedEventCallback(res={result}) called!");
#endregion Private
}
}
-
-
-#endif
\ No newline at end of file