Android LinkListener

The listener is used to observe the Link events.

State Change

Link's state has changed

Declaration

void onStateChanged(Link link, Link.State newState, Link.State oldState);

Parameters

link

The link that had a state change

newState

The new link state

oldState

The old link state

Read More

The authentication failed

Declaration

void onAuthenticationFailed(Link link, AuthenticationError error);

Parameters

link

The link for which the authentication failed

error

The authentication error

Read More

Commands

Link has received a command

Declaration

void onCommandReceived(Link link, Bytes bytes);

Parameters

link

The link that received the command

bytes

The commands bytes that can correspond to the Auto API.