com.google.zxing.client.result.EmailAddressParsedResult Java Examples
The following examples show how to use
com.google.zxing.client.result.EmailAddressParsedResult.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: EmailAddressResultHandler.java From ZXing-Standalone-library with Apache License 2.0 | 6 votes |
@Override public void handleButtonPress(int index) { EmailAddressParsedResult emailResult = (EmailAddressParsedResult) getResult(); switch (index) { case 0: sendEmail(emailResult.getTos(), emailResult.getCCs(), emailResult.getBCCs(), emailResult.getSubject(), emailResult.getBody()); break; case 1: addEmailOnlyContact(emailResult.getTos(), null); break; } }
Example #2
Source File: EmailAddressResultHandler.java From analyzer-of-android-for-Apache-Weex with Apache License 2.0 | 6 votes |
@Override public void handleButtonPress(int index) { EmailAddressParsedResult emailResult = (EmailAddressParsedResult) getResult(); switch (index) { case 0: sendEmail(emailResult.getTos(), emailResult.getCCs(), emailResult.getBCCs(), emailResult.getSubject(), emailResult.getBody()); break; case 1: addEmailOnlyContact(emailResult.getTos(), null); break; } }
Example #3
Source File: EmailAddressResultHandler.java From weex with Apache License 2.0 | 6 votes |
@Override public void handleButtonPress(int index) { EmailAddressParsedResult emailResult = (EmailAddressParsedResult) getResult(); switch (index) { case 0: sendEmail(emailResult.getTos(), emailResult.getCCs(), emailResult.getBCCs(), emailResult.getSubject(), emailResult.getBody()); break; case 1: addEmailOnlyContact(emailResult.getTos(), null); break; } }
Example #4
Source File: EmailAddressResultHandler.java From Study_Android_Demo with Apache License 2.0 | 6 votes |
@Override public void handleButtonPress(int index) { EmailAddressParsedResult emailResult = (EmailAddressParsedResult) getResult(); switch (index) { case 0: sendEmail(emailResult.getTos(), emailResult.getCCs(), emailResult.getBCCs(), emailResult.getSubject(), emailResult.getBody()); break; case 1: addEmailOnlyContact(emailResult.getTos(), null); break; } }
Example #5
Source File: EmailAddressResultHandler.java From barcodescanner-lib-aar with MIT License | 6 votes |
@Override public void handleButtonPress(int index) { EmailAddressParsedResult emailResult = (EmailAddressParsedResult) getResult(); switch (index) { case 0: sendEmail(emailResult.getTos(), emailResult.getCCs(), emailResult.getBCCs(), emailResult.getSubject(), emailResult.getBody()); break; case 1: addEmailOnlyContact(emailResult.getTos(), null); break; } }
Example #6
Source File: EmailAddressResultHandler.java From reacteu-app with MIT License | 6 votes |
@Override public void handleButtonPress(int index) { EmailAddressParsedResult emailResult = (EmailAddressParsedResult) getResult(); switch (index) { case 0: sendEmailFromUri(emailResult.getMailtoURI(), emailResult.getEmailAddress(), emailResult.getSubject(), emailResult.getBody()); break; case 1: String[] addresses = new String[1]; addresses[0] = emailResult.getEmailAddress(); addEmailOnlyContact(addresses, null); break; } }
Example #7
Source File: EmailAddressResultHandler.java From android-apps with MIT License | 6 votes |
@Override public void handleButtonPress(int index) { EmailAddressParsedResult emailResult = (EmailAddressParsedResult) getResult(); switch (index) { case 0: sendEmailFromUri(emailResult.getMailtoURI(), emailResult.getEmailAddress(), emailResult.getSubject(), emailResult.getBody()); break; case 1: String[] addresses = new String[1]; addresses[0] = emailResult.getEmailAddress(); addEmailOnlyContact(addresses, null); break; } }
Example #8
Source File: EmailAddressResultHandler.java From zxingfragmentlib with Apache License 2.0 | 6 votes |
@Override public void handleButtonPress(int index) { EmailAddressParsedResult emailResult = (EmailAddressParsedResult) getResult(); switch (index) { case 0: // sendEmail(emailResult.getTos(), // emailResult.getCCs(), // emailResult.getBCCs(), // emailResult.getSubject(), // emailResult.getBody()); break; case 1: // addEmailOnlyContact(emailResult.getTos(), null); break; } }
Example #9
Source File: EmailResultFragment.java From privacy-friendly-qr-scanner with GNU General Public License v3.0 | 5 votes |
@Override public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { super.onCreateView(inflater, container, savedInstanceState); View v = inflater.inflate(R.layout.fragment_result_email, container, false); result = (EmailAddressParsedResult) parsedResult; resultList = v.findViewById(R.id.fragment_result_recycler_view); resultList.setLayoutManager(new LinearLayoutManager(getContext())); resultList.setAdapter(new EmailResultAdapter(result)); return v; }
Example #10
Source File: EmailResultAdapter.java From privacy-friendly-qr-scanner with GNU General Public License v3.0 | 5 votes |
private static List<EmailResultItem> buildResultItems(EmailAddressParsedResult result) { List<EmailResultItem> items = new ArrayList<>(); if(result != null) { if(result.getTos() != null) { for(String to : result.getTos()) { items.add(new EmailResultItem(EmailResultItemType.TYPE_TO, to)); } } if(result.getCCs() != null) { for(String cc : result.getCCs()) { items.add(new EmailResultItem(EmailResultItemType.TYPE_CC, cc)); } } if(result.getBCCs() != null) { for(String bcc : result.getBCCs()) { items.add(new EmailResultItem(EmailResultItemType.TYPE_BCC, bcc)); } } if(result.getSubject() != null) { items.add(new EmailResultItem(EmailResultItemType.TYPE_SUBJECT, result.getSubject())); } if(result.getBody() != null) { items.add(new EmailResultItem(EmailResultItemType.TYPE_BODY, result.getBody())); } } return items; }
Example #11
Source File: EmailAddressResultHandler.java From barterli_android with Apache License 2.0 | 5 votes |
@Override public CharSequence getDisplayContents() { EmailAddressParsedResult result = (EmailAddressParsedResult) getResult(); StringBuilder contents = new StringBuilder(100); ParsedResult.maybeAppend(result.getEmailAddress(), contents); contents.trimToSize(); return contents.toString(); }
Example #12
Source File: EmailAddressResultHandler.java From android-quick-response-code with Apache License 2.0 | 5 votes |
@Override public CharSequence getDisplayContents() { EmailAddressParsedResult result = (EmailAddressParsedResult) getResult(); StringBuilder contents = new StringBuilder(100); ParsedResult.maybeAppend(result.getTos(), contents); contents.trimToSize(); return contents.toString(); }
Example #13
Source File: EmailResultAdapter.java From privacy-friendly-qr-scanner with GNU General Public License v3.0 | 4 votes |
public EmailResultAdapter(EmailAddressParsedResult result) { this(buildResultItems(result)); }