public class

QRCodeReaderSettings

extends QRCodeConfirmSettings
java.lang.Object
   ↳ com.sap.cloud.mobile.fiori.search.qrcodereader.QRCodeConfirmSettings
     ↳ com.sap.cloud.mobile.fiori.search.qrcodereader.QRCodeReaderSettings

Class Overview

Settings of the QR code reading.

Summary

[Expand]
Inherited Constants
From class com.sap.cloud.mobile.fiori.search.qrcodereader.QRCodeConfirmSettings
Public Constructors
QRCodeReaderSettings()
Creates a new settings object of this type.
QRCodeReaderSettings(Intent intent)
Creates a new settings object by reading values from the specified intent.
Public Methods
int getBarcodeFormat()
this method gets the acceptable barcode types.
String getInvalidQRMessage()
getter method for the message of the validation screen upon failure
String getInvalidQRTitle()
getter method for the title of the validation screen upon failure
String getOkButtonString()
getter method for the OK button of the validation screen
boolean isAutoFocus()
getter method for the camera autofocus
boolean isSkipConfirmScreen()
getter method for confirm screen skip setting
void saveToIntent(Intent intent)
Saves this object into the specified intent.
void setAutoFocus(boolean autoFocus)
setter method for the camera autofocus
void setBarcodeFormat(int barcodeFormat)
this method sets the acceptable barcode types.
void setInvalidQRMessage(String invalidQRMessage)
setter method for the message of the validation screen upon failure
void setInvalidQRTitle(String invalidQRTitle)
setter method for the title of the validation screen upon failure
void setOkButtonString(String invalidQROk)
setter method for the OK button of the validation screen
void setSkipConfirmScreen(boolean skipConfirmScreen)
setter method for confirm screen skip setting
[Expand]
Inherited Methods
From class com.sap.cloud.mobile.fiori.search.qrcodereader.QRCodeConfirmSettings
From class java.lang.Object

Public Constructors

public QRCodeReaderSettings ()

Creates a new settings object of this type.

public QRCodeReaderSettings (Intent intent)

Creates a new settings object by reading values from the specified intent.

Parameters
intent the intent to read data from, must be non-null

Public Methods

public int getBarcodeFormat ()

this method gets the acceptable barcode types. The default type is QR code.

public String getInvalidQRMessage ()

getter method for the message of the validation screen upon failure

public String getInvalidQRTitle ()

getter method for the title of the validation screen upon failure

Returns
  • the tile

public String getOkButtonString ()

getter method for the OK button of the validation screen

public boolean isAutoFocus ()

getter method for the camera autofocus

Returns
  • true if autofocus is set

public boolean isSkipConfirmScreen ()

getter method for confirm screen skip setting

Returns
  • true if the confirm screen should be skipped.

public void saveToIntent (Intent intent)

Saves this object into the specified intent. Use this method prior to sending the intent to display the QR code reader activity

Parameters
intent the intent to save this object to, must be non-null

public void setAutoFocus (boolean autoFocus)

setter method for the camera autofocus

Parameters
autoFocus the autofocus flag

public void setBarcodeFormat (int barcodeFormat)

this method sets the acceptable barcode types. The default type is QR code.

public void setInvalidQRMessage (String invalidQRMessage)

setter method for the message of the validation screen upon failure

public void setInvalidQRTitle (String invalidQRTitle)

setter method for the title of the validation screen upon failure

Parameters
invalidQRTitle the title

public void setOkButtonString (String invalidQROk)

setter method for the OK button of the validation screen

public void setSkipConfirmScreen (boolean skipConfirmScreen)

setter method for confirm screen skip setting

Parameters
skipConfirmScreen variable to set if the confirm screen should be skipped.