1 /* 2 * Copyright (C) 2008 ZXing authors 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.google.zxing.client.android; 18 19 /** 20 * This class provides the constants to use when sending an Intent to Barcode Scanner. 21 * These strings are effectively API and cannot be changed. 22 * 23 * @author dswitkin@google.com (Daniel Switkin) 24 */ 25 public final class Intents { Intents()26 private Intents() { 27 } 28 29 public static final class Scan { 30 /** 31 * Send this intent to open the Barcodes app in scanning mode, find a barcode, and return 32 * the results. 33 */ 34 public static final String ACTION = "com.google.zxing.client.android.YOUTUBE_SCAN"; 35 36 /** 37 * @see com.google.zxing.DecodeHintType#CHARACTER_SET 38 */ 39 public static final String CHARACTER_SET = "CHARACTER_SET"; 40 41 /** 42 * Optional parameters to specify the width and height of the scanning rectangle in pixels. 43 * The app will try to honor these, but will clamp them to the size of the preview frame. 44 * You should specify both or neither, and pass the size as an int. 45 */ 46 public static final String WIDTH = "SCAN_WIDTH"; 47 public static final String HEIGHT = "SCAN_HEIGHT"; 48 Scan()49 private Scan() { 50 } 51 } 52 } 53