Package com.flurry.android
Class FlurryPublisherSegmentation
java.lang.Object
com.flurry.android.FlurryPublisherSegmentation
The Flurry Publisher Segmentation allow you to receive Publisher Segmentation data.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Callback to be notified when the Publisher Segmentation data have been fetched and ready to use -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
fetch()
Fetch will trigger an async call to the server.Retrieves key-value pairs of the Publisher Segmentation data.static boolean
static void
Register a callback listener to get notified when the Publisher Segmentation data are fetched.static void
Unregister a callback listener
-
Constructor Details
-
FlurryPublisherSegmentation
public FlurryPublisherSegmentation()
-
-
Method Details
-
registerFetchListener
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
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
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.
-