FragmentReuseViolation

public final class FragmentReuseViolation extends Violation

Object
   ↳ Violation
     ↳ FragmentReuseViolation

See FragmentStrictMode.Policy.Builder.detectFragmentReuse.

Summary

Public fields

@Nullable Throwable
final @NonNull Fragment

Gets the Fragment causing the Violation.

@Nullable String
final @NonNull String

Gets the unique ID of the previous instance of the Fragment causing the Violation.

Public fields

cause

@Nullable
public @Nullable Throwable cause

fragment

@NonNull
public final @NonNull Fragment fragment

Gets the Fragment causing the Violation.

message

@Nullable
public @Nullable String message

previousFragmentId

@NonNull
public final @NonNull String previousFragmentId

Gets the unique ID of the previous instance of the Fragment causing the Violation.