SetTargetFragmentUsageViolation


public final class SetTargetFragmentUsageViolation extends TargetFragmentUsageViolation


See FragmentStrictMode.Policy.Builder.detectTargetFragmentUsage.

Summary

Public methods

final int

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

final @NonNull Fragment

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

Public methods

getRequestCode

Added in 1.4.0
public final int getRequestCode()

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

getTargetFragment

Added in 1.4.0
public final @NonNull Fragment getTargetFragment()

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