DiscoveryRequest.Builder.SetDisplayNameAttribute(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.
Set the service attribute to use to display the service in the service picker UI.
[Android.Runtime.Register("setDisplayNameAttribute", "(Ljava/lang/String;)Landroid/net/nsd/DiscoveryRequest$Builder;", "", ApiSince=37)]
public Android.Net.Nsd.DiscoveryRequest.Builder SetDisplayNameAttribute(string? attributeKey);
[<Android.Runtime.Register("setDisplayNameAttribute", "(Ljava/lang/String;)Landroid/net/nsd/DiscoveryRequest$Builder;", "", ApiSince=37)>]
member this.SetDisplayNameAttribute : string -> Android.Net.Nsd.DiscoveryRequest.Builder
Parameters
- attributeKey
- String
The key of the attribute, or null to use the service name.
Returns
- Attributes
Remarks
Set the service attribute to use to display the service in the service picker UI.
Attribute key matching is not case-sensitive, as per RFC6763 6.4.
Defaults to null, which means the service name will be used instead.
Android reference for android.net.nsd.DiscoveryRequest.Builder.setDisplayNameAttribute.
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.