public enum AndroidReachabilityInspectors extends java.lang.Enum<AndroidReachabilityInspectors>
Reachability.Inspector
s 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.MainThreadInspector |
static class |
AndroidReachabilityInspectors.MessageQueueInspector |
static class |
AndroidReachabilityInspectors.MortarPresenterInspector |
static class |
AndroidReachabilityInspectors.SupportFragmentInspector |
static class |
AndroidReachabilityInspectors.ViewImplInspector |
static class |
AndroidReachabilityInspectors.ViewInspector |
static class |
AndroidReachabilityInspectors.WindowInspector |
Enum Constant and Description |
---|
ACTIVITY |
APPLICATION |
DIALOG |
FRAGMENT |
MAIN_THEAD |
MESSAGE_QUEUE |
MORTAR_PRESENTER |
SUPPORT_FRAGMENT |
VIEW |
VIEW_ROOT_IMPL |
WINDOW |
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 final AndroidReachabilityInspectors VIEW_ROOT_IMPL
public static final AndroidReachabilityInspectors MAIN_THEAD
public static final AndroidReachabilityInspectors WINDOW
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 null@NonNull public static java.util.List<java.lang.Class<? extends com.squareup.leakcanary.Reachability.Inspector>> defaultAndroidInspectors()