private static void SetCurrentScene(int sceneId) { BuglyAgent.ConfigCrashReporterPackage(); try { BuglyAgent.GameAgent.CallStatic("setUserSceneTag", new object[] { sceneId }); } catch { } }
private static void SetUserInfo(string userInfo) { BuglyAgent.ConfigCrashReporterPackage(); try { BuglyAgent.GameAgent.CallStatic("setUserId", new object[] { userInfo }); } catch { } }
private static void SetCurrentScene(int sceneId) { BuglyAgent.ConfigCrashReporterPackage(); try { BuglyAgent.UnityAgent.Call("setScene", new object[] { sceneId }); } catch { } }
private static void AddKeyAndValueInScene(string key, string value) { BuglyAgent.ConfigCrashReporterPackage(); try { BuglyAgent.GameAgent.CallStatic("putUserData", new object[] { key, value }); } catch { } }
private static void SetUnityVersion() { BuglyAgent.ConfigCrashReporterPackage(); try { BuglyAgent.GameAgent.CallStatic("setSdkConfig", new object[] { "UnityVersion", Application.unityVersion }); } catch { } }
private static void EnableDebugMode(bool enable) { BuglyAgent._debugMode = enable; BuglyAgent.ConfigCrashReporterPackage(); try { BuglyAgent.GameAgent.CallStatic("setLogEnable", new object[] { enable }); } catch { } }
private static void AddKeyAndValueInScene(string key, string value) { BuglyAgent.ConfigCrashReporterPackage(); try { BuglyAgent.UnityAgent.Call("addSceneValue", new object[] { key, value }); } catch { } }
private static void ReportException(int type, string name, string reason, string stackTrace, bool quitProgram) { BuglyAgent.ConfigCrashReporterPackage(); try { BuglyAgent.UnityAgent.Call("traceException", new object[] { name, reason, stackTrace, quitProgram }); } catch { } }
private static void LogRecord(LogSeverity level, string message) { if (level < LogSeverity.LogWarning) { BuglyAgent.DebugLog(level.ToString(), message, new object[0]); } BuglyAgent.ConfigCrashReporterPackage(); try { BuglyAgent.GameAgent.CallStatic("printLog", new object[] { string.Format("<{0}> - {1}", level.ToString(), message) }); } catch { } }
private static void ReportException(int type, string name, string reason, string stackTrace, bool quitProgram) { BuglyAgent.ConfigCrashReporterPackage(); try { BuglyAgent.GameAgent.CallStatic("postException", new object[] { BuglyAgent.TYPE_U3D_CRASH, name, reason, stackTrace, quitProgram }); } catch { } }
private static void InitBuglyAgent(string appId) { if (BuglyAgent.IsInitialized) { return; } BuglyAgent.ConfigCrashReporterPackage(); try { BuglyAgent.GameAgent.CallStatic("initCrashReport", new object[] { appId, BuglyAgent._configChannel, BuglyAgent._configVersion, BuglyAgent._configUser, BuglyAgent._configDelayTime }); BuglyAgent._isInitialized = true; } catch { } }