Added in API level 11
ServiceListener
interface ServiceListener
android.bluetooth.BluetoothProfile.ServiceListener |
An interface for notifying BluetoothProfile IPC clients when they have been connected or disconnected to the service.
Summary
Public methods | |
---|---|
abstract Unit |
onServiceConnected(profile: Int, proxy: BluetoothProfile!) Called to notify the client when the proxy object has been connected to the service. |
abstract Unit |
onServiceDisconnected(profile: Int) Called to notify the client that this proxy object has been disconnected from the service. |
Public methods
onServiceConnected
Added in API level 11
abstract fun onServiceConnected(
profile: Int,
proxy: BluetoothProfile!
): Unit
Called to notify the client when the proxy object has been connected to the service.
Parameters | |
---|---|
profile |
Int: - One of HEADSET or A2DP |
proxy |
BluetoothProfile!: - One of BluetoothHeadset or BluetoothA2dp |
onServiceDisconnected
Added in API level 11
abstract fun onServiceDisconnected(profile: Int): Unit
Called to notify the client that this proxy object has been disconnected from the service.
Parameters | |
---|---|
profile |
Int: - One of HEADSET or A2DP |