Partager via


BluetoothSocket.MaxReceivePacketSize Property

Definition

Get the maximum supported Receive packet size for the underlying transport.

public int MaxReceivePacketSize { [Android.Runtime.Register("getMaxReceivePacketSize", "()I", "", ApiSince=23)] get; }
[<get: Android.Runtime.Register("getMaxReceivePacketSize", "()I", "", ApiSince=23)>]
member this.MaxReceivePacketSize : int

Property Value

the maximum supported Receive packet size for the underlying transport.

Attributes

Remarks

Get the maximum supported Receive packet size for the underlying transport. Use this to optimize the reads done on the input stream, as any call to read will return a maximum of this amount of bytes - or for some transports a multiple of this value.

Java documentation for android.bluetooth.BluetoothSocket.getMaxReceivePacketSize().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to