Package com.dynatrace.android.agent.conf
Class UserPrivacyOptions.Builder
java.lang.Object
com.dynatrace.android.agent.conf.UserPrivacyOptions.Builder
- Enclosing class:
- UserPrivacyOptions
Builder
is used to build instances of UserPrivacyOptions
from values configured by the setters.- Since:
- 8.191
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns an instance ofUserPrivacyOptions
with the specified values of this builder.withCrashReplayOptedIn
(boolean crashReplayOptedIn) Sets the privacy setting for the crash replay feature.withCrashReportingOptedIn
(boolean crashReportingOptedIn) Sets the privacy setting for crash reporting.withDataCollectionLevel
(DataCollectionLevel dataCollectionLevel) Sets the data collection level specified by the user.
-
Constructor Details
-
Builder
public Builder()Constructs aUserPrivacyOptions.Builder
object
-
-
Method Details
-
withDataCollectionLevel
Sets the data collection level specified by the user.The method call is ignored, when a
null
value is used for parameterdataCollectionLevel
.- Parameters:
dataCollectionLevel
- the specified data collection level from the user- Returns:
- this
UserPrivacyOptions.Builder
object (for usage as fluent API)
-
withCrashReportingOptedIn
Sets the privacy setting for crash reporting.- Parameters:
crashReportingOptedIn
- the opt-in value specified by the user- Returns:
- this
UserPrivacyOptions.Builder
object (for usage as fluent API)
-
withCrashReplayOptedIn
Sets the privacy setting for the crash replay feature.- Parameters:
crashReplayOptedIn
- the opt-in value specified by the user- Returns:
- this
UserPrivacyOptions.Builder
object (for usage as fluent API) - Since:
- 8.217
-
build
Returns an instance ofUserPrivacyOptions
with the specified values of this builder.- Returns:
- an instance of
UserPrivacyOptions
-