Package com.batch.android.core
Class ReflectionHelper
- java.lang.Object
-
- com.batch.android.core.ReflectionHelper
-
public class ReflectionHelper extends java.lang.ObjectClass grouping all of the reflection based checks that we are doing.Using generic helpers is prohibited, as proguard does not detect the use, and does not rewrite the obfuscated names correctly.
That means that this class WILL have a lot of the same code by design. Please do not refactor this out :)
-
-
Constructor Summary
Constructors Constructor Description ReflectionHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisAndroidXAppCompatActivityPresent()static booleanisAndroidXFragmentPresent()static booleanisGMSGoogleCloudMessagingPresent()static booleanisGMSInstanceIDPresent()static booleanisInstanceOfCoordinatorLayout(java.lang.Object o)static booleanoptOutOfDarkMode(android.view.View view)static booleanoptOutOfSmartReply(androidx.core.app.NotificationCompat.Builder builder)
-
-
-
Method Detail
-
isAndroidXFragmentPresent
public static boolean isAndroidXFragmentPresent()
-
isAndroidXAppCompatActivityPresent
public static boolean isAndroidXAppCompatActivityPresent()
-
isInstanceOfCoordinatorLayout
public static boolean isInstanceOfCoordinatorLayout(java.lang.Object o)
-
optOutOfSmartReply
public static boolean optOutOfSmartReply(androidx.core.app.NotificationCompat.Builder builder)
-
optOutOfDarkMode
public static boolean optOutOfDarkMode(android.view.View view)
-
isGMSGoogleCloudMessagingPresent
public static boolean isGMSGoogleCloudMessagingPresent()
-
isGMSInstanceIDPresent
public static boolean isGMSInstanceIDPresent()
-
-