public AndroidInterceptor(BugsnagClient client)
        {
            if (client == null)
            {
                throw new ArgumentNullException("client");
            }
            this.client = client;

            AndroidEnvironment.UnhandledExceptionRaiser += HandleUnhandledManagedException;
            JavaExceptionHandler.Install(client);
        }
Beispiel #2
0
        public BugsnagClient(Context context, string apiKey, bool enableMetrics = true) : base(apiKey)
        {
            sendMetrics     = enableMetrics;
            androidContext  = context.ApplicationContext;
            appStartTime    = DateTime.UtcNow;
            errorsCachePath = MakeCachePath(context);
            GuessReleaseStage();

            Android.Runtime.AndroidEnvironment.UnhandledExceptionRaiser += OnUnhandledManagedException;
            JavaExceptionHandler.Install(this);
        }