services-api / com.keecker.services.interfaces / EphemeralServiceConnection / onServiceConnected

onServiceConnected

fun onServiceConnected(name: ComponentName?, service: IBinder?): Unit

Called when a connection to the Service has been established, with the android.os.IBinder of the communication channel to the Service.

Note: If the system has started to bind your client app to a service, it’s possible that your app will never receive this callback. Your app won’t receive a callback if there’s an issue with the service, such as the service crashing while being created.

Parameters

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.