-
- All Implemented Interfaces:
-
android.os.StrictMode.OnThreadViolationListener
public class BugsnagThreadViolationListener implements StrictMode.OnThreadViolationListener
Sends an error report to Bugsnag for each StrictMode thread policy violation that occurs in your app.
You should use this class by instantiating Bugsnag in the normal way and then set the StrictMode policy with (Executor, OnThreadViolationListener). This functionality is only supported on API 28+.
-
-
Constructor Summary
Constructors Constructor Description BugsnagThreadViolationListener()BugsnagThreadViolationListener(Client client)BugsnagThreadViolationListener(Client client, StrictMode.OnThreadViolationListener listener)
-
Method Summary
Modifier and Type Method Description voidonThreadViolation(@NonNull() Violation violation)-
-
Constructor Detail
-
BugsnagThreadViolationListener
BugsnagThreadViolationListener()
-
BugsnagThreadViolationListener
BugsnagThreadViolationListener(Client client)
-
BugsnagThreadViolationListener
BugsnagThreadViolationListener(Client client, StrictMode.OnThreadViolationListener listener)
-
-
Method Detail
-
onThreadViolation
void onThreadViolation(@NonNull() Violation violation)
-
-
-
-