Exemple #1
0
 public EditorIosImagePickerMovieResult(
     string movieFilePath,
     EditorIosError movieFileError)
 {
     this.MovieFilePath  = movieFilePath;
     this.MovieFileError = movieFileError;
 }
Exemple #2
0
 public EditorIosImagePickerImageResult(
     Rect cropRect,
     string originalImageFilePath,
     EditorIosError originalImageError,
     string editedImageFilePath,
     EditorIosError editedImageError,
     string imageFilePath,
     EditorIosError imageError)
 {
     this.CropRect = cropRect;
     this.OriginalImageFilePath = originalImageFilePath;
     this.OriginalImageError    = originalImageError;
     this.EditedImageFilePath   = editedImageFilePath;
     this.EditedImageError      = editedImageError;
     this.ImageFilePath         = imageFilePath;
     this.ImageError            = imageError;
 }
    private static void LogFileDetails(StringBuilder stringBuilder, string fieldName, string fieldFilePath, IIosError error)
    {
        stringBuilder.AppendLine(fieldName + ": " + fieldFilePath);
        if (fieldFilePath != null)
        {
            var fileInfo = new FileInfo(fieldFilePath);
            stringBuilder.AppendLine(fieldName + " Exists: " + fileInfo.Exists);
            stringBuilder.AppendLine(fieldName + " Size: " + fileInfo.Length);
        }

        if (error != null)
        {
            stringBuilder.AppendLine(fieldName + " Error Code: " + error.Code);
            stringBuilder.AppendLine(fieldName + " Error Domain: " + error.Domain);
            stringBuilder.AppendLine(fieldName + " Error Localized Description: " + error.LocalizedDescription);
        }
    }