// Token: 0x06000116 RID: 278 RVA: 0x00009B54 File Offset: 0x00007F54 private IEnumerator Save(byte[] bytes, string fileName, string path, ScreenshotManager.ImageType imageType) { int count = 0; ScreenshotManager.SaveStatus saved = ScreenshotManager.SaveStatus.NOTSAVED; if (Application.platform == RuntimePlatform.Android) { File.WriteAllBytes(path, bytes); while (saved == ScreenshotManager.SaveStatus.NOTSAVED) { count++; if (count > 30) { saved = ScreenshotManager.SaveStatus.TIMEOUT; } else { saved = (ScreenshotManager.SaveStatus)ScreenshotManager.obj.CallStatic <int>("addImageToGallery", new object[] { path }); } yield return(ScreenshotManager.Instance.StartCoroutine(ScreenshotManager.Instance.Wait(0.5f))); } } if (saved != ScreenshotManager.SaveStatus.DENIED) { if (saved == ScreenshotManager.SaveStatus.TIMEOUT) { path = "TIMEOUT"; } } else { path = "DENIED"; } if (imageType != ScreenshotManager.ImageType.IMAGE) { if (imageType == ScreenshotManager.ImageType.SCREENSHOT) { if (ScreenshotManager.OnScreenshotSaved != null) { ScreenshotManager.OnScreenshotSaved(path); } } } else if (ScreenshotManager.OnImageSaved != null) { ScreenshotManager.OnImageSaved(path); } yield break; }