A2dpSink, A2dpSource, HandsFreeAudioGatewaypublic interface ProfileBase
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
A2DP |
Indicates that the profile is A2DP source profile.
|
static int |
A2DP_SINK |
Indicates that the profile is A2DP sink profile.
|
static int |
CONNECT_STRATEGY_ALLOW |
Indicates that the profile is allowed to connect for this device.
|
static int |
CONNECT_STRATEGY_AUTO |
Indicates that the profile will be auto connected when connecting this device.
|
static int |
CONNECT_STRATEGY_DISALLOW |
Indicates that the profile is not allowed to connect for this device.
|
static int |
CONNECT_STRATEGY_UNKNOWN |
Indicates that the profile strategy is unknown.
|
static int |
GATT |
Indicates that the profile is Gatt profile.
|
static int |
GATT_SERVER |
Indicates that the profile is Gatt server profile.
|
static int |
HFP |
Indicates that the profile is Handsfree AG profile.
|
static int |
HFP_UNIT |
Indicates that the profile is Handsfree HF profile.
|
static int |
MAP_SERVER |
|
static int |
PBAP_CLIENT |
Indicates that the profile is PBAP client profile.
|
static int |
PBAP_SERVER |
Indicates that the profile is PBAP server profile.
|
static String |
PROFILE_PARAM_CUR_STATE |
Indicates the connection state of a certain profile after the connection state is updated.
|
static String |
PROFILE_PARAM_PRE_STATE |
Indicates the connection state of a certain profile before the connection state is updated.
|
static int |
SOCKET_MANAGER |
Indicates that the profile is socket manager service.
|
static int |
STATE_CONNECTED |
Indicates that the current profile is connected.
|
static int |
STATE_CONNECTING |
Indicates that the current profile is being connected.
|
static int |
STATE_DISCONNECTED |
Indicates that the current profile is disconnected.
|
static int |
STATE_DISCONNECTING |
Indicates that the current profile is being disconnected.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
List<BluetoothRemoteDevice> |
getDevicesByStates(int[] states) |
Obtains the list of devices in the specified status.
|
int |
getDeviceState(BluetoothRemoteDevice device) |
Obtains the connection status of a
BluetoothRemoteDevice in the current profile. |
static final int A2DP
static final int A2DP_SINK
static final int CONNECT_STRATEGY_ALLOW
static final int CONNECT_STRATEGY_AUTO
static final int CONNECT_STRATEGY_DISALLOW
static final int CONNECT_STRATEGY_UNKNOWN
static final int GATT
static final int GATT_SERVER
static final int HFP
static final int HFP_UNIT
static final int MAP_SERVER
static final int PBAP_CLIENT
static final int PBAP_SERVER
static final String PROFILE_PARAM_CUR_STATE
static final String PROFILE_PARAM_PRE_STATE
static final int SOCKET_MANAGER
static final int STATE_CONNECTED
static final int STATE_CONNECTING
static final int STATE_DISCONNECTED
static final int STATE_DISCONNECTING
List<BluetoothRemoteDevice> getDevicesByStates(int[] states)
states - Indicates the connection status, which can be STATE_DISCONNECTED,
STATE_CONNECTING, STATE_CONNECTED, or STATE_DISCONNECTING.BluetoothRemoteDevice matching the specified status.int getDeviceState(BluetoothRemoteDevice device)
BluetoothRemoteDevice in the current profile.device - Indicates the BluetoothRemoteDevice.STATE_DISCONNECTED, STATE_CONNECTING,
STATE_CONNECTED, or STATE_DISCONNECTING.