Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #50 from Microsoft/feature/remove-deprecated-methods
Browse files Browse the repository at this point in the history
Feature/remove deprecated methods
  • Loading branch information
Christoph Wendt committed Jun 11, 2015
2 parents 101f2d5 + f3b6e20 commit 8210bce
Showing 1 changed file with 1 addition and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,7 @@ public enum ApplicationInsights {
this.config = new ApplicationInsightsConfig();
}

/**
* Configure Application Insights
* Note: This should be called before start
*
* @param context the context associated with Application Insights
* @param context the application context associated with Application Insights
* @warning auto-collection of lifecycle-events is disabled when using this method
* @deprecated This method is deprecated: Use setup(Context context, Application application) instead.
*/
public static void setup(Context context) {
ApplicationInsights.INSTANCE.setupInstance(context, null, null);
}

/**
/**
* Configure Application Insights
* Note: This should be called before start
*
Expand All @@ -113,19 +100,6 @@ public static void setup(Context context, Application application) {
ApplicationInsights.INSTANCE.setupInstance(context, application, null);
}

/**
* Configure Application Insights
* Note: This should be called before start
*
* @param context the application context associated with Application Insights
* @param instrumentationKey the instrumentation key associated with the app
* @warning auto-collection of lifecycle-events is disabled when using this method
* @deprecated This method is deprecated: Use setup(Context context, Application application) instead.
*/
public static void setup(Context context, String instrumentationKey) {
ApplicationInsights.INSTANCE.setupInstance(context, null, instrumentationKey);
}

/**
* Configure Application Insights
* Note: This should be called before start
Expand Down Expand Up @@ -241,26 +215,6 @@ public static void sendPendingData() {
Channel.getInstance().synchronize();
}

/**
* Enable auto page view tracking as well as auto session tracking. This will only work, if
* {@link ApplicationInsights#telemetryDisabled} is set to false.
*
* @param application the application used to register the life cycle callbacks
* @deprecated This method is deprecated: Use setAutoCollectionDisabled instead.
*/
public static void enableActivityTracking(Application application) {
if (!isRunning) { //TODO fix log warning
InternalLogging.warn(TAG, "Could not set activity tracking, because " +
"ApplicationInsights has not been started, yet.");
return;
}
if (!INSTANCE.telemetryDisabled) {
if(application != null && Util.isLifecycleTrackingAvailable()){
LifeCycleTracking.registerActivityLifecycleCallbacks(application);
}
}
}

/**
* Enable auto page view tracking. This will only work, if ApplicationInsights has been setup
* with an application. This method should only be called after
Expand Down

0 comments on commit 8210bce

Please sign in to comment.