/**@class android.content.ServiceConnection Interface for monitoring the state of an application service. See {@link android.app.Service} and {@link android.content.Context#bindService android.content.Context.bindService()} for more information. <p>Like many callbacks from the system, the methods on this class are called from the main thread of your process. */ var ServiceConnection = { /**Called when a connection to the Service has been established, with the {@link android.os.IBinder} of the communication channel to the Service. @param {Object {ComponentName}} name The concrete component name of the service that has been connected. @param {Object {IBinder}} service The IBinder of the Service's communication channel, which you can now make calls on. */ onServiceConnected : function( ) {}, /**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 <em>not</em> 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. @param {Object {ComponentName}} name The concrete component name of the service whose connection has been lost. */ onServiceDisconnected : function( ) {}, };