Package 

Interface OnSessionCallback


  • 
    public interface OnSessionCallback
    
                        

    A callback to be run before sessions are sent to Bugsnag.

    You can use this to add or modify information attached to a session before it is sent to your dashboard. You can also return false from any callback to halt execution.

    • Method Summary

      Modifier and Type Method Description
      abstract Boolean onSession(Session session) Runs the "on session" callback.
      • Methods inherited from class java.lang.Object

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

      • onSession

         abstract Boolean onSession(Session session)

        Runs the "on session" callback. If the callback returns false any further OnSessionCallback callbacks will not be called and the session will not be sent to Bugsnag.

        Parameters:
        session - the session to be sent to Bugsnag