Exemple #1
0
        public static string TrackException(IntPtr exception, IDictionary <string, string> properties, ErrorAttachmentLog[] attachments)
        {
            var keys              = properties == null ? null : properties.Keys.ToArray();
            var values            = properties == null ? null : properties.Values.ToArray();
            var propertyCount     = properties == null ? 0 : properties.Count;
            var nativeAttachments = NativeObjectsConverter.ToNativeAttachments(attachments);

            return(appcenter_unity_crashes_track_model_exception_with_properties_with_attachments(exception, keys, values, propertyCount, nativeAttachments));
        }
        public static IntPtr GetErrorAttachmentsNativeFunc(IntPtr report)
        {
            if (GetErrorAttachmentsHandler == null)
            {
                return(IntPtr.Zero);
            }
            var errorReport = CrashesInternal.GetErrorReportFromIntPtr(report);
            var logs        = GetErrorAttachmentsHandler(errorReport);

            return(NativeObjectsConverter.ToNativeAttachments(logs));
        }
Exemple #3
0
        public static void SendErrorAttachments(string errorReportId, ErrorAttachmentLog[] attachments)
        {
            var nativeAttachments = NativeObjectsConverter.ToNativeAttachments(attachments);

            appcenter_unity_crashes_send_error_attachments(errorReportId, nativeAttachments);
        }