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

    Interface ActionResponder

    How an action handler answers. The Pebble app takes the first answer and ignores any after it, waits 20 seconds for one, and ends the plugin's run as soon as it has one. A handler that throws or rejects before answering is answered UNKNOWN with the error as text.

    interface ActionResponder {
        error(code: string, message?: string): void;
        ok(result?: ActionResult): void;
    }
    Index
    • An error code, such as INVALID_REQUEST, INVALID_ARGS, AUTH_REQUIRED, or UNKNOWN.

      Parameters

      • code: string
      • Optionalmessage: string

      Returns void