public abstract static class PebbleKit.PebbleDataLogReceiver
extends android.content.BroadcastReceiver
Modifier | Constructor and Description |
---|---|
protected |
PebbleDataLogReceiver(java.util.UUID subscribedUuid)
Instantiates a new pebble nack receiver.
|
Modifier and Type | Method and Description |
---|---|
void |
onFinishSession(android.content.Context context,
java.util.UUID logUuid,
java.lang.Long timestamp,
java.lang.Long tag)
Called when a session has been finished on the watch and all data has been transmitted by pebble.apk
|
void |
onReceive(android.content.Context context,
android.content.Intent intent) |
void |
receiveData(android.content.Context context,
java.util.UUID logUuid,
java.lang.Long timestamp,
java.lang.Long tag,
byte[] data)
Handle a byte array data unit that was logged the watch and broadcast by pebble.apk.
|
void |
receiveData(android.content.Context context,
java.util.UUID logUuid,
java.lang.Long timestamp,
java.lang.Long tag,
int data)
Handle an int data unit that was logged the watch and broadcast by pebble.apk.
|
void |
receiveData(android.content.Context context,
java.util.UUID logUuid,
java.lang.Long timestamp,
java.lang.Long tag,
java.lang.Long data)
Handle an UnsignedInteger data unit that was logged the watch and broadcast by pebble.apk.
|
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
protected PebbleDataLogReceiver(java.util.UUID subscribedUuid)
subscribedUuid
- the subscribed uuidpublic void receiveData(android.content.Context context, java.util.UUID logUuid, java.lang.Long timestamp, java.lang.Long tag, java.lang.Long data)
context
- The BroadcastReceiver's context.logUuid
- The UUID that uniquely identifies a data log.timestamp
- The timestamp when a data log was first created.tag
- The user-defined tag for the corresponding data log.data
- The unit of data that was logged on the watch.java.lang.UnsupportedOperationException
- Thrown if data is received and this handler is not implemented.public void receiveData(android.content.Context context, java.util.UUID logUuid, java.lang.Long timestamp, java.lang.Long tag, byte[] data)
context
- The BroadcastReceiver's context.logUuid
- The UUID that uniquely identifies a data log.timestamp
- The timestamp when a data log was first created.tag
- The user-defined tag for the corresponding data log.data
- The unit of data that was logged on the watch.java.lang.UnsupportedOperationException
- Thrown if data is received and this handler is not implemented.public void receiveData(android.content.Context context, java.util.UUID logUuid, java.lang.Long timestamp, java.lang.Long tag, int data)
context
- The BroadcastReceiver's context.logUuid
- The UUID that uniquely identifies a data log.timestamp
- The timestamp when a data log was first created.tag
- The user-defined tag for the corresponding data log.data
- The unit of data that was logged on the watch.java.lang.UnsupportedOperationException
- Thrown if data is received and this handler is not implemented.public void onFinishSession(android.content.Context context, java.util.UUID logUuid, java.lang.Long timestamp, java.lang.Long tag)
context
- The BroadcastReceiver's context.logUuid
- The UUID that uniquely identifies a data log.timestamp
- The timestamp when a data log was first created.tag
- The user-defined tag for the corresponding data log.public void onReceive(android.content.Context context, android.content.Intent intent)
onReceive
in class android.content.BroadcastReceiver