public abstract static class Logging.Callbacks extends java.lang.Object implements MetaWearController.ModuleCallbacks
Constructor and Description |
---|
Logging.Callbacks() |
Modifier and Type | Method and Description |
---|---|
void |
downloadCompleted()
Called when the log download is completed
|
Module |
getModule()
Get the module the notification represents
|
void |
receivedDownloadConfig(int nEntries,
int notifyIncrement)
Called when the download configuration has been received
|
void |
receivedDownloadProgress(int nEntriesLeft)
Called every X log entries received from the board where X corresponds to the
notifyIncrement parameter in the downloadLog function
|
void |
receivedLogEntry(Logging.LogEntry entry)
Called when a log entry has been received
|
void |
receivedReferenceTick(Logging.ReferenceTick reference)
Called when a tick reference has been received.
|
void |
receivedTotalEntryCount(int totalEntries)
Called when the total number of log entries has been received
|
void |
receivedTriggerId(byte triggerId)
Called when a trigger ID has been received from the board.
|
void |
receivedTriggerObject(Logging.Trigger triggerObj)
Called when a trigger ID has been resolved into a trigger object.
|
public final Module getModule()
MetaWearController.ModuleCallbacks
getModule
in interface MetaWearController.ModuleCallbacks
Module
public void receivedTriggerObject(Logging.Trigger triggerObj)
triggerObj
- Trigger object that corresponds to the idLoggingTrigger
public void receivedTriggerId(byte triggerId)
triggerId
- Unique numerical ID corresponding a set of trigger attributespublic void receivedReferenceTick(Logging.ReferenceTick reference)
reference
- A reference tick to use for converting tick counts to timestampsLogging.LogEntry.timestamp(Logging.ReferenceTick)
public void receivedTotalEntryCount(int totalEntries)
totalEntries
- Total number of log entries to downloadpublic void receivedDownloadConfig(int nEntries, int notifyIncrement)
nEntries
- Number of entries to downloadnotifyIncrement
- How often to send a notification for a progress updatepublic void receivedLogEntry(Logging.LogEntry entry)
entry
- Log entry received from the boardpublic void receivedDownloadProgress(int nEntriesLeft)
nEntriesLeft
- Number of entries left to downloadpublic void downloadCompleted()