public interface

ServiceConnection.Callback

 androidx.health.services.client.impl.ipc.internal.ServiceConnection.Callback

Subclasses:

ConnectionManager

Overview

Callback for reporting back to the manager.

Summary

Methods
public booleanisBindToSelfEnabled()

Return true if the ServiceConnection should bind to the service in the same application for testing reason.

public voidonConnected(ServiceConnection connection)

Called when the connection to the server was successfully established.

public voidonDisconnected(ServiceConnection connection, long reconnectDelayMs)

Called when the connection to the server was lost.

Methods

public void onConnected(ServiceConnection connection)

Called when the connection to the server was successfully established.

public void onDisconnected(ServiceConnection connection, long reconnectDelayMs)

Called when the connection to the server was lost.

Parameters:

connection: Represents this connection to a service.
reconnectDelayMs: Delay before the caller should try to reconnect this connection.

public boolean isBindToSelfEnabled()

Return true if the ServiceConnection should bind to the service in the same application for testing reason.