SubscribeConfig.Builder.SetServiceName(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specify the service name of the subscribe session.
[Android.Runtime.Register("setServiceName", "(Ljava/lang/String;)Landroid/net/wifi/aware/SubscribeConfig$Builder;", "", ApiSince=26)]
public Android.Net.Wifi.Aware.SubscribeConfig.Builder? SetServiceName(string serviceName);
[<Android.Runtime.Register("setServiceName", "(Ljava/lang/String;)Landroid/net/wifi/aware/SubscribeConfig$Builder;", "", ApiSince=26)>]
member this.SetServiceName : string -> Android.Net.Wifi.Aware.SubscribeConfig.Builder
Parameters
- serviceName
- String
The service name for the subscribe session. This value cannot be null.
Returns
The builder to facilitate chaining builder.setXXX(..).setXXX(..).
- Attributes
Remarks
Specify the service name of the subscribe session. The actual on-air value is a 6 byte hashed representation of this string.
The Service Name is a UTF-8 encoded string from 1 to 255 bytes in length. The only acceptable single-byte UTF-8 symbols for a Service Name are alphanumeric values (A-Z, a-z, 0-9), the hyphen ('-'), the period ('.') and the underscore ('_'). All valid multi-byte UTF-8 characters are acceptable in a Service Name.
Must be called - an empty ServiceName is not valid.
Android reference for android.net.wifi.aware.SubscribeConfig.Builder.setServiceName.
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.