use of com.google.zxing.integration.android.IntentIntegrator in project zxing-android-embedded by journeyapps.
the class MainActivity method scanBarcodeCustomLayout.
public void scanBarcodeCustomLayout(View view) {
IntentIntegrator integrator = new IntentIntegrator(this);
integrator.setCaptureActivity(AnyOrientationCaptureActivity.class);
integrator.setDesiredBarcodeFormats(IntentIntegrator.ONE_D_CODE_TYPES);
integrator.setPrompt("Scan something");
integrator.setOrientationLocked(false);
integrator.setBeepEnabled(false);
integrator.initiateScan();
}
use of com.google.zxing.integration.android.IntentIntegrator in project zxing by zxing.
the class ZXingTestActivity method encodeBarcode.
private void encodeBarcode(CharSequence type, CharSequence data) {
IntentIntegrator integrator = new IntentIntegrator(this);
integrator.shareText(data, type);
}
use of com.google.zxing.integration.android.IntentIntegrator in project zxing by zxing.
the class ZXingTestActivity method encodeBarcode.
private void encodeBarcode(CharSequence type, Bundle data) {
IntentIntegrator integrator = new IntentIntegrator(this);
integrator.addExtra("ENCODE_DATA", data);
// data.toString() isn't used
integrator.shareText(data.toString(), type);
}
Aggregations