services-api / / ServiceBindingInfo


interface ServiceBindingInfo<ServiceInterface : IInterface>

To bind to a we need to provide:

  • An Intent, used by Android to resolve the Service it wants to bind to
  • An AIDL Interface, implemented and exposed by the Service.



getIntent abstract fun getIntent(): Intent
toInterface abstract fun toInterface(binder: IBinder): ServiceInterface
Converts the given binder to a ServiceInterface implementation. Typically implemented as: