public final class FragmentStrictMode.Policy

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

This policy can either be enabled globally using defaultPolicy or for a specific FragmentManager using FragmentManager.setStrictModePolicy. The current policy can be retrieved using defaultPolicy and FragmentManager.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.


Nested types


Creates Policy instances.