getUid

fun getUid(): String?

Returns the contact's persistent identifier (vcard:hasUID), or null.

A value that setUid wrapped as urn:uid:… (because it was not an absolute IRI) is unwrapped back to the original string, so set/get round-trips.