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

onServiceDisconnected

public abstract void onServiceDisconnected (int profile)

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

Parameters
profile int: - One of BluetoothProfile.HEADSET or BluetoothProfile.A2DP

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.