Share via


Characteristics.MaxServiceNameLength Property

Definition

Returns the maximum string length that can be used to specify a Aware service name.

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

Property Value

A positive integer, maximum string length of Aware service name.

Attributes

Remarks

Returns the maximum string length that can be used to specify a Aware service name. Restricts the parameters of the PublishConfig.Builder#setServiceName(String) and SubscribeConfig.Builder#setServiceName(String).

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

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