Pebble App Framework: Phone API
    Preparing search index...

    Type Alias SendHook

    SendHook: (send: ReadingSend) => ((err: string | null) => void) | void

    Hears each request a reading sends as it goes out, so a plugin can stamp it in its ledger then. It can hand back a function, which hears the request's error once it answers, null for none, so a request that answers NETWORK_ERROR can have its stamps taken back off.

    Type Declaration

      • (send: ReadingSend): ((err: string | null) => void) | void
      • Parameters

        Returns ((err: string | null) => void) | void