Package com.google.zxing.client.result
Class AddressBookParsedResult
java.lang.Object
com.google.zxing.client.result.ParsedResult
com.google.zxing.client.result.AddressBookParsedResult
Represents a parsed result that encodes contact information, like that in an address book
entry.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String[]
private final String[]
private final String
private final String[]
private final String[]
private final String[]
private final String
private final String[]
private final String[]
private final String
private final String
private final String[]
private final String[]
private final String
private final String
private final String[]
-
Constructor Summary
ConstructorsConstructorDescriptionAddressBookParsedResult
(String[] names, String[] phoneNumbers, String[] phoneTypes, String[] emails, String[] emailTypes, String[] addresses, String[] addressTypes) AddressBookParsedResult
(String[] names, String[] nicknames, String pronunciation, String[] phoneNumbers, String[] phoneTypes, String[] emails, String[] emailTypes, String instantMessenger, String note, String[] addresses, String[] addressTypes, String org, String birthday, String title, String[] urls, String[] geo) -
Method Summary
Methods inherited from class com.google.zxing.client.result.ParsedResult
getType, maybeAppend, maybeAppend, toString
-
Field Details
-
names
-
nicknames
-
pronunciation
-
phoneNumbers
-
phoneTypes
-
emails
-
emailTypes
-
instantMessenger
-
note
-
addresses
-
addressTypes
-
org
-
birthday
-
title
-
urls
-
geo
-
-
Constructor Details
-
AddressBookParsedResult
-
AddressBookParsedResult
public AddressBookParsedResult(String[] names, String[] nicknames, String pronunciation, String[] phoneNumbers, String[] phoneTypes, String[] emails, String[] emailTypes, String instantMessenger, String note, String[] addresses, String[] addressTypes, String org, String birthday, String title, String[] urls, String[] geo)
-
-
Method Details
-
getNames
-
getNicknames
-
getPronunciation
In Japanese, the name is written in kanji, which can have multiple readings. Therefore a hint is often provided, called furigana, which spells the name phonetically.- Returns:
- The pronunciation of the getNames() field, often in hiragana or katakana.
-
getPhoneNumbers
-
getPhoneTypes
- Returns:
- optional descriptions of the type of each phone number. It could be like "HOME", but, there is no guaranteed or standard format.
-
getEmails
-
getEmailTypes
- Returns:
- optional descriptions of the type of each e-mail. It could be like "WORK", but, there is no guaranteed or standard format.
-
getInstantMessenger
-
getNote
-
getAddresses
-
getAddressTypes
- Returns:
- optional descriptions of the type of each e-mail. It could be like "WORK", but, there is no guaranteed or standard format.
-
getTitle
-
getOrg
-
getURLs
-
getBirthday
- Returns:
- birthday formatted as yyyyMMdd (e.g. 19780917)
-
getGeo
- Returns:
- a location as a latitude/longitude pair
-
getDisplayResult
- Specified by:
getDisplayResult
in classParsedResult
-