MiniScannerSettings

class MiniScannerSettings : IMiniScannerSettings

Setting values for mini scanner.

Since

1.1.0

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun getFloatingButtonAnchor(): Int
Link copied to clipboard
open override fun getFloatingButtonOffset(): IntArray
Link copied to clipboard
open override fun getHardwareKey(): Int
Link copied to clipboard
open override fun getScanMode(): Int
Link copied to clipboard
open override fun getSymbology(): List<String>
Link copied to clipboard
open override fun getViewLocation(): IntArray
Link copied to clipboard
open override fun getViewSize(): IntArray
Link copied to clipboard
open override fun isBeepFeedbackOn(): Boolean
Link copied to clipboard
open override fun isFloatingButtonEnable(): Boolean
Link copied to clipboard
open override fun isFloatingButtonMovable(): Boolean
Link copied to clipboard
open override fun isVibrationFeedbackOn(): Boolean
Link copied to clipboard
open override fun isViewMovable(): Boolean
Link copied to clipboard
open override fun setBeepFeedbackOn(enable: Boolean)

Set the Beep sound feedback when a code has been successfully scanned.

Link copied to clipboard

Set the camera to back/front camera accordingly.

Link copied to clipboard

Set the flashlight on/off accordingly

Link copied to clipboard
open override fun setFloatingButtonAnchor(anchor: Int)

Set to change the floating button anchor. Possible anchor options are BOTTOM_LEFT, BOTTOM_RIGHT, TOP_LEFT, TOP_RIGHT within com.samsung.android.knox.smartscan.SDKConstants.Anchors Default anchor is bottom right.

Link copied to clipboard
open override fun setFloatingButtonEnable(enable: Boolean)

Set to launch mini scanner using floating button. Default value is true. Need to call this method or setHardwareKey

Link copied to clipboard
open override fun setFloatingButtonMovable(enable: Boolean)

Set to make floating button movable. Default value is true.

Link copied to clipboard
open override fun setFloatingButtonOffset(offsetX: Int, offsetY: Int)

Set to change the offset value of the floating button.

Link copied to clipboard
open override fun setHardwareKey(hardwareKeys: Int)

Set to launch mini scanner using hardware key. Need to call this method or setFloatingButtonEnable Hardware key options are within com.samsung.android.knox.smartscan.SDKConstants.MiniScannerHardwareKeys

Link copied to clipboard
open override fun setScanMode(scanMode: Int)

Set to change the scan mode of mini scanner. Possible scan mode options are within com.samsung.android.knox.smartscan.SDKConstants.MiniScannerScanModes Default mode is single scan mode.

Link copied to clipboard
open override fun setSymbology(symbology: List<String>)

Updates list of supported barcode types for mini scanner. Barcode types included in the list String will be supported and any of non-listed barcode types will not be returned in scan result. But whatever not in the com.samsung.android.knox.smartscan.barcode.data.BarcodeInfo.symbology will not be recognized.

Link copied to clipboard
open override fun setVibrationFeedbackOn(enable: Boolean)

Set the vibration feedback when a code has been successfully scanned.

Link copied to clipboard
open override fun setViewLocation(x: Int, y: Int)

set mini scanner view location in MiniScannerFrameLayout

Link copied to clipboard
open override fun setViewMovable(enable: Boolean)

Set to make mini scanner view movable. Default value is true.

Link copied to clipboard
open override fun setViewSize(width: Int, height: Int)

set mini scanner view size in MiniScannerFrameLayout