Share via


Characteristics.MaxServiceSpecificInfoLength Property

Definition

Returns the maximum length of byte array that can be used to specify a Aware service specific information field: the arbitrary load used in discovery or the message length of Aware message exchange.

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

Property Value

A positive integer, maximum length of byte array for Aware messaging.

Attributes

Remarks

Returns the maximum length of byte array that can be used to specify a Aware service specific information field: the arbitrary load used in discovery or the message length of Aware message exchange. Restricts the parameters of the PublishConfig.Builder#setServiceSpecificInfo(byte[]), SubscribeConfig.Builder#setServiceSpecificInfo(byte[]), and DiscoverySession#sendMessage(PeerHandle, int, byte[]) variants.

Java documentation for android.net.wifi.aware.Characteristics.getMaxServiceSpecificInfoLength().

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