Sprache

Person.Builder.SetKey(String) Method

Definition

Add a key to this person in order to uniquely identify it.

[Android.Runtime.Register("setKey", "(Ljava/lang/String;)Landroid/app/Person$Builder;", "GetSetKey_Ljava_lang_String_Handler", ApiSince=28)]
public virtual Android.App.Person.Builder SetKey(string? key);
[<Android.Runtime.Register("setKey", "(Ljava/lang/String;)Landroid/app/Person$Builder;", "GetSetKey_Ljava_lang_String_Handler", ApiSince=28)>]
abstract member SetKey : string -> Android.App.Person.Builder
override this.SetKey : string -> Android.App.Person.Builder

Parameters

key
String

String: the key that uniquely identifies this person. This value may be null.

Returns

This Android.App.Person.Builder instance, allowing calls to be chained.

Attributes

Remarks

Add a key to this person in order to uniquely identify it. This is especially useful if the name doesn't uniquely identify this person or if the display name is a short handle of the actual name. If no key is provided, the name serves as the key for the purpose of identification.

Android reference for android.app.Person.Builder.setKey.

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