public final class UsageReporter extends Object
Should be called in a PlugIn's run() method as UsageReporter.reportEvent(this).send()
Modifier and Type | Method and Description |
---|---|
static UsageReporter |
reportEvent(Object o)
Prepare the instance for sending a report on a specific class;
Class.getName()
is added to the 'action' field of the report,
category is "Plugin Usage" and label is the version string generated by
VersionUtils.getVersion(java.lang.Class<?>) . |
void |
send()
Send the report to Google Analytics in the form of an HTTP request for a
1-pixel GIF with lots of parameters set
|
public void send()
public static UsageReporter reportEvent(Object o)
Class.getName()
is added to the 'action' field of the report,
category is "Plugin Usage" and label is the version string generated by
VersionUtils.getVersion(java.lang.Class<?>)
.o
- Class to report onCopyright © 2018–2022 BoneJ. All rights reserved.