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

SetTargetFragmentUsageViolation

class SetTargetFragmentUsageViolation : TargetFragmentUsageViolation

kotlin.Any
   ↳ kotlin.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ androidx.fragment.app.strictmode.Violation
           ↳ androidx.fragment.app.strictmode.TargetFragmentUsageViolation
             ↳ androidx.fragment.app.strictmode.SetTargetFragmentUsageViolation

See FragmentStrictMode.Policy.Builder.detectTargetFragmentUsage.

Summary

Public properties

Int

Gets the request code that was passed in the call causing the Violation.

Fragment

Gets the target Fragment that was being set in the call causing the Violation.

Inherited functions

From kotlin.Throwable

Inherited properties

From kotlin.Throwable
From androidx.fragment.app.strictmode.Violation
Fragment

Gets the Fragment causing the Violation.

Public properties

requestCode

val requestCodeInt

Gets the request code that was passed in the call causing the Violation.

targetFragment

val targetFragmentFragment

Gets the target Fragment that was being set in the call causing the Violation.