InteractiveWatchFaceClient.ClientDisconnectListener

interface InteractiveWatchFaceClient.ClientDisconnectListener


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

Summary

Public functions

open Unit

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

open Unit
onClientDisconnected(disconnectReason: Int)

The client disconnected, due to disconnectReason.

Public functions

onClientDisconnected

Added in 1.0.0
Deprecated in 1.2.0
open fun onClientDisconnected(): Unit

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
open fun onClientDisconnected(disconnectReason: Int): Unit

The client disconnected, due to disconnectReason.