ServiceConnectionpublic interface ServiceConnection Interface for monitoring the state of an application service. See
{@link android.app.Service} and
{@link Context#bindService Context.bindService()} for more information.
Like many callbacks from the system, the methods on this class are called
from the main thread of your process. |
Methods Summary |
---|
public void | onServiceConnected(ComponentName name, android.os.IBinder service)Called when a connection to the Service has been established, with
the {@link android.os.IBinder} of the communication channel to the
Service.
| public void | onServiceDisconnected(ComponentName name)Called when a connection to the Service has been lost. This typically
happens when the process hosting the service has crashed or been killed.
This does not remove the ServiceConnection itself -- this
binding to the service will remain active, and you will receive a call
to {@link #onServiceConnected} when the Service is next running.
|
|