{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

FragmentStrictMode.OnViolationListener

fun interface FragmentStrictMode.OnViolationListener


When Policy.Builder.penaltyListener is enabled, the listener is called when a violation occurs.

Summary

Public functions

Unit
onViolation(violation: Violation)

Called on a policy violation.

Public functions

onViolation

fun onViolation(violation: Violation): Unit

Called on a policy violation.