Class UserPrivacyOptions.Builder

java.lang.Object
com.dynatrace.android.agent.conf.UserPrivacyOptions.Builder
Enclosing class:
UserPrivacyOptions

public static class UserPrivacyOptions.Builder extends Object
Builder is used to build instances of UserPrivacyOptions from values configured by the setters.
Since:
8.191
  • Constructor Details

  • Method Details

    • withDataCollectionLevel

      public UserPrivacyOptions.Builder withDataCollectionLevel(DataCollectionLevel dataCollectionLevel)
      Sets the data collection level specified by the user.

      The method call is ignored, when a null value is used for parameter dataCollectionLevel.

      Parameters:
      dataCollectionLevel - the specified data collection level from the user
      Returns:
      this UserPrivacyOptions.Builder object (for usage as fluent API)
    • 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:
      this UserPrivacyOptions.Builder object (for usage as fluent API)
    • 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:
      this UserPrivacyOptions.Builder object (for usage as fluent API)
      Since:
      8.217
    • build

      public UserPrivacyOptions build()
      Returns an instance of UserPrivacyOptions with the specified values of this builder.
      Returns:
      an instance of UserPrivacyOptions