Android Open Source - Findbooks Bar Code Intent Result






From Project

Back to project page Findbooks.

License

The source code is released under:

Copyright (c) 2010, Shaka Huang All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Re...

If you think the Android project Findbooks listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*
 * Copyright 2009 ZXing authors//  w w  w  . j  a v a  2 s. c om
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.corner23.android.findbooks.barcode;

/**
 * <p>Encapsulates the result of a barcode scan invoked through {@link IntentIntegrator}.</p>
 *
 * @author Sean Owen
 */
public final class BarCodeIntentResult {

  private final String contents;
  private final String formatName;

  BarCodeIntentResult(String contents, String formatName) {
    this.contents = contents;
    this.formatName = formatName;
  }

  /**
   * @return raw content of barcode
   */
  public String getContents() {
    return contents;
  }

  /**
   * @return name of format, like "QR_CODE", "UPC_A". See <code>BarcodeFormat</code> for more format names.
   */
  public String getFormatName() {
    return formatName;
  }

}




Java Source Code List

com.corner23.android.findbooks.BitmapCache.java
com.corner23.android.findbooks.FindBooks.java
com.corner23.android.findbooks.Settings.java
com.corner23.android.findbooks.ShowBookInfo.java
com.corner23.android.findbooks.barcode.BarCodeIntegrator.java
com.corner23.android.findbooks.barcode.BarCodeIntentResult.java