Person.Builder.SetUri(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 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.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-08-03 UTC.
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.