SetTargetFragmentUsageViolation

public final class SetTargetFragmentUsageViolation
extends TargetFragmentUsageViolation

java.lang.Object
   ↳ java.lang.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 methods

String getMessage()
int getRequestCode()

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

Fragment getTargetFragment()

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

Inherited methods

Public methods

getMessage

public String getMessage ()

Returns
String

getRequestCode

public int getRequestCode ()

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

Returns
int

getTargetFragment

public Fragment getTargetFragment ()

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

Returns
Fragment