Package com.dynatrace.android.agent.conf
Class UserPrivacyOptions.Builder
- java.lang.Object
-
- com.dynatrace.android.agent.conf.UserPrivacyOptions.Builder
-
- Enclosing class:
- UserPrivacyOptions
public static class UserPrivacyOptions.Builder extends Object
Builderis used to build instances ofUserPrivacyOptionsfrom values configured by the setters.- Since:
- 8.191
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructs aUserPrivacyOptions.Builderobject
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserPrivacyOptionsbuild()Returns an instance ofUserPrivacyOptionswith the specified values of this builder.UserPrivacyOptions.BuilderwithCrashReplayOptedIn(boolean crashReplayOptedIn)Sets the privacy setting for the crash replay feature.UserPrivacyOptions.BuilderwithCrashReportingOptedIn(boolean crashReportingOptedIn)Sets the privacy setting for crash reporting.UserPrivacyOptions.BuilderwithDataCollectionLevel(DataCollectionLevel dataCollectionLevel)Sets the data collection level specified by the user.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructs aUserPrivacyOptions.Builderobject
-
-
Method Detail
-
withDataCollectionLevel
public UserPrivacyOptions.Builder withDataCollectionLevel(DataCollectionLevel dataCollectionLevel)
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:
- instance of
thisbuilder
-
withCrashReportingOptedIn
public UserPrivacyOptions.Builder withCrashReportingOptedIn(boolean crashReportingOptedIn)
Sets the privacy setting for crash reporting.- Parameters:
crashReportingOptedIn- the opt-in value specified by the user- Returns:
- instance of
thisbuilder
-
withCrashReplayOptedIn
public UserPrivacyOptions.Builder withCrashReplayOptedIn(boolean crashReplayOptedIn)
Sets the privacy setting for the crash replay feature.- Parameters:
crashReplayOptedIn- the opt-in value specified by the user- Returns:
- instance of
thisbuilder - Since:
- 8.217
-
build
public UserPrivacyOptions build()
Returns an instance ofUserPrivacyOptionswith the specified values of this builder.- Returns:
- an instance of
UserPrivacyOptions
-
-