public class ContentDiscoverer
extends java.lang.Object
*Once content discovery is enabled* through Branch, this class is responsible for discovering content entities within an app. It will crawl the view hierarchy and read through text on pages similar to the functionality of a web crawler. The primary uses of the data are for app indexing, content analytics, content recommendation and future content-based products.
Note that this feature can be controlled from the dashboard.| Modifier and Type | Method and Description |
|---|---|
void |
discoverContent(android.app.Activity activity,
java.lang.String referredUrl) |
org.json.JSONObject |
getContentDiscoverDataForCloseRequest(android.content.Context context) |
static ContentDiscoverer |
getInstance() |
void |
onActivityStopped(android.app.Activity activity) |
void |
onSessionStarted(android.app.Activity activity,
java.lang.String referredUrl) |
public static ContentDiscoverer getInstance()
public void discoverContent(android.app.Activity activity,
java.lang.String referredUrl)
public void onActivityStopped(android.app.Activity activity)
public void onSessionStarted(android.app.Activity activity,
java.lang.String referredUrl)
public org.json.JSONObject getContentDiscoverDataForCloseRequest(android.content.Context context)