public class ConnectionPriorityResponse extends java.lang.Object implements ConnectionPriorityCallback, android.os.Parcelable
ConnectionPriorityCallback| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<ConnectionPriorityResponse> |
CREATOR |
| Modifier | Constructor and Description |
|---|---|
protected |
ConnectionPriorityResponse(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
android.bluetooth.BluetoothDevice |
getBluetoothDevice() |
int |
getConnectionInterval()
The connection interval determines how often the Central will ask for data from the Peripheral.
|
int |
getSlaveLatency()
By setting a non-zero slave latency, the Peripheral can choose to not answer when
the Central asks for data up to the slave latency number of times.
|
int |
getSupervisionTimeout()
This timeout determines the timeout from the last data exchange till a link is considered lost.
|
void |
onConnectionUpdated(android.bluetooth.BluetoothDevice device,
int interval,
int latency,
int timeout)
Callback indicating the connection parameters were updated.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<ConnectionPriorityResponse> CREATOR
protected ConnectionPriorityResponse(android.os.Parcel in)
public void onConnectionUpdated(@NonNull
android.bluetooth.BluetoothDevice device,
int interval,
int latency,
int timeout)
ConnectionPriorityCallbackonConnectionUpdated in interface ConnectionPriorityCallbackdevice - the target device.interval - Connection interval used on this connection, 1.25ms unit. Valid range is from
6 (7.5ms) to 3200 (4000ms).latency - Slave latency for the connection in number of connection events. Valid range
is from 0 to 499.timeout - Supervision timeout for this connection, in 10ms unit. Valid range is from 10
(100 ms = 0.1s) to 3200 (32s).@Nullable public android.bluetooth.BluetoothDevice getBluetoothDevice()
public int getConnectionInterval()
public int getSlaveLatency()
public int getSupervisionTimeout()
public void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelablepublic int describeContents()
describeContents in interface android.os.Parcelable