public enum AndroidReachabilityInspectors extends java.lang.Enum<AndroidReachabilityInspectors>
Reachability.Inspectors that knows about common AOSP and library
classes.
These are heuristics based on our experience and knownledge of AOSP and various library
internals. We only make a reachability decision if we're reasonably sure such reachability is
unlikely to be the result of a programmer mistake.
For example, no matter how many mistakes we make in our code, the value of Activity.mDestroy
will not be influenced by those mistakes.| Modifier and Type | Class and Description |
|---|---|
static class |
AndroidReachabilityInspectors.ActivityInspector |
static class |
AndroidReachabilityInspectors.ApplicationInspector |
static class |
AndroidReachabilityInspectors.DialogInspector |
static class |
AndroidReachabilityInspectors.FragmentInspector |
static class |
AndroidReachabilityInspectors.MessageQueueInspector |
static class |
AndroidReachabilityInspectors.MortarPresenterInspector |
static class |
AndroidReachabilityInspectors.SupportFragmentInspector |
static class |
AndroidReachabilityInspectors.ViewInspector |
| Enum Constant and Description |
|---|
ACTIVITY |
APPLICATION |
DIALOG |
FRAGMENT |
MESSAGE_QUEUE |
MORTAR_PRESENTER |
SUPPORT_FRAGMENT |
VIEW |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.Class<? extends com.squareup.leakcanary.Reachability.Inspector>> |
defaultAndroidInspectors() |
static AndroidReachabilityInspectors |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AndroidReachabilityInspectors[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AndroidReachabilityInspectors VIEW
public static final AndroidReachabilityInspectors ACTIVITY
public static final AndroidReachabilityInspectors DIALOG
public static final AndroidReachabilityInspectors APPLICATION
public static final AndroidReachabilityInspectors FRAGMENT
public static final AndroidReachabilityInspectors SUPPORT_FRAGMENT
public static final AndroidReachabilityInspectors MESSAGE_QUEUE
public static final AndroidReachabilityInspectors MORTAR_PRESENTER
public static AndroidReachabilityInspectors[] values()
for (AndroidReachabilityInspectors c : AndroidReachabilityInspectors.values()) System.out.println(c);
public static AndroidReachabilityInspectors valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static java.util.List<java.lang.Class<? extends com.squareup.leakcanary.Reachability.Inspector>> defaultAndroidInspectors()