/// <summary>
        /// Builds an attachment with binary suitable for using in <see cref="Crashes.GetErrorAttachment"/>.
        /// </summary>
        /// <returns>Error attachment or <c>null</c> if null data is passed.</returns>
        /// <param name="data">Binary data.</param>
        /// <param name="filename">Filename to use on reports.</param>
        /// <param name="contentType">Data MIME type.</param>
        public static ErrorAttachment AttachmentWithBinary(byte[] data, string filename, string contentType)
        {
            AndroidErrorAttachment androidAttachment = AndroidErrorAttachments.AttachmentWithBinary(data, filename, contentType);

            return(new ErrorAttachment(androidAttachment));
        }
        /// <summary>
        /// Builds an attachment with text suitable for using in <see cref="Crashes.GetErrorAttachment"/>.
        /// </summary>
        /// <returns>Error attachment or <c>null</c> if null text is passed.</returns>
        /// <param name="text">Text to attach to the error report.</param>
        public static ErrorAttachment AttachmentWithText(string text)
        {
            AndroidErrorAttachment androidAttachment = AndroidErrorAttachments.AttachmentWithText(text);

            return(new ErrorAttachment(androidAttachment));
        }
        /// <summary>
        /// Builds an attachment with text and binary suitable for using in <see cref="Crashes.GetErrorAttachment"/>.
        /// </summary>
        /// <returns>Error attachment or <c>null</c> if text and data are null.</returns>
        /// <param name="text">Text data.</param>
        /// <param name="data">Binary data.</param>
        /// <param name="filename">Filename to use on reports.</param>
        /// <param name="contentType">Data MIME type.</param>
        public static ErrorAttachment Attachment(string text, byte[] data, string filename, string contentType)
        {
            AndroidErrorAttachment androidAttachment = AndroidErrorAttachments.Attachment(text, data, filename, contentType);

            return(new ErrorAttachment(androidAttachment));
        }