react-native-star-io10
Version:
react-native-star-io10 is a library for supporting application development for Star Micronics devices.
30 lines (21 loc) • 684 B
text/typescript
import { StarIO10Error } from "./StarIO10Error";
export class DisplayDelegate {
_onEventSet: () => void = () => {};
private _onConnected: () => void = () => {};
private _onDisconnected: () => void = () => {};
onCommunicationError: (error: StarIO10Error) => void = () => {};
set onConnected(value: () => void) {
this._onConnected = value;
this._onEventSet();
}
get onConnected(): () => void {
return this._onConnected;
}
set onDisconnected(value: () => void) {
this._onDisconnected = value;
this._onEventSet();
}
get onDisconnected(): () => void {
return this._onDisconnected;
}
}