seven365-zyprinter 0.0.8 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -376,6 +376,7 @@ import Network
376
376
 
377
377
  extension ZywellSDK: POSBLEManagerDelegate {
378
378
 
379
+ @objc(POSdidUpdatePeripheralList:RSSIList:)
379
380
  public func poSdidUpdatePeripheralList(_ peripherals: [Any]!, rssiList: [Any]!) {
380
381
  guard let peripherals = peripherals as? [CBPeripheral],
381
382
  let rssis = rssiList as? [NSNumber] else { return }
@@ -384,6 +385,7 @@ extension ZywellSDK: POSBLEManagerDelegate {
384
385
  self.peripheralRSSIs = rssis
385
386
  }
386
387
 
388
+ @objc(POSdidConnectPeripheral:)
387
389
  public func poSdidConnectPeripheral(_ peripheral: CBPeripheral!) {
388
390
  DispatchQueue.main.async { [weak self] in
389
391
  self?.connectionCompletion?(true, nil)
@@ -391,6 +393,7 @@ extension ZywellSDK: POSBLEManagerDelegate {
391
393
  }
392
394
  }
393
395
 
396
+ @objc(POSdidFailToConnectPeripheral:error:)
394
397
  public func poSdidFailToConnectPeripheral(_ peripheral: CBPeripheral!, error: Error!) {
395
398
  let errorMsg = error?.localizedDescription ?? "Connection failed"
396
399
  DispatchQueue.main.async { [weak self] in
@@ -399,10 +402,12 @@ extension ZywellSDK: POSBLEManagerDelegate {
399
402
  }
400
403
  }
401
404
 
405
+ @objc(POSdidDisconnectPeripheral:isAutoDisconnect:)
402
406
  public func poSdidDisconnectPeripheral(_ peripheral: CBPeripheral!, isAutoDisconnect: Bool) {
403
407
  // Handle disconnection
404
408
  }
405
409
 
410
+ @objc(POSdidWriteValueForCharacteristic:error:)
406
411
  public func poSdidWriteValueForCharacteristic(_ character: CBCharacteristic!, error: Error!) {
407
412
  DispatchQueue.main.async { [weak self] in
408
413
  if let error = error {
@@ -419,6 +424,7 @@ extension ZywellSDK: POSBLEManagerDelegate {
419
424
 
420
425
  extension ZywellSDK: POSWIFIManagerDelegate {
421
426
 
427
+ @objc(POSWIFIManager:didConnectedToHost:port:)
422
428
  public func poswifiManager(_ manager: POSWIFIManager!, didConnectedToHost host: String!, port: UInt16) {
423
429
  DispatchQueue.main.async { [weak self] in
424
430
  self?.connectionCompletion?(true, nil)
@@ -426,10 +432,12 @@ extension ZywellSDK: POSWIFIManagerDelegate {
426
432
  }
427
433
  }
428
434
 
435
+ @objc(POSWIFIManager:willDisconnectWithError:)
429
436
  public func poswifiManager(_ manager: POSWIFIManager, willDisconnectWithError error: Error?) {
430
437
  // Handle disconnection warning
431
438
  }
432
439
 
440
+ @objc(POSWIFIManager:didWriteDataWithTag:)
433
441
  public func poswifiManager(_ manager: POSWIFIManager!, didWriteDataWithTag tag: Int) {
434
442
  DispatchQueue.main.async { [weak self] in
435
443
  self?.printCompletion?(true, nil)
@@ -437,10 +445,12 @@ extension ZywellSDK: POSWIFIManagerDelegate {
437
445
  }
438
446
  }
439
447
 
448
+ @objc(POSWIFIManager:didReadData:tag:)
440
449
  public func poswifiManager(_ manager: POSWIFIManager, didReadData data: Data, tag: Int) {
441
450
  // Handle data reading if needed
442
451
  }
443
452
 
453
+ @objc(POSWIFIManagerDidDisconnected:)
444
454
  public func poswifiManagerDidDisconnected(_ manager: POSWIFIManager!) {
445
455
  // Handle disconnection
446
456
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seven365-zyprinter",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "Capacitor plugin for Zywell/Zyprint thermal printer integration with Bluetooth and WiFi support",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",