Issue 549, Make slightly more consistent by changing value of as-yet-unused key ENCOD...
[zxing.git] / android / src / com / google / zxing / client / android / Intents.java
index 0830ba4..6605baf 100755 (executable)
@@ -74,6 +74,11 @@ public final class Intents {
      */
     public static final String QR_CODE_MODE = "QR_CODE_MODE";
 
+    /**
+     * Decode only Data Matrix codes.
+     */
+    public static final String DATA_MATRIX_MODE = "DATA_MATRIX_MODE";
+
     /**
      * If a barcode is found, Barcodes returns RESULT_OK to onActivityResult() of the app which
      * requested the scan via startSubActivity(). The barcodes contents can be retrieved with
@@ -122,7 +127,7 @@ public final class Intents {
      * it defaults to QR Code. Use Intent.putExtra(FORMAT, format), where
      * format is one of Contents.Format. 
      */
-    public static final String FORMAT = "com.google.zxing.client.android.ENCODE_FORMAT";
+    public static final String FORMAT = "ENCODE_FORMAT";
 
     private Encode() {
     }
@@ -148,6 +153,32 @@ public final class Intents {
     }
   }
 
+  public static final class WifiConnect {
+           /**
+            * Internal intent used to trigger connection to a wi-fi network.
+            */
+           public static final String ACTION = "com.google.zxing.client.android.WIFI_CONNECT";
+
+           /**
+            * The network to connect to, all the configuration provided here.
+            */
+           public static final String SSID = "SSID";
+
+           /**
+            * The network to connect to, all the configuration provided here.
+            */
+           public static final String TYPE = "TYPE";
+
+           /**
+            * The network to connect to, all the configuration provided here.
+            */
+           public static final String PASSWORD = "PASSWORD";
+
+           private WifiConnect() {
+           }
+         }
+
+
   public static final class Share {
     /**
      * Give the user a choice of items to encode as a barcode, then render it as a QR Code and