# Print output for @column tags ?>
public
static
class
SocketKeepalive.Callback
extends Object
java.lang.Object | |
↳ | android.net.SocketKeepalive.Callback |
The callback which app can use to learn the status changes of SocketKeepalive
. See
SocketKeepalive
.
Public constructors | |
---|---|
Callback()
|
Public methods | |
---|---|
void
|
onDataReceived()
The keepalive on a TCP socket was stopped because the socket received data. |
void
|
onError(int error)
An error occurred. |
void
|
onStarted()
The requested keepalive was successfully started. |
void
|
onStopped()
The keepalive was successfully stopped. |
Inherited methods | |
---|---|
public Callback ()
public void onDataReceived ()
The keepalive on a TCP socket was stopped because the socket received data. This is never called for UDP sockets.
public void onError (int error)
An error occurred.
public void onStarted ()
The requested keepalive was successfully started.
public void onStopped ()
The keepalive was successfully stopped.