BugsnagThreadViolationListener

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+.

Constructors

BugsnagThreadViolationListener
Link copied to clipboard
open fun BugsnagThreadViolationListener()
BugsnagThreadViolationListener
Link copied to clipboard
open fun BugsnagThreadViolationListener(@NonNull() client: Client)
BugsnagThreadViolationListener
Link copied to clipboard
open fun BugsnagThreadViolationListener(@NonNull() client: Client, @Nullable() listener: StrictMode.OnThreadViolationListener)

Functions

onThreadViolation
Link copied to clipboard
open fun onThreadViolation(@NonNull() violation: Violation)