java.lang.Object
android.content.BroadcastReceiver
com.getpebble.android.kit.PebbleKit.PebbleNackReceiver
Enclosing class:
PebbleKit

public abstract static class PebbleKit.PebbleNackReceiver extends android.content.BroadcastReceiver
A special-purpose BroadcastReceiver that makes it easy to handle 'RECEIVE_NACK' intents broadcast from pebble .apk.
  • Nested Class Summary

    Nested classes/interfaces inherited from class android.content.BroadcastReceiver

    android.content.BroadcastReceiver.PendingResult
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    PebbleNackReceiver(UUID subscribedUuid)
    Instantiates a new pebble nack receiver.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onReceive(android.content.Context context, android.content.Intent intent)
    abstract void
    receiveNack(android.content.Context context, int transactionId)
    Handle the NACK 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PebbleNackReceiver

      protected PebbleNackReceiver(UUID subscribedUuid)
      Instantiates a new pebble nack receiver.
      Parameters:
      subscribedUuid - the subscribed uuid
  • Method Details

    • receiveNack

      public abstract void receiveNack(android.content.Context context, int transactionId)
      Handle the NACK received from the connected watch.
      Parameters:
      context - The BroadcastReceiver's context.
      transactionId - The transaction ID of the message for which the NACK was received. This indicates which message was not received.
    • onReceive

      public void onReceive(android.content.Context context, android.content.Intent intent)
      Specified by:
      onReceive in class android.content.BroadcastReceiver