-
- All Implemented Interfaces:
-
android.os.Parcelable,no.nordicsemi.android.ble.callback.MtuCallback
public class MtuResult implements MtuCallback, Parcelable
-
-
Field Summary
Fields Modifier and Type Field Description private intmtupublic final static Parcelable.Creator<MtuResult>CREATOR
-
Constructor Summary
Constructors Constructor Description MtuResult()
-
Method Summary
Modifier and Type Method Description intgetMtu()Returns the agreed MTU. voidonMtuChanged(@NonNull() BluetoothDevice device, @IntRange(from = 23, to = 517) int mtu)Method called when the MTU request has finished with success. BluetoothDevicegetBluetoothDevice()voidwriteToParcel(Parcel dest, int flags)intdescribeContents()-
Methods inherited from class no.nordicsemi.android.ble.callback.MtuCallback
onMtuChanged -
Methods inherited from class android.os.Parcelable
describeContents, writeToParcel -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getMtu
@IntRange(from = 23, to = 517) int getMtu()
Returns the agreed MTU. The maximum packet size is 3 bytes less then MTU.
-
onMtuChanged
void onMtuChanged(@NonNull() BluetoothDevice device, @IntRange(from = 23, to = 517) int mtu)
Method called when the MTU request has finished with success. The MTU value maybe different than requested one. The maximum packet size is 3 bytes less then MTU.
- Parameters:
device- the target device.mtu- the new MTU (Maximum Transfer Unit).
-
getBluetoothDevice
@Nullable() BluetoothDevice getBluetoothDevice()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
describeContents
int describeContents()
-
-
-
-