bindService

open fun bindService(className: String, conn: ServiceConnection, flags: Int)

Bind the service.

Parameters

className

The name of class.

conn

The ServiceConnection object.

flags

Operation options for the binding.

open fun bindService(cls: Class<out Any>, conn: ServiceConnection, flags: Int)

Bind the service.

Parameters

cls

The service class.

conn

The ServiceConnection object.

flags

Operation options for the binding.