Language

Person.Builder.SetUri(String) Method

Definition

Set a URI associated with this person.

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

Parameters

uri
String

String: a URI for the person. This value may be null.

Returns

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

Attributes

Remarks

Set a URI associated with this person. The person should be specified by the String representation of a ContactsContract.Contacts.CONTENT_LOOKUP_URI.

The system will also attempt to resolve mailto: and tel: schema URIs. The path part of these URIs must exist in the contacts database, in the appropriate column, or the reference will be discarded as invalid. Telephone schema URIs will be resolved by ContactsContract.PhoneLookup.

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

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