public void Report(string reportPopupTitle, string mailTo, string subject, string text, byte[] saveData) { var reportSaveDataPath = Application.persistentDataPath + "/report-save-data"; File.WriteAllBytes(reportSaveDataPath, saveData); #if UNITY_IOS PlatformIosNative.sendMail(subject, text, mailTo, reportSaveDataPath); #endif }
public void ExecuteCloudSave() { SaveLoadManager.Save(BalloonSpawner.instance, ConfigPopup.instance, BalloonSound.instance, Data.instance, SaveLoadManager.SaveReason.BeforeCloudSave); PlatformSaveUtil.ShowSaveProgressPopup(); #pragma warning disable 219 var savedData = PlatformSaveUtil.SerializeSaveData(); #pragma warning restore 219 // 아래 함수의 호출 결과는 결과는 PlatformCallbackHandler GameObject의 // PlatformCallbackHandler.OnIosSaveResult()로 비동기적으로 호출되는 것으로 처리한다. #if UNITY_IOS PlatformIosNative.saveToCloudPrivate(Social.localUser.id, System.Convert.ToBase64String(savedData), LoginErrorTitle, LoginErrorMessage, ConfirmMessage); #endif }
public void ExecuteCloudSave() { PlatformInterface.instance.saveLoadManager.SaveBeforeCloudSave(); platformSaveUtil.ShowSaveProgressPopup(); #pragma warning disable 219 var savedData = PlatformInterface.instance.saveUtil.SerializeSaveData(); #pragma warning restore 219 // 아래 함수의 호출 결과는 결과는 PlatformCallbackHandler GameObject의 // PlatformCallbackHandler.OnIosSaveResult()로 비동기적으로 호출되는 것으로 처리한다. if (Application.platform == RuntimePlatform.IPhonePlayer) { PlatformIosNative.saveToCloudPrivate(Social.localUser.id, Convert.ToBase64String(savedData), PlatformInterface.instance.text.LoginErrorTitle, PlatformInterface.instance.text.LoginErrorMessage, PlatformInterface.instance.text.ConfirmMessage); } }
public void GetCloudLastSavedMetadataAsync(Action <CloudMetadata> onPeekResult) { if (!Social.localUser.authenticated) { SushiDebug.LogFormat("GetCloudSavedAccountData: not authenticated"); if (onPeekResult != null) { onPeekResult(CloudMetadata.Invalid); } return; } // 아래 함수의 호출 결과는 결과는 PlatformCallbackHandler GameObject의 // PlatformCallbackHandler.OnIosLoadResult()로 비동기적으로 호출되는 것으로 처리한다. // 이를 위해 onPeekResult를 챙겨둔다. onPeekResultSave = onPeekResult; #if UNITY_IOS PlatformIosNative.loadFromCloudPrivate(Social.localUser.id, LoginErrorTitle, LoginErrorMessage, ConfirmMessage); #endif }
public void GetCloudLastSavedMetadataAsync(Action <byte[]> onPeekResult) { if (!PlatformLogin.IsAuthenticated) { PlatformInterface.instance.logger.LogFormat("GetCloudSavedAccountData: not authenticated"); onPeekResult?.Invoke(null); return; } // 아래 함수의 호출 결과는 결과는 PlatformCallbackHandler GameObject의 // PlatformCallbackHandler.OnIosLoadResult()로 비동기적으로 호출되는 것으로 처리한다. // 이를 위해 onPeekResult를 챙겨둔다. onPeekResultSave = onPeekResult; if (Application.platform == RuntimePlatform.IPhonePlayer) { PlatformIosNative.loadFromCloudPrivate(Social.localUser.id, PlatformInterface.instance.text.LoginErrorTitle, PlatformInterface.instance.text.LoginErrorMessage, PlatformInterface.instance.text.ConfirmMessage); } }
public void ClearAllNotifications() { #if UNITY_IOS PlatformIosNative.clearAllNotifications(); #endif }