Added in API level 28

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.

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.