ServiceConnector
Base class for implementing service connectors. A service connector is a class that encapsulates a bound AIDL service. Subclasses of this class implement methods that are specific to the service that they're interacting with.
Connection with the service happens implicitly. However, the user of a ServiceConnector
must call disconnect when he or she is done with the instance. For example, when using a ServiceConnector
in an Activity
, call disconnect from onPause()
or onDestroy()
.
Parameters
<S>
The service interface that is being encapsulated.
Inheritors
Constructors
Link copied to clipboard
public void ServiceConnector(Context context, Account account, ServiceConnector.OnServiceConnectedListener client)
Constructs a new ServiceConnector object.
Functions
Link copied to clipboard
Link copied to clipboard
Returns the order service interface
Link copied to clipboard
Returns whether we are connected to the order service
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Part of the ServiceConnection interface.
Link copied to clipboard
Part of the ServiceConnection interface.