SetTargetFragmentUsageViolation

public final class SetTargetFragmentUsageViolation extends Violation, TargetFragmentUsageViolation


See FragmentStrictMode.Policy.Builder.detectTargetFragmentUsage.

Summary

Public fields

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 fields

requestCode

@NonNull
public final int requestCode

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

targetFragment

@NonNull
public final @NonNull Fragment targetFragment

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