analyticsEndpoint static method

APIEndpoint analyticsEndpoint(
  1. SDKEnvironment environment
)

Get the analytics endpoint for the given environment.

Implementation

static APIEndpoint analyticsEndpoint(SDKEnvironment environment) {
  switch (environment) {
    case SDKEnvironment.development:
      return APIEndpoint.devAnalytics;
    case SDKEnvironment.staging:
    case SDKEnvironment.production:
      return APIEndpoint.analytics;
  }
}