Class FlurryPublisherSegmentation

java.lang.Object
com.flurry.android.FlurryPublisherSegmentation

public final class FlurryPublisherSegmentation extends Object
The Flurry Publisher Segmentation allow you to receive Publisher Segmentation data.
See Also:
  • Constructor Details

    • FlurryPublisherSegmentation

      public FlurryPublisherSegmentation()
  • Method Details

    • registerFetchListener

      public static void registerFetchListener(FlurryPublisherSegmentation.FetchListener listener)
      Register a callback listener to get notified when the Publisher Segmentation data are fetched. Note: If data are fetched at the time you are registering this listener, that will get notified immediately
      Parameters:
      listener - The listener to be added
    • unregisterFetchListener

      public static void unregisterFetchListener(FlurryPublisherSegmentation.FetchListener listener)
      Unregister a callback listener
      Parameters:
      listener - The listener to be removed
    • isFetchFinished

      public static boolean isFetchFinished()
      Returns:
      True when the Publisher Segmentation data have been fetched and ready to use, false otherwise
    • getPublisherData

      public static Map<String,String> getPublisherData()
      Retrieves key-value pairs of the Publisher Segmentation data.
      Returns:
      The key-value pairs of the Publisher Segmentation data, null if not yet fetched.
    • fetch

      public static void fetch()
      Fetch will trigger an async call to the server. Server has a throttle where when the user calls fetch Config many times in a row, it will basically do a no-op.