public class PrintSpoolerProvider extends Object implements ServiceConnection
Constructor and Description |
---|
PrintSpoolerProvider(Context context,
Runnable callback) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
PrintSpoolerService |
getSpooler() |
void |
onServiceConnected(ComponentName name,
IBinder service)
Called when a connection to the Service has been established, with
the
IBinder of the communication channel to the
Service. |
void |
onServiceDisconnected(ComponentName name)
Called when a connection to the Service has been lost.
|
public PrintSpoolerService getSpooler()
public void destroy()
public void onServiceConnected(ComponentName name, IBinder service)
ServiceConnection
IBinder
of the communication channel to the
Service.onServiceConnected
in interface ServiceConnection
name
- The concrete component name of the service that has
been connected.service
- The IBinder of the Service's communication channel,
which you can now make calls on.public void onServiceDisconnected(ComponentName name)
ServiceConnection
ServiceConnection.onServiceConnected(android.content.ComponentName, android.os.IBinder)
when the Service is next running.onServiceDisconnected
in interface ServiceConnection
name
- The concrete component name of the service whose
connection has been lost.