Package com.launchdarkly.sdk.android.env
Class EnvironmentReporterBuilder
java.lang.Object
com.launchdarkly.sdk.android.env.EnvironmentReporterBuilder
Builder for making an
IEnvironmentReporter with various options.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()voidenableCollectionFromPlatform(android.app.Application application) Enables automatically collecting attributes from the platform.voidsetApplicationInfo(ApplicationInfo applicationInfo) Sets the application info that this environment reporter will report when asked in the future, overriding the automatically sourcedApplicationInfo
-
Constructor Details
-
EnvironmentReporterBuilder
public EnvironmentReporterBuilder()
-
-
Method Details
-
setApplicationInfo
Sets the application info that this environment reporter will report when asked in the future, overriding the automatically sourcedApplicationInfo- 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
- Returns:
- the
IEnvironmentReporter
-