Class EnvironmentReporterBuilder

java.lang.Object
com.launchdarkly.sdk.android.env.EnvironmentReporterBuilder

public class EnvironmentReporterBuilder extends Object
Builder for making an IEnvironmentReporter with various options.
  • Constructor Details

    • EnvironmentReporterBuilder

      public EnvironmentReporterBuilder()
  • Method Details

    • setApplicationInfo

      public void setApplicationInfo(ApplicationInfo applicationInfo)
      Sets the application info that this environment reporter will report when asked in the future, overriding the automatically sourced ApplicationInfo
      Parameters:
      applicationInfo - to report.
    • enableCollectionFromPlatform

      public void enableCollectionFromPlatform(android.app.Application application)
      Enables automatically collecting attributes from the platform.
      Parameters:
      application - reference for platform calls
    • build

      public IEnvironmentReporter build()
      Returns:
      the IEnvironmentReporter