Barcode.ContactInfo
Stay organized with collections
Save and categorize content based on your preferences.
A person's or organization's business card. For example a VCARD.
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Public Methods
Gets contact person's addresses.
Returns an empty list if nothing found.
Gets contact person's emails.
Returns an empty list if nothing found.
Gets contact person's name.
Returns null
if not available.
public String getOrganization ()
Gets contact person's organization.
Returns null
if not available.
Gets contact person's phones.
Returns an empty list if nothing found.
public String getTitle ()
Gets contact person's title.
Returns null
if not available.
Gets contact person's urls.
Returns an empty list if nothing found.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eBarcode.ContactInfo\u003c/code\u003e represents a person's or organization's contact information, similar to a vCard.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to access contact details such as addresses, emails, name, organization, phones, title, and URLs.\u003c/p\u003e\n"],["\u003cp\u003eThese methods return lists for multiple entries (like addresses, emails, phones) or \u003ccode\u003enull\u003c/code\u003e if the specific information is not available.\u003c/p\u003e\n"],["\u003cp\u003eLists will be empty if no corresponding data is found in the barcode.\u003c/p\u003e\n"],["\u003cp\u003eInherited methods from \u003ccode\u003ejava.lang.Object\u003c/code\u003e are also available for basic object operations.\u003c/p\u003e\n"]]],[],null,["# Barcode.ContactInfo\n\npublic static class **Barcode.ContactInfo** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nA person's or organization's business card. For example a VCARD. \n\n### Public Method Summary\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [List](//developer.android.com/reference/java/util/List.html)\\\u003c[Barcode.Address](/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Address)\\\u003e | [getAddresses](/android/reference/com/google/mlkit/vision/barcode/common/Barcode.ContactInfo#getAddresses())() Gets contact person's addresses. |\n| [List](//developer.android.com/reference/java/util/List.html)\\\u003c[Barcode.Email](/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Email)\\\u003e | [getEmails](/android/reference/com/google/mlkit/vision/barcode/common/Barcode.ContactInfo#getEmails())() Gets contact person's emails. |\n| [Barcode.PersonName](/android/reference/com/google/mlkit/vision/barcode/common/Barcode.PersonName) | [getName](/android/reference/com/google/mlkit/vision/barcode/common/Barcode.ContactInfo#getName())() Gets contact person's name. |\n| [String](//developer.android.com/reference/java/lang/String.html) | [getOrganization](/android/reference/com/google/mlkit/vision/barcode/common/Barcode.ContactInfo#getOrganization())() Gets contact person's organization. |\n| [List](//developer.android.com/reference/java/util/List.html)\\\u003c[Barcode.Phone](/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Phone)\\\u003e | [getPhones](/android/reference/com/google/mlkit/vision/barcode/common/Barcode.ContactInfo#getPhones())() Gets contact person's phones. |\n| [String](//developer.android.com/reference/java/lang/String.html) | [getTitle](/android/reference/com/google/mlkit/vision/barcode/common/Barcode.ContactInfo#getTitle())() Gets contact person's title. |\n| [List](//developer.android.com/reference/java/util/List.html)\\\u003c[String](//developer.android.com/reference/java/lang/String.html)\\\u003e | [getUrls](/android/reference/com/google/mlkit/vision/barcode/common/Barcode.ContactInfo#getUrls())() Gets contact person's urls. |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Methods\n--------------\n\n#### public [List](//developer.android.com/reference/java/util/List.html)\\\u003c[Barcode.Address](/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Address)\\\u003e\n**getAddresses** ()\n\nGets contact person's addresses.\n\nReturns an empty list if nothing found. \n\n#### public [List](//developer.android.com/reference/java/util/List.html)\\\u003c[Barcode.Email](/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Email)\\\u003e\n**getEmails** ()\n\nGets contact person's emails.\n\nReturns an empty list if nothing found. \n\n#### public [Barcode.PersonName](/android/reference/com/google/mlkit/vision/barcode/common/Barcode.PersonName)\n**getName** ()\n\nGets contact person's name.\n\nReturns `null` if not available. \n\n#### public [String](//developer.android.com/reference/java/lang/String.html) **getOrganization** ()\n\nGets contact person's organization.\n\nReturns `null` if not available. \n\n#### public [List](//developer.android.com/reference/java/util/List.html)\\\u003c[Barcode.Phone](/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Phone)\\\u003e\n**getPhones** ()\n\nGets contact person's phones.\n\nReturns an empty list if nothing found. \n\n#### public [String](//developer.android.com/reference/java/lang/String.html) **getTitle** ()\n\nGets contact person's title.\n\nReturns `null` if not available. \n\n#### public [List](//developer.android.com/reference/java/util/List.html)\\\u003c[String](//developer.android.com/reference/java/lang/String.html)\\\u003e\n**getUrls** ()\n\nGets contact person's urls.\n\nReturns an empty list if nothing found."]]