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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns an instance ofUserPrivacyOptionswith the specified values of this builder.withCrashReplayOptedIn(boolean crashReplayOptedIn) Deprecated.withCrashReportingOptedIn(boolean crashReportingOptedIn) Sets the privacy setting for crash reporting.withDataCollectionLevel(DataCollectionLevel dataCollectionLevel) Sets the data collection level specified by the user.withScreenRecordOptedIn(Boolean screenRecordOptedIn) Sets the privacy setting for the replay screen recording feature.
-
Constructor Details
-
Builder
public Builder()Constructs aUserPrivacyOptions.Builderobject
-
-
Method Details
-
withDataCollectionLevel
Sets the data collection level specified by the user.The method call is ignored, when a
nullvalue is used for parameterdataCollectionLevel.- Parameters:
dataCollectionLevel- the specified data collection level from the user- Returns:
- this
UserPrivacyOptions.Builderobject (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.Builderobject (for usage as fluent API)
-
withCrashReplayOptedIn
@Deprecated(since="8.321") public UserPrivacyOptions.Builder withCrashReplayOptedIn(boolean crashReplayOptedIn) Deprecated.As of 8.321, usewithScreenRecordOptedIn(Boolean)instead.Sets the privacy setting for the crash replay feature.- Parameters:
crashReplayOptedIn- the opt-in value specified by the user- Returns:
- this
UserPrivacyOptions.Builderobject (for usage as fluent API) - Since:
- 8.217
-
withScreenRecordOptedIn
Sets the privacy setting for the replay screen recording feature.- Parameters:
screenRecordOptedIn- the opt-in value specified by the user- Returns:
- this
UserPrivacyOptions.Builderobject (for usage as fluent API) - Since:
- 8.287
-
build
Returns an instance ofUserPrivacyOptionswith the specified values of this builder.- Returns:
- an instance of
UserPrivacyOptions
-
withScreenRecordOptedIn(Boolean)instead.