InteractiveWatchFaceClient.ClientDisconnectListener


public interface InteractiveWatchFaceClient.ClientDisconnectListener


Callback that observes when the client disconnects. Use addClientDisconnectListener to register a ClientDisconnectListener.

Summary

Public methods

default void

This method is deprecated. Deprecated, use an overload that passes the disconnectReason

default void
onClientDisconnected(int disconnectReason)

This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

Public methods

onClientDisconnected

Added in 1.0.0
Deprecated in 1.2.0
default void onClientDisconnected()

The client disconnected, typically due to the server side crashing. Note this is not called in response to close being called on InteractiveWatchFaceClient.

onClientDisconnected

Added in 1.2.0
Deprecated in 1.3.0-alpha06
default void onClientDisconnected(int disconnectReason)

The client disconnected, due to disconnectReason.