Ejemplo n.º 1
0
        public AndroidInterceptor(BugsnagClient client)
        {
            if (client == null)
            {
                throw new ArgumentNullException("client");
            }
            this.client = client;

            AndroidEnvironment.UnhandledExceptionRaiser += HandleUnhandledManagedException;
            JavaExceptionHandler.Install(client);
        }
Ejemplo n.º 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);
        }