intentful
Version:
Create Custom Skills with less headache
24 lines (23 loc) • 810 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.LongPressGesture = void 0;
const gesture_1 = require("./gesture");
const helpers_1 = require("../interfaces/helpers");
class LongPressGesture extends gesture_1.Gesture {
constructor(props) {
super('LongPress', props);
}
componentSpecificModel() {
return {
onLongPressEnd: this.props.onLongPressEnd,
onLongPressStart: this.props.onLongPressStart
};
}
componentSpecificRequestHandlers() {
return [
...(0, helpers_1.convertCommandListToRequestHandlers)(this.props.onLongPressEnd),
...(0, helpers_1.convertCommandListToRequestHandlers)(this.props.onLongPressStart)
];
}
}
exports.LongPressGesture = LongPressGesture;