Class FlurryAgent.UserProperties

java.lang.Object
com.flurry.android.FlurryAgent.UserProperties
Enclosing class:
FlurryAgent

public static class FlurryAgent.UserProperties extends Object
User Properties class for FlurryAgent.
  • Field Details

    • PROPERTY_CURRENCY_PREFERENCE

      public static final String PROPERTY_CURRENCY_PREFERENCE
      Standard User Property: Currency Preference. Follow ISO 4217: https://en.wikipedia.org/wiki/ISO_4217 E.g., "USD", "EUR", "JPY", "CNY", ...
      See Also:
    • PROPERTY_PURCHASER

      public static final String PROPERTY_PURCHASER
      Standard User Property: Purchaser. E.g., "true" or "false"
      See Also:
    • PROPERTY_REGISTERED_USER

      public static final String PROPERTY_REGISTERED_USER
      Standard User Property: Registered user. E.g., "true" or "false"
      See Also:
    • PROPERTY_SUBSCRIBER

      public static final String PROPERTY_SUBSCRIBER
      Standard User Property: Subscriber. E.g., "true" or "false"
      See Also:
  • Constructor Details

    • UserProperties

      public UserProperties()
  • Method Details

    • set

      public static void set(@NonNull String propertyName, @Nullable String propertyValue)
      Exactly set, or replace if any previously exists, any state for the property. null clears the property state.
      Parameters:
      propertyName - property name
      propertyValue - single property value
    • set

      public static void set(@NonNull String propertyName, @Nullable List<String> propertyValues)
      Exactly set, or replace if any previously exists, any state for the property. Empty list or null clears the property state.
      Parameters:
      propertyName - property name
      propertyValues - list of property values
    • add

      public static void add(@NonNull String propertyName, @NonNull String propertyValue)
      Extend any property, even no previous property. Adding values already included in the state has no effect and does not error.
      Parameters:
      propertyName - property name
      propertyValue - single property value
    • add

      public static void add(@NonNull String propertyName, @NonNull List<String> propertyValues)
      Extend any property, even no previous property. Adding values already included in the state has no effect and does not error.
      Parameters:
      propertyName - property name
      propertyValues - list of property values
    • remove

      public static void remove(@NonNull String propertyName, @NonNull String propertyValue)
      Reduce any property. Removing values not already included in the state has no effect and does not error
      Parameters:
      propertyName - roperty name
      propertyValue - single property value
    • remove

      public static void remove(@NonNull String propertyName, @NonNull List<String> propertyValues)
      Reduce any property. Removing values not already included in the state has no effect and does not error
      Parameters:
      propertyName - property name
      propertyValues - list of property values
    • remove

      public static void remove(@NonNull String propertyName)
      Exactly set, or replace if any previously exists, any state for the property to be empty.
      Parameters:
      propertyName - property name
    • flag

      public static void flag(@NonNull String propertyName)
      Exactly set, or replace if any previously exists, any state for the property to a single true state. Implies that value is boolean and should only be flagged and cleared.
      Parameters:
      propertyName - property name