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.

Methods

public abstract void replyReceived(WearableMessage reply)Called with the peer’s answer.
public abstract void replyFailed(String message)Called when no answer could be obtained.

Method details

replyReceived

public abstract void replyReceived(WearableMessage reply)
Called with the peer’s answer.

Parameters

reply WearableMessage
the peer’s response, on the same path as the request

replyFailed

public abstract void replyFailed(String message)
Called when no answer could be obtained.

Parameters

message String
a description of what went wrong, suitable for a log rather than a UI