Package 

Interface OnBreadcrumbCallback


  • 
    public interface OnBreadcrumbCallback
    
                        

    Add a "on breadcrumb" callback, to execute code before every breadcrumb captured by Bugsnag.

    You can use this to modify breadcrumbs before they are stored by Bugsnag. You can also return false from any callback to ignore a breadcrumb.

    For example:

    Bugsnag.onBreadcrumb(new OnBreadcrumbCallback() { public boolean onBreadcrumb(Breadcrumb breadcrumb) { return false; // ignore the breadcrumb } })

    • Method Summary

      Modifier and Type Method Description
      abstract Boolean onBreadcrumb(Breadcrumb breadcrumb) Runs the "on breadcrumb" callback.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onBreadcrumb

         abstract Boolean onBreadcrumb(Breadcrumb breadcrumb)

        Runs the "on breadcrumb" callback. If the callback returns false any further OnBreadcrumbCallback callbacks will not be called and the breadcrumb will not be captured by Bugsnag.

        Parameters:
        breadcrumb - the breadcrumb to be captured by Bugsnag