Skip to content

Most visited

Recently visited

navigation
Added in API level 11

BluetoothProfile.ServiceListener

public static interface BluetoothProfile.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 void onServiceConnected(int profile, BluetoothProfile proxy)

Called to notify the client when the proxy object has been connected to the service.

abstract void onServiceDisconnected(int profile)

Called to notify the client that this proxy object has been disconnected from the service.

Public methods

onServiceConnected

Added in API level 11
void onServiceConnected (int profile, 
                BluetoothProfile proxy)

Called to notify the client when the proxy object has been connected to the service.

Parameters
profile int: - One of HEALTH, HEADSET or A2DP
proxy BluetoothProfile: - One of BluetoothHealth, BluetoothHeadset or BluetoothA2dp

onServiceDisconnected

Added in API level 11
void onServiceDisconnected (int profile)

Called to notify the client that this proxy object has been disconnected from the service.

Parameters
profile int: - One of HEALTH, HEADSET or A2DP
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.