Partager via


WifiP2pManager.P2pMaxAllowedVendorElementsLengthBytes Property

Definition

Return the maximum total length (in bytes) of all Vendor specific information elements (VSIEs) which can be set using the #setVendorElements(Channel, List, ActionListener).

public static int P2pMaxAllowedVendorElementsLengthBytes { [Android.Runtime.Register("getP2pMaxAllowedVendorElementsLengthBytes", "()I", "", ApiSince=33)] get; }
[<get: Android.Runtime.Register("getP2pMaxAllowedVendorElementsLengthBytes", "()I", "", ApiSince=33)>]
static member P2pMaxAllowedVendorElementsLengthBytes : int

Property Value

Attributes

Remarks

Return the maximum total length (in bytes) of all Vendor specific information elements (VSIEs) which can be set using the #setVendorElements(Channel, List, ActionListener).

The length is calculated adding the payload length + 2 bytes for each VSIE (2 bytes: 1 byte for type and 1 byte for length).

Java documentation for android.net.wifi.p2p.WifiP2pManager.getP2pMaxAllowedVendorElementsLengthBytes().

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