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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
void
enableCollectionFromPlatform
(android.app.Application application) Enables automatically collecting attributes from the platform.void
setApplicationInfo
(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
-