private void registNativeLog() { var logDel = new Action <string>(NativeClass.nativeLogHandler); var intptr_delegate = Marshal.GetFunctionPointerForDelegate(logDel); NativeClass.nativeRegistLogHandler(intptr_delegate); }
private void OnDestroy() { //print(LOG_TAG + " OnDestroy"); stopDecoding(); NativeClass.nativeRegistLogHandler(IntPtr.Zero); }