connect

suspend fun connect(c: Context, intent: Intent, flags: Int)(source)

Initiates a binding to the service.

Parameters

c

The context to use for binding.

intent

The intent used to identify the service.

flags

Binding flags (e.g., Context.BIND_AUTO_CREATE).

Throws

If the initial bind call fails twice.