public AndroidInterceptor(BugsnagClient client) { if (client == null) { throw new ArgumentNullException("client"); } this.client = client; AndroidEnvironment.UnhandledExceptionRaiser += HandleUnhandledManagedException; JavaExceptionHandler.Install(client); }
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); }