Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make selectedPrinter and isConnected public #25

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/src/printer_bluetooth_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ class PrinterBluetoothManager {
StreamSubscription _isScanningSubscription;
PrinterBluetooth _selectedPrinter;

get selectedPrinter => _selectedPrinter;
get isConnected => _isConnected;

final BehaviorSubject<bool> _isScanning = BehaviorSubject.seeded(false);
Stream<bool> get isScanningStream => _isScanning.stream;

Expand Down
2 changes: 2 additions & 0 deletions printers.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ Thank you for your contribution!
| [Seiko RP-D10](https://www.sii.co.jp/sps/eg/product/unit/rpd_series.html) | | | [Printer not listed during scan](https://github.com/andrey-ushakov/esc_pos_printer/issues/48) |
|POS-5802DD (Kkmoon)|58mm|0.2.2|`PosImageFn.bitImageRaster`: align left only ;<br> `PosImageFn.graphics`: doesn't work ;<br> `Ticket.image`: works ;<br> everything else works (Tested on iOS) |
| MHT-P8001, MHT-P26, Jepod JP-81LYA ([#1](https://github.com/andrey-ushakov/esc_pos_bluetooth/issues/1#issuecomment-597723277)) |80mm|0.2.2|All 3 image printing methods doens't work ; <br>bold text: No ; <br>westEur code page: No (Tested on iOS) |
| HPRT MPT-II | 58mm | 0.2.8 | No issues |
| TSP 650 II | 80mm | 0.2.8 | Can't pair on IOS, won't print reverse and images on Android