public class MetricsApi
extends java.lang.Object
Constructor and Description |
---|
MetricsApi() |
Modifier and Type | Method and Description |
---|---|
static void |
init(LocalBroadcastManager lbm)
Must be called only once by the AtakBroadcast class.
|
static void |
record(android.content.Intent intent)
Used to record an nonnull intent event.
|
static void |
record(java.lang.String category,
android.os.Bundle b)
Used to record a category and a bundle, this call will pass the bundle onto
passive listeners that implement the MetricApi.METRIC_INTENT broadcast
receiver.
|
static void |
register(android.content.BroadcastReceiver receiver)
Call to register a BroadcastReceiver that will obtain metric information.
|
static boolean |
shouldRecordMetric()
Should be called prior to calling record metric in order to make sure
that the recording will be used.
|
static void |
unregister(android.content.BroadcastReceiver receiver)
Call to unregister a BroadcastReceiver that will obtain metric information.
|
public static void init(LocalBroadcastManager lbm)
lbm
- the local broadcast manager in use by the metrics api.public static void register(android.content.BroadcastReceiver receiver)
public static void unregister(android.content.BroadcastReceiver receiver)
public static boolean shouldRecordMetric()
public static void record(android.content.Intent intent)
intent
- either a local or system intent.public static void record(java.lang.String category, android.os.Bundle b)
category
- is the category used to bin the bundleb
- the name value pairs passed in as a bundle