OnVmViolationListener

interface OnVmViolationListener
android.os.StrictMode.OnVmViolationListener

When #VmPolicy.Builder#penaltyListener is enabled, the listener is called on the provided executor when a VM violation occurs.
Requires API level 28 (Android 8.+, P)

Summary

Public methods
abstract Unit

Called on a VM policy violation.

Public methods

onVmViolation

added in API level 28
abstract fun onVmViolation(v: Violation!): Unit

Called on a VM policy violation.
Requires API level 28 (Android 8.+, P)