intentful
Version:
Create Custom Skills with less headache
21 lines (20 loc) • 879 B
TypeScript
import { Gesture, GestureModel, GestureProps } from './gesture';
import { LabeledRequestHandler } from '../../skill';
import { Command, CommandModel, CommandProps } from '../commands';
export interface LongPressGestureModel extends LongPressGestureProps, GestureModel {
}
export interface LongPressGestureProps extends GestureProps {
/**
* Commands to execute when a long-press is first detected
*/
onLongPressStart?: Command<CommandModel, CommandProps>[];
/**
* Commands to execute when a long-press is finished
*/
onLongPressEnd?: Command<CommandModel, CommandProps>[];
}
export declare class LongPressGesture extends Gesture<LongPressGestureModel, LongPressGestureProps> {
constructor(props: LongPressGestureProps);
componentSpecificModel(): LongPressGestureModel;
componentSpecificRequestHandlers(): LabeledRequestHandler[];
}