public interface ISerialComEventListener
The interface ISerialComEventListener should be implemented by class who wish to receive modem/line events on serial port.
| Modifier and Type | Method and Description |
|---|---|
void |
onNewSerialEvent(SerialComLineEvent lineEvent)
The class implementing this interface is expected to override onNewSerialEvent() method.
|
void onNewSerialEvent(SerialComLineEvent lineEvent)
The class implementing this interface is expected to override onNewSerialEvent() method. This method gets called from the looper thread associated with the corresponding listener (handler). The listener can extract detailed information about event from the event object passed by calling various methods on the event object.
lineEvent - event object containing bit mask of events on serial port control linesCopyright © 2017. All rights reserved.