Language

AssociationRequest.Builder.SetDisplayName Method

Definition

Overloads

Name Description
SetDisplayName(ICharSequence)

Adds a display name.

SetDisplayName(String)

Sets the display name of the device.

SetDisplayName(ICharSequence)

Adds a display name.

[Android.Runtime.Register("setDisplayName", "(Ljava/lang/CharSequence;)Landroid/companion/AssociationRequest$Builder;", "", ApiSince=33)]
public Android.Companion.AssociationRequest.Builder SetDisplayName(Java.Lang.ICharSequence displayName);
[<Android.Runtime.Register("setDisplayName", "(Ljava/lang/CharSequence;)Landroid/companion/AssociationRequest$Builder;", "", ApiSince=33)>]
member this.SetDisplayName : Java.Lang.ICharSequence -> Android.Companion.AssociationRequest.Builder

Parameters

displayName
ICharSequence

the display name of the device. This value cannot be null.

Returns

This builder, with the display name assigned.

Attributes

Remarks

Adds a display name. Generally AssociationRequests are not required to provide a display name, except for request for creating "self-managed" associations, which MUST provide a display name.

Android reference for android.companion.AssociationRequest.Builder.setDisplayName.

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

SetDisplayName(String)

Sets the display name of the device.

public Android.Companion.AssociationRequest.Builder SetDisplayName(string displayName);
member this.SetDisplayName : string -> Android.Companion.AssociationRequest.Builder

Parameters

displayName
String

The display name of the device. This value cannot be null.

Returns

This builder, with the display name assigned.

Remarks

This .NET convenience method converts displayName to a ICharSequence and calls SetDisplayName(ICharSequence). The display name cannot be longer than 1024 characters. See the builder implementation.

Applies to