# Print output for @column tags ?> ScannerIntent.Request | Android Developers

Most visited

Recently visited

ScannerIntent.Request

public static class ScannerIntent.Request
extends Intent

java.lang.Object
   ↳ android.content.Intent
     ↳ com.vuzix.sdk.barcode.ScannerIntent.Request


Creates an Intent used to make a request to the embedded Vuzix engine.

Basic usage:

    startActivityForResult(new ScannerIntent.Request(), YOUR_UNIQUE_ID);
 

Summary

Nested classes

class ScannerIntent.Request.Options

Options that can customize the behavior of the scanner 

Public constructors

Request()

Creates a scan Request Intent using the engine defaults.

Request(BarcodeType2[] requestedBarcodeTypes)

Creates a scan Request Intent using the engine defaults for the specified formats of barcodes

Request(BarcodeType2[] requestedBarcodeTypes, String uiTextPrompt, ScannerIntent.Request.Options options)

Create an explicit scan Request Intent

Public methods

static ScannerIntent.Request.Options getOptions(Intent intent)

Retrieve requested options from Request intent

static BarcodeType2[] getRequestedBarcodeTypes(Intent intent)

Retrieve requested barcode type from Request intent

static String getUiTextPrompt(Intent intent)

Retrieve requested UI text prompt from Request intent

static String toString(Intent intent)

Creates a string detailing the intent and extras

String toString()

Public constructors

Request

public Request ()

Creates a scan Request Intent using the engine defaults.

Request

public Request (BarcodeType2[] requestedBarcodeTypes)

Creates a scan Request Intent using the engine defaults for the specified formats of barcodes

Parameters
requestedBarcodeTypes BarcodeType2: BarcodeType2[] of types for which the engine will search in the camera feed, or null for default types.

Request

public Request (BarcodeType2[] requestedBarcodeTypes, 
                String uiTextPrompt, 
                ScannerIntent.Request.Options options)

Create an explicit scan Request Intent

Parameters
requestedBarcodeTypes BarcodeType2: BarcodeType2[] of types for which the engine will search in the camera feed, or null for default types.

uiTextPrompt String: String text to place on the UI of the scanner, or null for the default prompt.

options ScannerIntent.Request.Options: Options object to control advanced behaviors, or null for the default behaviors.

Public methods

getOptions

public static ScannerIntent.Request.Options getOptions (Intent intent)

Retrieve requested options from Request intent

Parameters
intent Intent: - instance of ScannerIntent.Request()

Returns
ScannerIntent.Request.Options Options requested by the caller, or defaults

getRequestedBarcodeTypes

public static BarcodeType2[] getRequestedBarcodeTypes (Intent intent)

Retrieve requested barcode type from Request intent

Parameters
intent Intent: - instance of ScannerIntent.Request()

Returns
BarcodeType2[] BarcodeType2[] containing requested types or null to use the default

getUiTextPrompt

public static String getUiTextPrompt (Intent intent)

Retrieve requested UI text prompt from Request intent

Parameters
intent Intent: - instance of ScannerIntent.Request()

Returns
String String containing requested UI prompt, or null to use the default

toString

public static String toString (Intent intent)

Creates a string detailing the intent and extras

Parameters
intent Intent

Returns
String String describing the intent

toString

public String toString ()

Returns
String