Class PreloadInfo.Builder

java.lang.Object
com.yandex.metrica.PreloadInfo.Builder
Enclosing class:
PreloadInfo

public static class PreloadInfo.Builder
extends java.lang.Object
Builds a new PreloadInfo instance.
  • Method Summary

    Modifier and Type Method Description
    PreloadInfo build()
    Creates a new instances of PreloadInfo with defined configuration.
    PreloadInfo.Builder setAdditionalParams​(java.lang.String key, java.lang.String value)
    Sets additional parameters for tracking preloaded apps.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • setAdditionalParams

      public PreloadInfo.Builder setAdditionalParams​(java.lang.String key, java.lang.String value)
      Sets additional parameters for tracking preloaded apps. Can be called many times for different key-pairs.
      Parameters:
      key - The key of key-value pair of additional parameters. Cannot be null. The pair with null-key will be ignored.
      value - The value of key-value pair of additional parameters. Cannot be null. The pair with null-value will be ignored.
      Returns:
      The same PreloadInfo.Builder instance.
      See Also:
      PreloadInfo.getAdditionalParams()
    • build

      public PreloadInfo build()
      Creates a new instances of PreloadInfo with defined configuration.
      Returns:
      PreloadInfo object.