Class FlurryEvent.Params

java.lang.Object
com.flurry.android.FlurryEvent.Params
Enclosing class:
FlurryEvent

public static class FlurryEvent.Params extends Object
The parameters map object for logging the standard events.
  • Constructor Details

    • Params

      public Params()
      Create a parameters map object for logging the standard events.
    • Params

      public Params(FlurryEvent.Params parameters)
      Create a parameters map object for logging the standard events. And copies all of the parameters from the specified map to this map.
      Parameters:
      parameters - parameters to be stored in this map
  • Method Details

    • getParams

      public Map<Object,String> getParams()
      Get the map object of the parameters.
      Returns:
      the map object of the parameters.
    • clear

      public FlurryEvent.Params clear()
      Clear the parameters.
      Returns:
      The Params instance.
    • remove

      Removes the parameter for a key if it is present.
      Parameters:
      param - key whose mapping is to be removed
      Returns:
      The Params instance.
    • remove

      public FlurryEvent.Params remove(String key)
      Removes the parameter for a key if it is present.
      Parameters:
      key - key whose mapping is to be removed
      Returns:
      The Params instance.
    • putAll

      public FlurryEvent.Params putAll(FlurryEvent.Params parameters)
      Copies all of the parameters from the specified map to this map.
      Parameters:
      parameters - parameters to be stored in this map
      Returns:
      The Params instance.
    • putString

      public FlurryEvent.Params putString(FlurryEvent.StringParam param, String value)
      Put a new parameter with the format of { FlurryEvent.Param, String }.
      Parameters:
      param - the enum of the FlurryEvent.Param.
      value - the value of the parameter.
      Returns:
      The Params instance.
    • putString

      public FlurryEvent.Params putString(String key, String value)
      Put a new parameter with the format of { String, String }.
      Parameters:
      key - provides the user defined key.
      value - the value of the parameter.
      Returns:
      The Params instance.
    • putInteger

      public FlurryEvent.Params putInteger(FlurryEvent.IntegerParam param, int value)
      Put a new parameter with the format of { FlurryEvent.Param, Integer }.
      Parameters:
      param - the enum of the FlurryEvent.Param.
      value - the value of the parameter.
      Returns:
      The Params instance.
    • putInteger

      public FlurryEvent.Params putInteger(String key, int value)
      Put a new parameter with the format of { String, Integer }.
      Parameters:
      key - provides the user defined key.
      value - the value of the parameter.
      Returns:
      The Params instance.
    • putLong

      public FlurryEvent.Params putLong(FlurryEvent.IntegerParam param, long value)
      Put a new parameter with the format of { FlurryEvent.Param, Long }.
      Parameters:
      param - the enum of the FlurryEvent.Param.
      value - the value of the parameter.
      Returns:
      The Params instance.
    • putLong

      public FlurryEvent.Params putLong(String key, long value)
      Put a new parameter with the format of { String, Long }.
      Parameters:
      key - provides the user defined key.
      value - the value of the parameter.
      Returns:
      The Params instance.
    • putDouble

      public FlurryEvent.Params putDouble(FlurryEvent.DoubleParam param, double value)
      Put a new parameter with the format of { FlurryEvent.Param, Double }.
      Parameters:
      param - the enum of the FlurryEvent.Param.
      value - the value of the parameter.
      Returns:
      The Params instance.
    • putDouble

      public FlurryEvent.Params putDouble(String key, double value)
      Put a new parameter with the format of { String, Double }.
      Parameters:
      key - provides the user defined key.
      value - the value of the parameter.
      Returns:
      The Params instance.
    • putBoolean

      public FlurryEvent.Params putBoolean(FlurryEvent.BooleanParam param, boolean value)
      Put a new parameter with the format of { FlurryEvent.Param, Boolean }.
      Parameters:
      param - the enum of the FlurryEvent.Param.
      value - the value of the parameter.
      Returns:
      The Params instance.
    • putBoolean

      public FlurryEvent.Params putBoolean(String key, boolean value)
      Put a new parameter with the format of { String, Boolean }.
      Parameters:
      key - provides the user defined key.
      value - the value of the parameter.
      Returns:
      The Params instance.