Interface WearableReplyHandler
public interface WearableReplyHandler
Receives the answer to a message that asked for one.
Exactly one of the two methods is called, on the EDT. A reply is not guaranteed: the peer may be asleep, out of range, or running a version of your app that does not know the path you sent.
-
Method Summary
Modifier and TypeMethodDescriptionvoidreplyFailed(String message) Called when no answer could be obtained.voidreplyReceived(WearableMessage reply) Called with the peer's answer.
-
Method Details
-
replyReceived
Called with the peer's answer.
Parameters
reply: the peer's response, on the same path as the request
-
replyFailed
Called when no answer could be obtained.
Parameters
message: a description of what went wrong, suitable for a log rather than a UI
-