@Test public void singleton() { Assert.assertSame(Analytics.getInstance(), Analytics.getInstance()); }
@SuppressWarnings({"WeakerAccess", "RedundantSuppression"}) public static synchronized Analytics getInstance() { if (sInstance == null) { sInstance = new Analytics(); } return sInstance; }
Analytics extends AbstractAppCenterService { @SuppressWarnings({"WeakerAccess", "RedundantSuppression"}) public static synchronized Analytics getInstance() { if (sInstance == null) { sInstance = new Analytics(); } return sInstance; } }
Analytics extends AbstractAppCenterService { @SuppressWarnings({"WeakerAccess", "RedundantSuppression"}) public static synchronized Analytics getInstance() { if (sInstance == null) { sInstance = new Analytics(); } return sInstance; } private  Analytics(); }
Analytics extends AbstractAppCenterService { @SuppressWarnings({"WeakerAccess", "RedundantSuppression"}) public static synchronized Analytics getInstance() { if (sInstance == null) { sInstance = new Analytics(); } return sInstance; } private  Analytics(); @SuppressWarnings({"WeakerAccess", "RedundantSuppression"}) static synchronized Analytics getInstance(); static AppCenterFuture<Boolean> isEnabled(); static AppCenterFuture<Void> setEnabled(boolean enabled); static boolean setTransmissionInterval(int seconds); static void pause(); static void resume(); static void trackEvent(String name); static void trackEvent(String name, Map<String, String> properties); static void trackEvent(String name, Map<String, String> properties, int flags); static void trackEvent(String name, EventProperties properties); static void trackEvent(String name, EventProperties properties, int flags); static AnalyticsTransmissionTarget getTransmissionTarget(String transmissionTargetToken); @Override boolean isAppSecretRequired(); @Override String getServiceName(); @Override Map<String, LogFactory> getLogFactories(); @Override synchronized void onActivityResumed(final Activity activity); @Override synchronized void onActivityPaused(Activity activity); @Override synchronized void onStarted(@NonNull Context context, @NonNull Channel channel, String appSecret, String transmissionTargetToken, boolean startedFromApp); @Override void onConfigurationUpdated(String appSecret, String transmissionTargetToken); }
Analytics extends AbstractAppCenterService { @SuppressWarnings({"WeakerAccess", "RedundantSuppression"}) public static synchronized Analytics getInstance() { if (sInstance == null) { sInstance = new Analytics(); } return sInstance; } private  Analytics(); @SuppressWarnings({"WeakerAccess", "RedundantSuppression"}) static synchronized Analytics getInstance(); static AppCenterFuture<Boolean> isEnabled(); static AppCenterFuture<Void> setEnabled(boolean enabled); static boolean setTransmissionInterval(int seconds); static void pause(); static void resume(); static void trackEvent(String name); static void trackEvent(String name, Map<String, String> properties); static void trackEvent(String name, Map<String, String> properties, int flags); static void trackEvent(String name, EventProperties properties); static void trackEvent(String name, EventProperties properties, int flags); static AnalyticsTransmissionTarget getTransmissionTarget(String transmissionTargetToken); @Override boolean isAppSecretRequired(); @Override String getServiceName(); @Override Map<String, LogFactory> getLogFactories(); @Override synchronized void onActivityResumed(final Activity activity); @Override synchronized void onActivityPaused(Activity activity); @Override synchronized void onStarted(@NonNull Context context, @NonNull Channel channel, String appSecret, String transmissionTargetToken, boolean startedFromApp); @Override void onConfigurationUpdated(String appSecret, String transmissionTargetToken); static final String LOG_TAG; }