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

GetTargetFragmentUsageViolation

Added in 1.4.0

public final class GetTargetFragmentUsageViolation extends TargetFragmentUsageViolation

java.lang.Object
   ↳ kotlin.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ androidx.fragment.app.strictmode.Violation
           ↳ androidx.fragment.app.strictmode.TargetFragmentUsageViolation
             ↳ androidx.fragment.app.strictmode.GetTargetFragmentUsageViolation

See FragmentStrictMode.Policy.Builder.detectTargetFragmentUsage.

Summary

Inherited methods

From kotlin.Throwable
From androidx.fragment.app.strictmode.Violation
final @NonNull Fragment

Gets the Fragment causing the Violation.