public static class ScanDeviceFragment.BundleOptions
extends java.lang.Object
ScanDeviceFragment
bundle options
You can enable/disable specific scanners with setScanner(String, boolean)
Set ScanDeviceFragment.runScanOnStart()
to true
Modifier and Type | Field and Description |
---|---|
java.lang.String |
deviceTag
Device tag assigned for the selected device.
|
boolean |
runScanOnStart
True if you want scan to run when fragment is started
|
boolean |
switchProtocolOnNfcTap
True if device factory will attemp to switch to another protocol when tap nfc
|
Constructor and Description |
---|
BundleOptions() |
Modifier and Type | Method and Description |
---|---|
static ScanDeviceFragment.BundleOptions |
createWithAllScanners()
Create instance with all scanners enabled
|
static ScanDeviceFragment.BundleOptions |
fromBundle(android.os.Bundle bundle)
Parse options from a Bundle
|
boolean |
hasScanner(java.lang.String scannerType) |
ScanDeviceFragment.BundleOptions |
setDeviceTag(java.lang.String deviceTag) |
ScanDeviceFragment.BundleOptions |
setScanner(java.lang.String argName,
boolean enabled)
To enable/disable a scanner.
|
android.os.Bundle |
toBundle()
Create bundle
|
@Nullable public java.lang.String deviceTag
public boolean runScanOnStart
public boolean switchProtocolOnNfcTap
public ScanDeviceFragment.BundleOptions setScanner(java.lang.String argName, boolean enabled)
ScanDeviceFragment.Args.ScannerType
argName
- scanner nameenabled
- true to enable scannerpublic android.os.Bundle toBundle()
public static ScanDeviceFragment.BundleOptions fromBundle(android.os.Bundle bundle)
bundle
- the bundlepublic static ScanDeviceFragment.BundleOptions createWithAllScanners()
public boolean hasScanner(java.lang.String scannerType)
public ScanDeviceFragment.BundleOptions setDeviceTag(@Nullable java.lang.String deviceTag)