java.lang.Object
android.content.BroadcastReceiver
com.getpebble.android.kit.PebbleKit.PebbleAckReceiver
- Enclosing class:
- PebbleKit
public abstract static class PebbleKit.PebbleAckReceiver
extends android.content.BroadcastReceiver
A special-purpose BroadcastReceiver that makes it easy to handle 'RECEIVE_ACK' intents broadcast from pebble
.apk.
-
Nested Class Summary
Nested classes/interfaces inherited from class android.content.BroadcastReceiver
android.content.BroadcastReceiver.PendingResult
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PebbleAckReceiver
(UUID subscribedUuid) Instantiates a new pebble ack receiver. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onReceive
(android.content.Context context, android.content.Intent intent) abstract void
receiveAck
(android.content.Context context, int transactionId) Handle the ACK received from the connected watch.Methods inherited from class android.content.BroadcastReceiver
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, getSentFromPackage, getSentFromUid, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
-
Constructor Details
-
PebbleAckReceiver
Instantiates a new pebble ack receiver.- Parameters:
-
subscribedUuid
- the subscribed uuid
-
-
Method Details
-
receiveAck
public abstract void receiveAck(android.content.Context context, int transactionId) Handle the ACK received from the connected watch.- Parameters:
-
context
- The BroadcastReceiver's context. -
transactionId
- The transaction ID of the message for which the ACK was received. This indicates which message was successfully received.
-
onReceive
public void onReceive(android.content.Context context, android.content.Intent intent) - Specified by:
-
onReceive
in classandroid.content.BroadcastReceiver
-