-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new scanner DeviceId and RemoteScannerNotification classes to p…
…roguard rules. Renamed IHardwareScanner, corrected ScannerController constructor with HardwareScanner interface instead of DataWedgeHardwareScanner implementation.
- Loading branch information
1 parent
9e424fe
commit 24cb240
Showing
6 changed files
with
68 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
kotlin-data-wedge-lib/src/main/java/dk/gls/kdw/configuration/scanner/HardwareScanner.kt
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
kotlin-data-wedge-lib/src/main/java/dk/gls/kdw/configuration/scanner/IHardwareScanner.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package dk.gls.kdw.configuration.scanner | ||
|
||
import dk.gls.kdw.model.scanner.ScannerOutput | ||
import kotlinx.coroutines.flow.Flow | ||
|
||
interface IHardwareScanner { | ||
/** | ||
* Receive the [ScannerOutput] as a flow | ||
*/ | ||
fun scannerOutputFlow(): Flow<ScannerOutput> | ||
|
||
/** Suspend the scanner **/ | ||
fun suspendScanner() | ||
|
||
/** Resume the scanner **/ | ||
fun resumeScanner() | ||
|
||
/** | ||
* Send a variable amount of notification lists specifying the notifications for the remote scanner (RMS) | ||
* The notifications are send with a delay between parsed lists of 1000 ms | ||
* Official documentation | ||
* @link https://techdocs.zebra.com/datawedge/8-2/guide/api/notify/ | ||
**/ | ||
fun remoteScannerNotifications(deviceId: DeviceId, vararg notifications: List<RemoteScannerNotification>) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters