public class AliRtcBluetoothManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AliRtcBluetoothManager.BluetoothState |
Constructor and Description |
---|
AliRtcBluetoothManager(android.content.Context context,
AliRtcAudioManager audioManager,
AlivcBusiness alivcBusiness) |
Modifier and Type | Method and Description |
---|---|
AliRtcBluetoothManager.BluetoothState |
getState()
Returns the internal state.
|
boolean |
hasMic() |
void |
start()
Activates components required to detect Bluetooth devices and to enable
BT SCO (audio is routed via BT SCO) for the headset profile.
|
boolean |
startScoAudio()
Starts Bluetooth SCO connection with remote device.
|
void |
stop()
Stops and closes all components related to Bluetooth audio.
|
void |
stopScoAudio()
Stops Bluetooth SCO connection with remote device.
|
void |
updateDevice()
Use the BluetoothHeadset proxy object (controls the Bluetooth Headset
Service via IPC) to update the list of connected devices for the HEADSET
profile.
|
public AliRtcBluetoothManager(android.content.Context context, AliRtcAudioManager audioManager, AlivcBusiness alivcBusiness)
public AliRtcBluetoothManager.BluetoothState getState()
public boolean hasMic()
public void start()
public void stop()
public boolean startScoAudio()
public void stopScoAudio()
public void updateDevice()