Added in API level 28

StrictMode.OnVmViolationListener


public static interface StrictMode.OnVmViolationListener

android.os.StrictMode.OnVmViolationListener


When #StrictMode.VmPolicy.Builder.penaltyListener(Executor, OnVmViolationListener) is enabled, the listener is called on the provided executor when a VM violation occurs.

Summary

Public methods

abstract void onVmViolation(Violation v)

Called on a VM policy violation.

Public methods

onVmViolation

Added in API level 28
public abstract void onVmViolation (Violation v)

Called on a VM policy violation.

Parameters
v Violation