mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-08 10:03:51 +02:00
Build Bugsnag inline
This commit is contained in:
23
app/src/main/java/com/bugsnag/android/OnSessionCallback.java
Normal file
23
app/src/main/java/com/bugsnag/android/OnSessionCallback.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package com.bugsnag.android;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
/**
|
||||
* A callback to be run before sessions are sent to Bugsnag.
|
||||
* <p>
|
||||
* <p>You can use this to add or modify information attached to a session
|
||||
* before it is sent to your dashboard. You can also return
|
||||
* <code>false</code> from any callback to halt execution.
|
||||
*/
|
||||
public interface OnSessionCallback {
|
||||
|
||||
/**
|
||||
* Runs the "on session" callback. If the callback returns
|
||||
* <code>false</code> any further OnSessionCallback callbacks will not be called
|
||||
* and the session will not be sent to Bugsnag.
|
||||
*
|
||||
* @param session the session to be sent to Bugsnag
|
||||
* @see Session
|
||||
*/
|
||||
boolean onSession(@NonNull Session session);
|
||||
}
|
||||
Reference in New Issue
Block a user