FragmentStrictMode.Policy

public final class FragmentStrictMode.Policy


FragmentStrictMode policy applied to a certain FragmentManager (or globally).

This policy can either be enabled globally using setDefaultPolicy or for a specific FragmentManager using setStrictModePolicy. The current policy can be retrieved using getDefaultPolicy and getStrictModePolicy respectively.

Note that multiple penalties may be provided and they're run in order from least to most severe (logging before process death, for example). There's currently no mechanism to choose different penalties for different detected actions.

Summary

Nested types

FragmentStrictMode.Policy.Builder

Creates Policy instances.

Constants

static final @NonNull FragmentStrictMode.Policy

The default, lax policy which doesn't catch anything.

Constants

LAX

@NonNull
public static final @NonNull FragmentStrictMode.Policy LAX

The default, lax policy which doesn't catch anything.