-
- All Implemented Interfaces:
-
android.os.StrictMode.OnVmViolationListener
public class BugsnagVmViolationListener implements StrictMode.OnVmViolationListener
Sends an error report to Bugsnag for each StrictMode VM 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, OnVmViolationListener). This functionality is only supported on API 28+.
-
-
Constructor Summary
Constructors Constructor Description BugsnagVmViolationListener()BugsnagVmViolationListener(Client client)BugsnagVmViolationListener(Client client, StrictMode.OnVmViolationListener listener)
-
Method Summary
Modifier and Type Method Description voidonVmViolation(@NonNull() Violation violation)-
-
Constructor Detail
-
BugsnagVmViolationListener
BugsnagVmViolationListener()
-
BugsnagVmViolationListener
BugsnagVmViolationListener(Client client)
-
BugsnagVmViolationListener
BugsnagVmViolationListener(Client client, StrictMode.OnVmViolationListener listener)
-
-
Method Detail
-
onVmViolation
void onVmViolation(@NonNull() Violation violation)
-
-
-
-