services-api / com.keecker.services.interfaces / ServiceBindingInfo

ServiceBindingInfo

interface ServiceBindingInfo<ServiceInterface : IInterface>

To bind to a android.app.Service 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.

Parameters

Functions

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