public class MtuResult extends java.lang.Object implements MtuCallback, android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<MtuResult> |
CREATOR |
| Modifier | Constructor and Description |
|---|---|
protected |
MtuResult(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
android.bluetooth.BluetoothDevice |
getBluetoothDevice() |
int |
getMtu()
Returns the agreed MTU.
|
void |
onMtuChanged(android.bluetooth.BluetoothDevice device,
int mtu)
Method called when the MTU request has finished with success.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<MtuResult> CREATOR
public void onMtuChanged(@NonNull
android.bluetooth.BluetoothDevice device,
int mtu)
MtuCallbackonMtuChanged in interface MtuCallbackdevice - the target device.mtu - the new MTU (Maximum Transfer Unit).@Nullable public android.bluetooth.BluetoothDevice getBluetoothDevice()
public int getMtu()
public void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelablepublic int describeContents()
describeContents in interface android.os.Parcelable