FragmentStrictMode.OnViolationListener

public static interface FragmentStrictMode.OnViolationListener

androidx.fragment.app.strictmode.FragmentStrictMode.OnViolationListener


When #FragmentStrictMode.Policy.Builder.penaltyListener(FragmentStrictMode.OnViolationListener) is enabled, the listener is called when a violation occurs.

Summary

Public methods

abstract void onViolation(Violation violation)

Called on a policy violation.

Public methods

onViolation

public abstract void onViolation (Violation violation)

Called on a policy violation.

Parameters
violation Violation